-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add log group arn to aws prometheus workspace 26444 #27213
Add log group arn to aws prometheus workspace 26444 #27213
Conversation
add cloudwatch_log_group_arn to aws_prometheus_workspace
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
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 @nclaeys 👋
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccAMP' PKG=amp ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/amp/... -v -count 1 -parallel 3 -run=TestAccAMP -timeout 180m
=== RUN TestAccAMPAlertManagerDefinition_basic
=== PAUSE TestAccAMPAlertManagerDefinition_basic
=== RUN TestAccAMPAlertManagerDefinition_disappears
=== PAUSE TestAccAMPAlertManagerDefinition_disappears
=== RUN TestAccAMPRuleGroupNamespace_basic
=== PAUSE TestAccAMPRuleGroupNamespace_basic
=== RUN TestAccAMPRuleGroupNamespace_disappears
=== PAUSE TestAccAMPRuleGroupNamespace_disappears
=== RUN TestAccAMPWorkspaceDataSource_basic
--- PASS: TestAccAMPWorkspaceDataSource_basic (20.68s)
=== RUN TestAccAMPWorkspace_basic
=== PAUSE TestAccAMPWorkspace_basic
=== RUN TestAccAMPWorkspace_disappears
=== PAUSE TestAccAMPWorkspace_disappears
=== RUN TestAccAMPWorkspace_tags
=== PAUSE TestAccAMPWorkspace_tags
=== RUN TestAccAMPWorkspace_alias
=== PAUSE TestAccAMPWorkspace_alias
=== RUN TestAccAMPWorkspace_loggingConfiguration
=== PAUSE TestAccAMPWorkspace_loggingConfiguration
=== CONT TestAccAMPAlertManagerDefinition_basic
=== CONT TestAccAMPWorkspace_disappears
=== CONT TestAccAMPWorkspace_alias
=== CONT TestAccAMPWorkspace_loggingConfiguration
--- PASS: TestAccAMPWorkspace_disappears (24.29s)
--- PASS: TestAccAMPWorkspace_alias (70.35s)
=== CONT TestAccAMPWorkspace_tags
--- PASS: TestAccAMPWorkspace_loggingConfiguration (56.39s)
=== CONT TestAccAMPRuleGroupNamespace_disappears
--- PASS: TestAccAMPWorkspace_tags (52.22s)
=== CONT TestAccAMPRuleGroupNamespace_basic
--- PASS: TestAccAMPRuleGroupNamespace_disappears (108.15s)
=== CONT TestAccAMPAlertManagerDefinition_disappears
--- PASS: TestAccAMPAlertManagerDefinition_basic (264.60s)
=== CONT TestAccAMPWorkspace_basic
--- PASS: TestAccAMPWorkspace_basic (22.68s)
--- PASS: TestAccAMPAlertManagerDefinition_disappears (99.33s)
--- PASS: TestAccAMPRuleGroupNamespace_basic (255.48s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/amp 402.996s
@nclaeys Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.35.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
Add cloudwatch_log_group_arn to aws_prometheus_workspace resource.
I did not add log_level as an extra property as it does not exist in the API and it only indicates whether the logging configuration is enabled or not. In my opinion it is clearer to leave it out for now.
For the log_group_arn configuration I use the same contract as the API call, which requires users to add ':*' to the log_group_arn (see tests for more details). I did not want to abstract this away by adding extra logic to the terraform provider.
Relations
Closes #26444.
References
Output from Acceptance Testing