Re-apply of timed out ASG creation does not enable requested CloudWatch metrics #604
Labels
bug
Addresses a defect in current functionality.
service/autoscaling
Issues and PRs that pertain to the autoscaling service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
This issue was originally opened by @mattzimmerman as hashicorp/terraform#12654. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
Terraform 0.8.4
edit also confirmed that we still see this issue on 0.8.7
Affected Resource(s)
Please list the resources as a list, for example:
Debug Output
Run hashicorp/terraform#1 (initial plan): https://gist.github.com/mattzimmerman/b301b0a230e51544b53b535392d577c3
Run hashicorp/terraform#1 (apply): https://gist.github.com/mattzimmerman/08eefb57d56f49e3985ce8579ed18dd3
Run hashicorp/terraform#2 (retry after a failure): https://gist.github.com/mattzimmerman/9d6cb45daede7378cfda77079c8094a5
Expected Behavior
Re-apply of failed ASG creations should detect that requested CloudWatch metrics were missing and enable them.
Actual Behavior
CloudWatch metrics are not enabled before the ASG has healthy instances. After the timeout failure, no diff was detected on a re-apply (so CloudWatch metrics are never enabled on the ASG resource during subsequent applies if it fails the first time).
Steps to Reproduce
The text was updated successfully, but these errors were encountered: