-
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
Make 'profiler' a valid CloudWatch log export type for DocumentDB. #11051
Conversation
Please let me know if this requires adding a test (or extending an existing one) — I'll gladly do so but could use some advice on how to go about it. |
Thanks for the PR, @sengi. A test would be great for this. You can start at https://github.com/terraform-providers/terraform-provider-aws/blob/2cff1c9143d4e3a93e203e0096a42a04bbfdf1fa/aws/resource_aws_docdb_cluster_test.go#L557, and add the Next, add a check like https://github.com/terraform-providers/terraform-provider-aws/blob/2cff1c9143d4e3a93e203e0096a42a04bbfdf1fa/aws/resource_aws_docdb_cluster_test.go#L42 for the attribute |
Tests the functionality added in 197b72c.
Thanks for the detailed advice, @gdavison! I hadn't quite understood the basics of how to use the acceptance test suite before but I think I get it now. I've updated the PR description with the test output. (I also verified that the new assertion failed before updating the fixture to match it, but for clarity I haven't included the output from that run.) Ready for another look. |
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 🚀
--- PASS: TestAccAWSDocDBCluster_missingUserNameCausesError (9.51s)
--- PASS: TestAccAWSDocDBClusterParameterGroup_disappears (12.97s)
--- PASS: TestAccAWSDocDBClusterParameterGroup_Description (13.32s)
--- PASS: TestAccAWSDocDBClusterParameterGroup_basic (13.39s)
--- PASS: TestAccAWSDocDBClusterParameterGroup_generatedName (15.33s)
--- PASS: TestAccAWSDocDBClusterParameterGroup_namePrefix (15.53s)
--- PASS: TestAccAWSDocDBClusterParameterGroup_Parameter (20.14s)
--- PASS: TestAccAWSDocDBClusterParameterGroup_Tags (25.53s)
--- PASS: TestAccAWSDocDBCluster_namePrefix (104.54s)
--- PASS: TestAccAWSDocDBCluster_generatedName (134.84s)
--- PASS: TestAccAWSDocDBCluster_encrypted (130.09s)
--- PASS: TestAccAWSDocDBCluster_updateCloudwatchLogsExports (135.24s)
--- PASS: TestAccAWSDocDBCluster_kmsKey (149.10s)
--- PASS: TestAccAWSDocDBCluster_basic (174.96s)
--- PASS: TestAccAWSDocDBClusterSnapshot_basic (185.31s)
--- PASS: TestAccAWSDocDBCluster_updateTags (188.06s)
--- PASS: TestAccAWSDocDBCluster_takeFinalSnapshot (195.58s)
--- PASS: TestAccAWSDocDBCluster_backupsUpdate (225.94s)
--- PASS: TestAccAWSDocDBCluster_Port (268.69s)
--- PASS: TestAccAWSDocDBClusterInstance_az (642.86s)
--- PASS: TestAccAWSDocDBClusterInstance_generatedName (664.72s)
--- PASS: TestAccAWSDocDBClusterInstance_disappears (706.67s)
--- PASS: TestAccAWSDocDBClusterInstance_namePrefix (724.40s)
--- PASS: TestAccAWSDocDBClusterInstance_kmsKey (741.75s)
--- PASS: TestAccAWSDocDBClusterInstance_basic (1324.98s)
This has been released in version 2.45.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 for triage. Thanks! |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Enabling the
profiler
feature in a DocumentDB parameter group requires adding theprofiler
logtype toenabled_cloudwatch_logs_exports
on theaws_docdb_cluster
resource. Addprofiler
to the list of allowed values forenabled_cloudwatch_logs_exports
so that this becomes possible.Community Note
Closes #10953
Release note for CHANGELOG:
Output from acceptance testing: