ECS user_data_replace_on_change #4400
onur-zengin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to add an option under huaweicloud_compute_instance to trigger replace an ECS instance when its user_data is modified? It appears that the current implementation (see; resource_huaweicloud_compute_instance.go:994) applies user_data changes as silent updates to the instance configuration (similar to how it treats the "name" and "description" parameters). However, most cloud-init scripts are designed to be applied to the system (i.e. the instance) during its first boot only, and therefore, modifications require a destroy & recreate.
If desired, the behaviour could be user-controlled with an additional boolean operator under the same resource. For reference; https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#user_data_replace_on_change
Beta Was this translation helpful? Give feedback.
All reactions