-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_config_configuration_recorder recording_mode (Periodic recording) #35527
aws_config_configuration_recorder recording_mode (Periodic recording) #35527
Conversation
Community NoteVoting for Prioritization
For Submitters
|
…handle default Default value is recording_mode { recording_frequency = "CONTINUOUS" }
Tests sometimes fail with: === RUN TestAccConfigService_serial/ConfigRule/disappears testing_new.go:91: Error running post-test destroy, there may be dangling resources: exit status 1 Error: deleting AWS Config Config Rule (tf-acc-test-115006365829579325): NoSuchConfigRuleException: The ConfigRule 'tf-acc-test-115006365829579325' provided in the request is invalid. Please check the configRule name.
Test recording_mode_overrides in testAccConfigurationRecorder_allParams. Call acctest.CheckResourceDisappears twice as some other tests do to prevent flaky tests. Fix lint issue.
…ing_mode_overrides
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 🚀.
% make testacc TESTARGS='-run=TestAccConfigService_serial/ConfigurationRecorder$$' PKG=configservice
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/configservice/... -v -count 1 -parallel 20 -run=TestAccConfigService_serial/ConfigurationRecorder$ -timeout 360m
=== RUN TestAccConfigService_serial
=== PAUSE TestAccConfigService_serial
=== CONT TestAccConfigService_serial
=== RUN TestAccConfigService_serial/ConfigurationRecorder
=== RUN TestAccConfigService_serial/ConfigurationRecorder/basic
=== RUN TestAccConfigService_serial/ConfigurationRecorder/allParams
=== RUN TestAccConfigService_serial/ConfigurationRecorder/recordStrategy
=== RUN TestAccConfigService_serial/ConfigurationRecorder/disappears
--- PASS: TestAccConfigService_serial (114.05s)
--- PASS: TestAccConfigService_serial/ConfigurationRecorder (114.05s)
--- PASS: TestAccConfigService_serial/ConfigurationRecorder/basic (31.14s)
--- PASS: TestAccConfigService_serial/ConfigurationRecorder/allParams (25.90s)
--- PASS: TestAccConfigService_serial/ConfigurationRecorder/recordStrategy (30.54s)
--- PASS: TestAccConfigService_serial/ConfigurationRecorder/disappears (26.47s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/configservice 125.311s
@chlunde Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.38.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR adds
recording_mode
and all available properties below that, toaws_config_configuration_recorder
(AWS Config), to support periodic recording.Relations
Closes #34577
References
https://docs.aws.amazon.com/config/latest/APIReference/API_RecordingMode.html
https://docs.aws.amazon.com/config/latest/APIReference/API_RecordingModeOverride.html
Questions
The default value is
recording_mode { recording_frequency = "CONTINUOUS" }
. Is it correct to setrecording_mode
as computed to support this?Output from Acceptance Testing
Originally, I had issues with flaky tests, even before making any changes:
I've "fixed" it by calling delete twice as I found another test did. If you know a proper fix, please tell me. The races are there on the master branch too.
Here's a subset of the acceptance tests with this change.