int128 / terraform-aws-nat-instance

Terraform module to provision a NAT Instance using an Auto Scaling Group and Spot Instance from $1/month
https://registry.terraform.io/modules/int128/nat-instance/aws/
Apache License 2.0
175 stars 90 forks source link

Fix terraform apply error on upgrade #22

Closed int128 closed 4 years ago

int128 commented 4 years ago

As https://github.com/int128/terraform-aws-nat-instance/pull/21#issuecomment-653543790, we will get the error if we upgrades this module to v1.0.1 from v1.0.0 or earlier. This will fix the issue.

int128 commented 4 years ago

Verified in my AWS environment.

module.nat.aws_security_group_rule.ingress: Destroying... [id=sgrule-9********]
module.nat.aws_security_group_rule.ingress_any: Creating...
module.nat.aws_security_group_rule.ingress: Destruction complete after 1s
module.nat.aws_security_group_rule.ingress_any: Creation complete after 3s [id=sgrule-4********]

Apply complete! Resources: 1 added, 0 changed, 1 destroyed.