terraform-aws-modules / terraform-aws-ec2-instance

Terraform module to create AWS EC2 instance(s) resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/ec2-instance/aws
Apache License 2.0
758 stars 1.88k forks source link

add ignore associate_public_ip_address changes #367

Closed rubber-ant closed 11 months ago

rubber-ant commented 1 year ago

Is your request related to a problem?

if the EC2 is Stopped, it will ask to replace the entire instance, which is rather inconvenient when I use it in combination with aws_ami_from_instance

# module.ec2_instance.aws_instance.this[0] must be replaced
-/+ resource "aws_instance" "this" {
...
associate_public_ip_address          = false -> true # forces replacement
...

Describe the solution you'd like.

add new input boolean flag ignore_associate_public_ip_address_changes

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 11 months ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 10 months 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.