terraform-aws-modules / terraform-aws-autoscaling

Terraform module to create AWS Auto Scaling resources πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws
Apache License 2.0
289 stars 553 forks source link

Add variable "user_data_replace_on_change" to replace user_data #199

Closed MLOpsWC closed 2 years ago

MLOpsWC commented 2 years ago

Is your request related to a new offering from AWS?

This is functionality available in the AWS provider for Terraform

Describe the solution you'd like.

I think the variable user_data_replace_on_change of aws_instance could be added to this module.

bryantbiggs commented 2 years ago

That is for the aws_instance resource which this module does not provide

MLOpsWC commented 2 years ago

Well, in my case, how I can update to install Filebeat on the ASG instances?

bryantbiggs commented 2 years ago

You can do this through user data https://github.com/terraform-aws-modules/terraform-aws-autoscaling/blob/e448dddd99356ec759f9366f0080d49b2298ddff/examples/complete/main.tf#L26-L30

MLOpsWC commented 2 years ago

You can do this through user data

https://github.com/terraform-aws-modules/terraform-aws-autoscaling/blob/e448dddd99356ec759f9366f0080d49b2298ddff/examples/complete/main.tf#L26-L30

It works when creating, but no changes if I only update user_data.

github-actions[bot] commented 1 year ago

I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.