Open kdanga opened 4 years ago
Hi, Same for me with terraform v0.14.11 and aws provider v3.42.0.
hello, i am having the same issue with terraform v.0.14.11 and aws provider v3.42.0.
@kdanga , hi I solved it with the following explicit configuration for ASG and LC resources:
lifecycle {
create_before_destroy = true
}
After that terraform is not complaining. Pls, try it.
Hey y'all 👋 Thank you for taking the time to file this, and for the additional discussion around it! Given the workaround provided above, and that there's been a number of AWS provider releases since this was initially field, can anyone confirm whether they're still experiencing this behavior?
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Community Note
Terraform Version
0.12.18
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
When forcing an update on the aws_launch_configuration resource, terraform should update the dependencies without any errors.
Actual Behavior
The aws_autoscaling_notification tries to do an update after both dependencies on aws_autoscaling_group and aws_launch_configuration were replaced. Fails with the following error:
Steps to Reproduce
terraform apply
and providebuild
valueof 1terraform apply
again, but withbuild
value of 2Important Factoids
References
0000