79531654

Date: 2025-03-24 16:53:30
Score: 1.5
Natty:
Report link

Know that it will fail. I mean, how often are you making changes anyway??? When it fails, replay the build and hit it again. Hit it twice to make it nice.

Some instances cannot be resolved with a depends_on like moving a subnet from one NAT gateway to another. No way around it, you have a 10-second outage and you have to apply twice. -target on the one you're removing it from and subsequent -target on the one that is receiving will reduce the outage...

Use a newer version of terraform:
https://developer.hashicorp.com/terraform/language/meta-arguments/depends_on
Note: Module support for depends_on was added in Terraform version 0.13, and prior versions can only use it with resources.

Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jeremiah Bowen