Closed adam-6over6 closed 2 years ago
"Tested it locally and worked.". Are you sure that you were using Terraform? :)
It is not possible to use variables in lifecycle
in Terraform.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Added a lifecycle argument for user_data and user_data_base64
Motivation and Context
Adding a lifecycle for user_data and user_data_base64 should help while you don't want that changing the user_data will destroy your EC2 instance. Therefore the Lifecycle argument is being used dynamically, that if you do want it to destroy your EC2 instance, you will be able to get it.
Breaking Changes
No break
How Has This Been Tested?
Tested it locally and worked.