-
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 Set Retention #13305
Comments
Any update on this issue? |
Any update on this? |
@anGie44 Is the labelling correct? This doesn't look like |
(Sorry for the "spam".) For the Terraform gurus, the relevant API call looks like https://docs.aws.amazon.com/config/latest/APIReference/API_PutRetentionConfiguration.html. |
Hi @antgel , i've removed the |
Just ran into this issue, and was hoping there might be some traction on it. Easy enough to set by hand, of course, but would like to fold this into the TF code if possible. Thanks! |
As workaround, we can configure retention days by resource "aws_config_configuration_recorder" "this" {
name = "this"
role_arn = aws_iam_role.aws_config.arn
recording_group {
all_supported = true
include_global_resource_types = true
}
provisioner "local-exec" {
when = create
command = "aws configservice put-retention-configuration --retention-period-in-days 365"
}
}
|
@ewbankkit may I ask why closing the issue and re-opening it again? is it because of the target release? |
@sherifkayad Yes -- targeting for next week's v5.39.0 release now. |
@ewbankkit Thanks for the info and looking forward to it |
As this functionality is independent of any Configuration Recorder, a standalone |
This functionality has been released in v5.39.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
This issue was originally opened by @tbo-246 as hashicorp/terraform#24944. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Use-cases
It is now possible to set the retention policy in days for the AWS Config Service. This is a good way of keeping costs down and there is not currently a way to configure this with Terraform.
Attempted Solutions
I have checked all arguments in the resource config resources and none have a retention period setting. I purposefully set this option in the AWS console hoping for Terraform to detect code drift and give me a clue where the setting might be however the setting was ignored.
Proposal
Introduce an argument in the aws_config_configuration_recorder resource called "retention_period". It might look something like:
References
The text was updated successfully, but these errors were encountered: