resource/aws_config_configuration_recorder add retention period #27262
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds retention period to aws_config_configuration_recorder as per proposed solution and discussion on #13305
Some observations:
used to control the retention of configuration captured under a configuration recorder.
interactions with the retention configuration resource require it to be referenced by this name attribute.
Are we happy adding retention period to the existing
aws_config_configuration_recorder
resource based on this behaviour? Please let me know if we would prefer to create this as a seperate resource and I can refactor this PR to reflect that.Relations
Closes #13305
References
https://docs.aws.amazon.com/config/latest/APIReference/API_PutRetentionConfiguration.html
https://docs.aws.amazon.com/config/latest/APIReference/API_DeleteRetentionConfiguration.html
https://docs.aws.amazon.com/config/latest/APIReference/API_ConfigurationRecorder.html
https://docs.aws.amazon.com/config/latest/APIReference/API_RetentionConfiguration.html
Output from Acceptance Testing