Skip to content
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_configuration_recorder add retention period #27262

Merged

Conversation

mtt88
Copy link
Contributor

@mtt88 mtt88 commented Oct 15, 2022

Description

Adds retention period to aws_config_configuration_recorder as per proposed solution and discussion on #13305

Some observations:

  • There is no explicit relationship between a retention period and configuration recorder. However, the retention period is only
    used to control the retention of configuration captured under a configuration recorder.
  • AWS only lets us create a single retention period and configuration recorder per region, so whilst an explicit relationship does not exist a relationship does exist by this virtue.
    • The AWS Console UI shows/groups the retention period under the other configuration recorder settings.
  • After a retention configuration is created its given the name 'default'. It is not possible to change this name and all further
    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

 make testacc TESTS=TestAccConfigServiceConfigurationRecorder_allParams PKG=configservice
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/configservice/... -v -count 1 -parallel 20 -run='TestAccConfigServiceConfigurationRecorder_allParams'  -timeout 180m
=== RUN   TestAccConfigServiceConfigurationRecorder_allParams
--- PASS: TestAccConfigServiceConfigurationRecorder_allParams (48.68s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/configservice      48.738s

@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/configservice Issues and PRs that pertain to the configservice service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. labels Oct 15, 2022
@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Oct 21, 2022
@sherifkayad
Copy link

can we maybe get this one merged? looks like an easy win to me and already required by so many people who put a thumbs up on the issue #13305 (not the PR).

@ewbankkit ewbankkit closed this pull request by merging all changes into hashicorp:main in ac2a5b5 Feb 20, 2024
@github-actions github-actions bot added this to the v5.38.0 milestone Feb 20, 2024
@ewbankkit ewbankkit removed this from the v5.38.0 milestone Feb 21, 2024
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. service/configservice Issues and PRs that pertain to the configservice service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS Config Set Retention
4 participants