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

service/neptune: enable CloudwatchLogsExports of type audit #11949

Merged

Conversation

ericksoen
Copy link
Contributor

Overview

Add a new schema property to allow users to ship audit logs for their Neptune cluster to Cloudwatch.

Notes

The glob pattern (e.g., TestAccAWSNeptuneCluster ) to run all the acceptance tests for this resource causes failures since each of the test cases use acctest.RandInt() in the resource name, causing non-unique resource names and resource contention.

If appropriate, I can amend the PR to generate unique resource names via acctest.RandString() to allow all the acceptance tests to run in parallel successfully. (I haven't made enough contributions to this repo yet to familiarize myself with the conventions regarding best practices for resource naming in test cases or "appropriately sized PRs").

Community Note

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

Closes #9094

Release note for CHANGELOG:

resource/aws_neptune_cloudwatch_cluster: enable audit type CloudwatchLogsExports

Output from acceptance testing:

make testacc TEST=./aws TESTARGS='-run=TestAccAWSNeptuneCluster_updateCloudwatchLogsExports'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSNeptuneCluster_updateCloudwatchLogsExports -timeout 120m
=== RUN   TestAccAWSNeptuneCluster_updateCloudwatchLogsExports
=== PAUSE TestAccAWSNeptuneCluster_updateCloudwatchLogsExports
=== CONT  TestAccAWSNeptuneCluster_updateCloudwatchLogsExports
--- PASS: TestAccAWSNeptuneCluster_updateCloudwatchLogsExports (215.32s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       215.530s...

@ericksoen ericksoen requested a review from a team February 7, 2020 03:52
@ghost ghost added size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. service/neptune Issues and PRs that pertain to the neptune service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Feb 7, 2020
@bflad bflad 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 Feb 10, 2020
@bflad bflad self-assigned this Feb 10, 2020
@bflad bflad added this to the v2.49.0 milestone Feb 11, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @ericksoen 🚀 As for the other testing issues, they will likely be resolved via #11731 (although yes, we generally prefer changes be separated for easier review).

Output from acceptance testing:

--- PASS: TestAccAWSNeptuneCluster_namePrefix (105.49s)
--- PASS: TestAccAWSNeptuneCluster_basic (124.42s)
--- PASS: TestAccAWSNeptuneCluster_encrypted (146.13s)
--- PASS: TestAccAWSNeptuneCluster_updateTags (151.23s)
--- PASS: TestAccAWSNeptuneCluster_takeFinalSnapshot (165.88s)
--- PASS: TestAccAWSNeptuneCluster_iamAuth (152.33s)
--- PASS: TestAccAWSNeptuneCluster_updateIamRoles (171.70s)
--- PASS: TestAccAWSNeptuneCluster_backupsUpdate (177.56s)
--- PASS: TestAccAWSNeptuneCluster_kmsKey (194.86s)
--- PASS: TestAccAWSNeptuneCluster_updateCloudwatchLogsExports (192.68s)

@bflad bflad merged commit 16d8bf2 into hashicorp:master Feb 11, 2020
bflad added a commit that referenced this pull request Feb 11, 2020
@ghost
Copy link

ghost commented Feb 14, 2020

This has been released in version 2.49.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!

@ghost
Copy link

ghost commented Mar 27, 2020

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!

@ghost ghost locked and limited conversation to collaborators Mar 27, 2020
@ericksoen ericksoen deleted the enable-neptune-cloudwatch-log-audit branch May 7, 2020 15:24
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/neptune Issues and PRs that pertain to the neptune 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.

Neptune audit logs to CloudWatch
2 participants