-
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
EventBridge event_bus_name
parameter validation
#30109
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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 PKG=events TESTS='TestAccEventsTarget_|TestAccEventsPermission_|TestAccEventsBusPolicy_|TestAccEventsRule_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/events/... -v -count 1 -parallel 20 -run='TestAccEventsTarget_|TestAccEventsPermission_|TestAccEventsBusPolicy_|TestAccEventsRule_' -timeout 180m
--- PASS: TestAccEventsTarget_disappears (27.06s)
=== CONT TestAccEventsTarget_Input_transformer
--- PASS: TestAccEventsRule_scheduleAndPattern (29.66s)
=== CONT TestAccEventsPermission_disappears
--- PASS: TestAccEventsRule_namePrefix (29.69s)
=== CONT TestAccEventsTarget_sqs
--- PASS: TestAccEventsRule_Name_generated (29.99s)
=== CONT TestAccEventsRule_basic
--- PASS: TestAccEventsRule_eventBusARN (31.56s)
=== CONT TestAccEventsPermission_multiple
--- PASS: TestAccEventsPermission_action (34.34s)
=== CONT TestAccEventsTarget_kinesis
--- PASS: TestAccEventsBusPolicy_ignoreEquivalent (37.38s)
=== CONT TestAccEventsTarget_ssmDocument
--- PASS: TestAccEventsRule_role (40.71s)
=== CONT TestAccEventsTarget_ecsFull
--- PASS: TestAccEventsPermission_condition (45.02s)
=== CONT TestAccEventsTarget_ecsCapacityProvider
--- PASS: TestAccEventsTarget_basic (46.75s)
=== CONT TestAccEventsTarget_redshift
--- PASS: TestAccEventsRule_pattern (47.57s)
=== CONT TestAccEventsPermission_eventBusName
--- PASS: TestAccEventsTarget_inputTransformerJSONString (48.90s)
=== CONT TestAccEventsTarget_ecs
--- PASS: TestAccEventsBusPolicy_basic (49.02s)
=== CONT TestAccEventsTarget_http_params
--- PASS: TestAccEventsPermission_basic (58.69s)
=== CONT TestAccEventsRule_description
--- PASS: TestAccEventsRule_isEnabled (59.05s)
=== CONT TestAccEventsTarget_generatedTargetID
--- PASS: TestAccEventsTarget_ssmDocument (22.37s)
=== CONT TestAccEventsTarget_full
--- PASS: TestAccEventsRule_eventBusName (61.57s)
=== CONT TestAccEventsTarget_RetryPolicy_deadLetter
--- PASS: TestAccEventsPermission_multiple (32.61s)
=== CONT TestAccEventsTarget_ecsWithBlankTaskCount
--- PASS: TestAccEventsPermission_eventBusName (20.66s)
=== CONT TestAccEventsTarget_eventBusName
--- PASS: TestAccEventsRule_tags (74.01s)
=== CONT TestAccEventsTarget_eventBusARN
=== CONT TestAccEventsTarget_ecsWithBlankLaunchType
--- PASS: TestAccEventsTarget_Input_transformer (47.79s)
--- PASS: TestAccEventsTarget_ecsFull (37.45s)
=== CONT TestAccEventsTarget_http
--- PASS: TestAccEventsTarget_generatedTargetID (22.42s)
--- PASS: TestAccEventsTarget_sqs (52.03s)
--- PASS: TestAccEventsRule_basic (52.55s)
--- PASS: TestAccEventsTarget_ecs (35.32s)
--- PASS: TestAccEventsTarget_http_params (37.33s)
--- PASS: TestAccEventsTarget_eventBusName (19.08s)
--- PASS: TestAccEventsTarget_kinesis (54.22s)
--- PASS: TestAccEventsRule_description (30.66s)
--- PASS: TestAccEventsTarget_eventBusARN (17.20s)
--- PASS: TestAccEventsTarget_ecsWithBlankTaskCount (31.65s)
--- PASS: TestAccEventsTarget_full (48.21s)
--- PASS: TestAccEventsTarget_RetryPolicy_deadLetter (53.55s)
--- PASS: TestAccEventsTarget_http (43.19s)
--- PASS: TestAccEventsTarget_ecsCapacityProvider (78.88s)
--- PASS: TestAccEventsTarget_ecsWithBlankLaunchType (58.59s)
--- PASS: TestAccEventsTarget_batch (140.91s)
--- PASS: TestAccEventsBusPolicy_disappears (143.08s)
--- PASS: TestAccEventsPermission_disappears (136.01s)
--- PASS: TestAccEventsTarget_ecsWithoutLaunchType (301.20s)
--- PASS: TestAccEventsTarget_redshift (273.67s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/events 323.995s
This functionality has been released in v4.60.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
For the
event_bus_name
parameter, the EventBridge resourcesaws_cloudwatch_event_rule
andaws_cloudwatch_event_target
accept a name or ARN, whileaws_cloudwatch_event_bus_policy
andaws_cloudwatch_event_permission
only accept a name. This PR updates the validation for the four resources.Relations
Closes #18182
References
Output from Acceptance Testing