-
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
Added a boolean eventbridge attribute to s3/bucket_notification #22045
Conversation
order to support the EventBridge notifications for S3 buckets.
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 @lparkes 👋
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 there, Seems like absolutely required feature. Any prospect on when this can be completed/merged? Thank you. |
changelog entry.
I have added documentaion for the new argument as well as creating a changelog entry. I didn't write an example for the new argument because it's a boolean. |
Love that you took the time to create this PR @lparkes 🙏 Just |
Hi David. If you look very carefully, you will see that I didn't write the Hmm. The HTML comment in the PR template says I should use |
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.
Your changes look great! 🎉 Also, found a few things that were not quite right that needed fixing at the same time.
Output from acceptance tests (us-west-2
):
% make testacc TESTS=TestAccS3BucketNotification_ PKG=s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run='TestAccS3BucketNotification_' -timeout 180m
--- PASS: TestAccS3BucketNotification_eventbridge (26.96s)
--- PASS: TestAccS3BucketNotification_topic (29.84s)
--- PASS: TestAccS3BucketNotification_Topic_multiple (29.99s)
--- PASS: TestAccS3BucketNotification_queue (31.55s)
--- PASS: TestAccS3BucketNotification_lambdaFunction (37.87s)
--- PASS: TestAccS3BucketNotification_LambdaFunctionLambdaFunctionARN_alias (45.48s)
--- PASS: TestAccS3BucketNotification_update (50.13s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 51.345s
Output from acceptance tests (GovCloud):
% make testacc TESTS=TestAccS3BucketNotification_ PKG=s3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/s3/... -v -count 1 -parallel 20 -run='TestAccS3BucketNotification_' -timeout 180m
--- SKIP: TestAccS3BucketNotification_eventbridge (15.48s)
--- PASS: TestAccS3BucketNotification_topic (32.93s)
--- PASS: TestAccS3BucketNotification_Topic_multiple (33.08s)
--- PASS: TestAccS3BucketNotification_LambdaFunctionLambdaFunctionARN_alias (40.24s)
--- PASS: TestAccS3BucketNotification_queue (41.50s)
--- PASS: TestAccS3BucketNotification_lambdaFunction (45.22s)
--- PASS: TestAccS3BucketNotification_update (55.08s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/s3 56.296s
Sorry for the argument/attribute typo in the changelog. I did check the terminology and I knew "argument" was correct and I still managed to type the wrong word in. |
This functionality has been released in v3.74.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. |
Added a boolean eventbridge attribute to s3/bucket_notification in order to support the EventBridge notifications for S3 buckets.
This is a draft PR. IMHO the code looks good and the acceptance test looks good, but I haven't gone through all the contribution document in detail yet. I do have one question right now though. Where/how do I write the documentation for the new attribute I have added?
Community Note
Closes #22013.
Output from acceptance testing: