-
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
r/aws_cloudtrail - add support for advanced event selectors #19368
r/aws_cloudtrail - add support for advanced event selectors #19368
Conversation
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 @phplucas 👋
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 CONTRIBUTING 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! 😃
Hi @phplucas if order is not important you can use |
Hi @DrFaust92. Thanks for the tip. I made the change and ran the tests again.
|
@DrFaust92 Any blocker for this PR? Looking forward to it, will be super useful |
Hi @DrFaust92 any changes on that? Can we expect this functionality in closer future? |
Hi @DrFaust92 , is this going to be merged and released anytime soon? |
I'm joining in to also say that I hope this will be merged and released soon. This is a potential blocker for me. I appreciate the work! |
@YakDriver (I found you created and merged r/aws_cloudtrail PR, so I may be wrong but I think you can review and merge this PR. ) |
@YakDriver @breathingdust |
d1d5fad
to
08ed0c7
Compare
08ed0c7
to
af55af0
Compare
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 🚀.
Commercial
% make testacc TESTARGS='-run=TestAccAWSCloudTrail_serial'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCloudTrail_serial -timeout 180m
=== RUN TestAccAWSCloudTrail_serial
=== RUN TestAccAWSCloudTrail_serial/Trail
=== RUN TestAccAWSCloudTrail_serial/Trail/advancedEventSelector
=== RUN TestAccAWSCloudTrail_serial/Trail/cloudwatch
=== RUN TestAccAWSCloudTrail_serial/Trail/enableLogging
=== RUN TestAccAWSCloudTrail_serial/Trail/multiRegion
=== RUN TestAccAWSCloudTrail_serial/Trail/kmsKey
=== RUN TestAccAWSCloudTrail_serial/Trail/eventSelector
=== RUN TestAccAWSCloudTrail_serial/Trail/eventSelectorDynamoDB
=== RUN TestAccAWSCloudTrail_serial/Trail/insightSelector
=== RUN TestAccAWSCloudTrail_serial/Trail/basic
=== RUN TestAccAWSCloudTrail_serial/Trail/globalServiceEvents
=== RUN TestAccAWSCloudTrail_serial/Trail/organization
provider_test.go:794: skipping tests; this AWS account must not be an existing member of an AWS Organization
=== RUN TestAccAWSCloudTrail_serial/Trail/logValidation
=== RUN TestAccAWSCloudTrail_serial/Trail/tags
--- PASS: TestAccAWSCloudTrail_serial (761.14s)
--- PASS: TestAccAWSCloudTrail_serial/Trail (761.14s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/advancedEventSelector (43.25s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/cloudwatch (101.70s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/enableLogging (92.42s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/multiRegion (91.18s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/kmsKey (36.20s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/eventSelector (134.21s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/eventSelectorDynamoDB (35.20s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/insightSelector (37.65s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/basic (59.35s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/globalServiceEvents (34.92s)
--- SKIP: TestAccAWSCloudTrail_serial/Trail/organization (0.17s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/logValidation (62.81s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/tags (88.23s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 764.289s
GovCloud
% make testacc TESTARGS='-run=TestAccAWSCloudTrail_serial'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSCloudTrail_serial -timeout 180m
=== RUN TestAccAWSCloudTrail_serial
=== RUN TestAccAWSCloudTrail_serial/Trail
=== RUN TestAccAWSCloudTrail_serial/Trail/basic
=== RUN TestAccAWSCloudTrail_serial/Trail/enableLogging
=== RUN TestAccAWSCloudTrail_serial/Trail/logValidation
=== RUN TestAccAWSCloudTrail_serial/Trail/tags
=== RUN TestAccAWSCloudTrail_serial/Trail/eventSelector
=== RUN TestAccAWSCloudTrail_serial/Trail/insightSelector
=== RUN TestAccAWSCloudTrail_serial/Trail/advancedEventSelector
provider_test.go:1166: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
Error: Error set advanced event selector on CloudTrail (tf-acc-test-6941446915302626813): UnsupportedOperationException: The AWS::DynamoDB::Table data resource type is not supported.
with aws_cloudtrail.test,
on terraform_plugin_test.tf line 2, in resource "aws_cloudtrail" "test":
2: resource "aws_cloudtrail" "test" {
=== RUN TestAccAWSCloudTrail_serial/Trail/cloudwatch
=== RUN TestAccAWSCloudTrail_serial/Trail/globalServiceEvents
=== RUN TestAccAWSCloudTrail_serial/Trail/multiRegion
=== RUN TestAccAWSCloudTrail_serial/Trail/organization
provider_test.go:794: skipping tests; this AWS account must not be an existing member of an AWS Organization
=== RUN TestAccAWSCloudTrail_serial/Trail/kmsKey
=== RUN TestAccAWSCloudTrail_serial/Trail/eventSelectorDynamoDB
provider_test.go:1166: skipping test for aws-us-gov/us-gov-west-1: Error running apply: exit status 1
Error: Error set event selector on CloudTrail (tf-acc-test-8098917304723635288): UnsupportedOperationException: The operation requested is not supported in the region.
with aws_cloudtrail.test,
on terraform_plugin_test.tf line 34, in resource "aws_cloudtrail" "test":
34: resource "aws_cloudtrail" "test" {
--- PASS: TestAccAWSCloudTrail_serial (810.01s)
--- PASS: TestAccAWSCloudTrail_serial/Trail (810.01s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/basic (68.85s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/enableLogging (98.34s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/logValidation (70.11s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/tags (97.27s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/eventSelector (139.30s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/insightSelector (40.85s)
--- SKIP: TestAccAWSCloudTrail_serial/Trail/advancedEventSelector (19.43s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/cloudwatch (76.14s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/globalServiceEvents (37.91s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/multiRegion (96.24s)
--- SKIP: TestAccAWSCloudTrail_serial/Trail/organization (0.80s)
--- PASS: TestAccAWSCloudTrail_serial/Trail/kmsKey (38.57s)
--- SKIP: TestAccAWSCloudTrail_serial/Trail/eventSelectorDynamoDB (26.21s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 813.461s
Very nice, when's the next release planned so we can start using it? 🔥 |
This functionality has been released in v3.59.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! |
Hi @ewbankkit , |
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. |
Community Note
Closes #18867
Output from acceptance testing: