-
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
aws_cloudwatch_log_group: Allow a three year retention period (1096 days) #29426
aws_cloudwatch_log_group: Allow a three year retention period (1096 days) #29426
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Hi @mattburgess, This was created to address this: #29423 Many thanks, Lee |
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.
Welcome @leewilmott 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
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.
@leewilmott this looks great to me! The only minor issue is that as per https://hashicorp.github.io/terraform-provider-aws/changelog-process/#changelog-format your ChangeLog entry needs to be against the PR number (29426) not the issue number.
@mattburgess, thank you...I will update that now. Out of interest, how would I have done this? I wouldn't have known the PR number until 'after' I created a PR...so, I guess you need to create the PR first and then make a subsequent change to add the ChangeLog data....is that correct? |
@mattburgess, I have now made that change...thank you! Over to you for review. |
I believe so... that's certainly what I do anyway. |
Ok. Just to set expectations, I only recently got "Collaborator" status on this project so I'm double checking with the maintainers to make sure I'm reviewing/approving correctly. I'll get back to you as soon as I find out. |
That's fine...and I'm not a professional coder either. So, I appreciate any guidance and suggestions. |
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=TestAccLogsGroup_' PKG=logs ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/logs/... -v -count 1 -parallel 3 -run=TestAccLogsGroup_ -timeout 180m
=== RUN TestAccLogsGroup_basic
=== PAUSE TestAccLogsGroup_basic
=== RUN TestAccLogsGroup_nameGenerate
=== PAUSE TestAccLogsGroup_nameGenerate
=== RUN TestAccLogsGroup_namePrefix
=== PAUSE TestAccLogsGroup_namePrefix
=== RUN TestAccLogsGroup_disappears
=== PAUSE TestAccLogsGroup_disappears
=== RUN TestAccLogsGroup_tags
=== PAUSE TestAccLogsGroup_tags
=== RUN TestAccLogsGroup_kmsKey
=== PAUSE TestAccLogsGroup_kmsKey
=== RUN TestAccLogsGroup_retentionPolicy
=== PAUSE TestAccLogsGroup_retentionPolicy
=== RUN TestAccLogsGroup_multiple
=== PAUSE TestAccLogsGroup_multiple
=== RUN TestAccLogsGroup_skipDestroy
=== PAUSE TestAccLogsGroup_skipDestroy
=== CONT TestAccLogsGroup_basic
=== CONT TestAccLogsGroup_kmsKey
=== CONT TestAccLogsGroup_multiple
--- PASS: TestAccLogsGroup_multiple (15.26s)
=== CONT TestAccLogsGroup_skipDestroy
--- PASS: TestAccLogsGroup_basic (17.79s)
=== CONT TestAccLogsGroup_retentionPolicy
--- PASS: TestAccLogsGroup_skipDestroy (13.23s)
=== CONT TestAccLogsGroup_disappears
--- PASS: TestAccLogsGroup_disappears (11.27s)
=== CONT TestAccLogsGroup_tags
--- PASS: TestAccLogsGroup_kmsKey (48.44s)
=== CONT TestAccLogsGroup_namePrefix
--- PASS: TestAccLogsGroup_retentionPolicy (41.47s)
=== CONT TestAccLogsGroup_nameGenerate
--- PASS: TestAccLogsGroup_namePrefix (18.00s)
--- PASS: TestAccLogsGroup_nameGenerate (16.51s)
--- PASS: TestAccLogsGroup_tags (41.48s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/logs 86.358s
@leewilmott Thanks for the contribution 🎉 👏. |
That's great, thank you @ewbankkit! |
This functionality has been released in v4.55.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 change will allow a three year retention period to be set on the aws_cloudwatch_log_group resource. Such a retention period is allowed to be set in the console, but not [currently] via Terraform.
Relations
Closes #29423
References
Output from Acceptance Testing