-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/aws_config_delivery_channel: Retry deletion #2910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One minor nitpick for using the available constant.
make testacc TEST=./aws TESTARGS='-run=TestAccAWSConfig'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSConfig -timeout 120m
=== RUN TestAccAWSConfig
=== RUN TestAccAWSConfig/Config
=== RUN TestAccAWSConfig/Config/ownerAws
=== RUN TestAccAWSConfig/Config/customlambda
=== RUN TestAccAWSConfig/Config/importAws
=== RUN TestAccAWSConfig/Config/importLambda
=== RUN TestAccAWSConfig/Config/basic
=== RUN TestAccAWSConfig/ConfigurationRecorderStatus
=== RUN TestAccAWSConfig/ConfigurationRecorderStatus/basic
=== RUN TestAccAWSConfig/ConfigurationRecorderStatus/startEnabled
=== RUN TestAccAWSConfig/ConfigurationRecorderStatus/importBasic
=== RUN TestAccAWSConfig/ConfigurationRecorder
=== RUN TestAccAWSConfig/ConfigurationRecorder/basic
=== RUN TestAccAWSConfig/ConfigurationRecorder/allParams
=== RUN TestAccAWSConfig/ConfigurationRecorder/importBasic
=== RUN TestAccAWSConfig/DeliveryChannel
=== RUN TestAccAWSConfig/DeliveryChannel/importBasic
=== RUN TestAccAWSConfig/DeliveryChannel/basic
=== RUN TestAccAWSConfig/DeliveryChannel/allParams
--- PASS: TestAccAWSConfig (1005.33s)
--- PASS: TestAccAWSConfig/Config (553.22s)
--- PASS: TestAccAWSConfig/Config/ownerAws (100.84s)
--- PASS: TestAccAWSConfig/Config/customlambda (124.19s)
--- PASS: TestAccAWSConfig/Config/importAws (102.54s)
--- PASS: TestAccAWSConfig/Config/importLambda (122.51s)
--- PASS: TestAccAWSConfig/Config/basic (103.14s)
--- PASS: TestAccAWSConfig/ConfigurationRecorderStatus (184.33s)
--- PASS: TestAccAWSConfig/ConfigurationRecorderStatus/basic (50.03s)
--- PASS: TestAccAWSConfig/ConfigurationRecorderStatus/startEnabled (89.26s)
--- PASS: TestAccAWSConfig/ConfigurationRecorderStatus/importBasic (45.04s)
--- PASS: TestAccAWSConfig/ConfigurationRecorder (134.64s)
--- PASS: TestAccAWSConfig/ConfigurationRecorder/basic (43.43s)
--- PASS: TestAccAWSConfig/ConfigurationRecorder/allParams (43.08s)
--- PASS: TestAccAWSConfig/ConfigurationRecorder/importBasic (48.13s)
--- PASS: TestAccAWSConfig/DeliveryChannel (133.14s)
--- PASS: TestAccAWSConfig/DeliveryChannel/importBasic (47.21s)
--- PASS: TestAccAWSConfig/DeliveryChannel/basic (42.18s)
--- PASS: TestAccAWSConfig/DeliveryChannel/allParams (43.75s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1005.371s
err := resource.Retry(30*time.Second, func() *resource.RetryError { | ||
_, err := conn.DeleteDeliveryChannel(&input) | ||
if err != nil { | ||
if isAWSErr(err, "LastDeliveryChannelDeleteFailedException", "there is a running configuration recorder") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: This is available as a constant: configservice.ErrCodeLastDeliveryChannelDeleteFailedException
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, swapped.
2a86c76
to
6881578
Compare
This has been released in terraform-provider-aws version 1.7.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This is to address the following test failure:
I also double checked the debug log to verify that it's actually eventual consistency, not a missing/wrong dependency:
Test results