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.