-
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_vpclattice_access_log_subscription: Show actionable error message when CloudWatch Logs destination_arn is not suffixed with wildcard #32186
Conversation
Community NoteVoting for Prioritization
For Submitters
|
7d507e4
to
5e507de
Compare
5e507de
to
1b7c32c
Compare
1b7c32c
to
3fb536e
Compare
This reverts commit 2d42562.
…hen passing an ARN as 'resource_identifier'.
…hen passing a non-wildcard CloudWatch Logs log group ARN as 'destination_arn'.
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=TestAccVPCLatticeAccessLogSubscription_' PKG=vpclattice ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/vpclattice/... -v -count 1 -parallel 2 -run=TestAccVPCLatticeAccessLogSubscription_ -timeout 180m
=== RUN TestAccVPCLatticeAccessLogSubscription_basic
=== PAUSE TestAccVPCLatticeAccessLogSubscription_basic
=== RUN TestAccVPCLatticeAccessLogSubscription_disappears
=== PAUSE TestAccVPCLatticeAccessLogSubscription_disappears
=== RUN TestAccVPCLatticeAccessLogSubscription_arn
=== PAUSE TestAccVPCLatticeAccessLogSubscription_arn
=== RUN TestAccVPCLatticeAccessLogSubscription_tags
=== PAUSE TestAccVPCLatticeAccessLogSubscription_tags
=== RUN TestAccVPCLatticeAccessLogSubscription_cloudwatchNoWildcard
=== PAUSE TestAccVPCLatticeAccessLogSubscription_cloudwatchNoWildcard
=== RUN TestAccVPCLatticeAccessLogSubscription_cloudwatchWildcard
=== PAUSE TestAccVPCLatticeAccessLogSubscription_cloudwatchWildcard
=== CONT TestAccVPCLatticeAccessLogSubscription_basic
=== CONT TestAccVPCLatticeAccessLogSubscription_tags
--- PASS: TestAccVPCLatticeAccessLogSubscription_basic (33.08s)
=== CONT TestAccVPCLatticeAccessLogSubscription_arn
--- PASS: TestAccVPCLatticeAccessLogSubscription_arn (31.52s)
=== CONT TestAccVPCLatticeAccessLogSubscription_disappears
--- PASS: TestAccVPCLatticeAccessLogSubscription_tags (74.95s)
=== CONT TestAccVPCLatticeAccessLogSubscription_cloudwatchWildcard
--- PASS: TestAccVPCLatticeAccessLogSubscription_disappears (28.13s)
=== CONT TestAccVPCLatticeAccessLogSubscription_cloudwatchNoWildcard
--- PASS: TestAccVPCLatticeAccessLogSubscription_cloudwatchWildcard (27.29s)
--- PASS: TestAccVPCLatticeAccessLogSubscription_cloudwatchNoWildcard (26.09s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/vpclattice 124.017s
@exoego Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.10.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
When CloudWatch Logs is the destination,
destination_arn
should end with:*
.So, if the given
destination_arn
does not end with:*
, actionable error message is shown.Relations
Closes #31595
References
N/A
Output from Acceptance Testing
BEFORE (without fixes)
AFTER (with fixes)