Thanks for your comment.
An alias must be (re-created) when there are changes that require preparing, so the agent resource and the null resource for preparing action group changes should be added to depends_on for the alias resource.
Furthermore, the alias must be re-created upon changes to the above. So you may need to use the replace_triggered_by meta-argument to force re-creation based on changes to the agent and the null resource's ID. I've not yet tried this myself but see if this works.
Alejandro Barone
Software Engineer
Awesome!!, but how do you handle aliases and versioning with preparing?
Am having a problem when creating an alias in TF because it needs to be "prepared" to do so. Should I use some depends on my alias using the null resource? (or something like that)