You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The aws provider changed behavior in version 4. Previously, changes to the user_data field of an ec2 instance caused the instance to be torn down and recreated. Now, the user_data will be updated but the instance won't be recreatead. This means that, in most cases, the user_data script will not be run until the user somehow manually recreates the instance. If the user knows what's going on, they might choose to mark the instance for recreation using taint before or -replace on apply.
Describe the Bug
The aws provider changed behavior in version 4. Previously, changes to the
user_data
field of an ec2 instance caused the instance to be torn down and recreated. Now, theuser_data
will be updated but the instance won't be recreatead. This means that, in most cases, theuser_data
script will not be run until the user somehow manually recreates the instance. If the user knows what's going on, they might choose to mark the instance for recreation usingtaint
before or-replace
on apply.The change is discussed here and the field
user_data_replace_on_change
was added toaws_instance
to provide the old behavior for those who wanted it.Expected Behavior
I'd expect to be able to use this new field to continue having the longstanding behavior when the
user_data
is changed.Steps to Reproduce
Steps to reproduce the behavior:
user_data
oruser_data_base64
user_data
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
The text was updated successfully, but these errors were encountered: