Repository navigation
feat(#1613, #1640): EventBridge buses, per-bus rules, enable/disable, tagging provider - #1701
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
… tagging provider Fixes #1640. Part of #1613. Co-Authored-By: Claude <[email protected]>
scttfrdmn
force-pushed
the
feat/v0134-eventbridge
branch
from
November 25, 2026 00:13
fe70214 to
5866431
Compare
… paths Co-Authored-By: Claude <[email protected]>
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1640
Part of #1613: this is the EventBridge part (buses, per-bus rules, enable/disable). Archives, replays, connections, API destinations and
TestEventPatternare #1691.CreateEventBus,DescribeEventBus,UpdateEventBusandDeleteEventBus.Description,KmsKeyIdentifier,DeadLetterConfig,LogConfig,Policy,Tagsandever_tagged.defaultbus. It is synthesized until a write gives it a record, and deleting it is refused.ListEventBusesnow answers from the records. It pages throughpage[T]onNamePrefix,LimitandNextToken.DeleteEventBusrefuses while the bus has rules, withValidationExceptionand AWS's observedEventBus can't be deleted since it has rules..default) isLimitExceededException.EventSourceName) is refused withResourceNotFoundException, because no partner event sources are modelled.PutPermissionandRemovePermissionedit the policy thatDescribeEventBusreports. They take eitherPolicy, or aStatementId/Action/Principal/Conditionstatement, which replaces any statement with the same Sid. A policy over 10,240 characters isPolicyLengthExceededException. The statement shape is the oneaws_cloudwatch_event_permissionreads back.rule/{bus}/{name}.[.\-_A-Za-z0-9]{1,64}, which has no/, so the two key forms cannot collide.TestEBRules_APreV0134RecordIsTheDefaultBusRuleloads a legacy record, its targets and its index. It then lists, describes, disables, tags, readsGetResourcesand deletes.EventBusName(name or ARN).PutRulerefuses a bus that does not exist and enforces the 300-rules-per-bus quota.EnableRule,DisableRuleandListRuleNamesByTarget. The last is a new op, paged bypage[T].resourceTaggerandtaggableResourceListerfor both rules and buses. Writes go underruleMu, through one state-taking merge (ebMergeTagsAt) shared with EventBridge's ownTagResourceand the tagging plugin's direct path.TagResourcesrefusesaws:keys, and an owner's quota and length refusals come back as its own codes.taggingARNOwnergainsevents→eventbridge, andresolveARNandmergeResourceTagsgaineventsarms.GetResourcesscans through the lister and now includes buses.event-bus/arm ofebParseTagARNresolves to the bus record.AWS::Events::EventBus, with itscfnResourceDeployersrow, a delete,Fn::GetAttArn/Name,PolicythroughPutPermission, and in-place updates (Namereplaces).AWS::Events::Ruleis created and deleted on itsEventBusName, and passesRoleArnandTags.Rule X does not exist on EventBus Y.,Event bus X does not exist.,Event bus X already exists.andEventBus can't be deleted since it has rules.are AWS's observed text. Sources are cited ineventbridge_buses.go/eventbridge_tags.go: terraform-provider-aws #31634 and #22131, serverless #8479, pulumi-aws stepfunctions: GetExecutionHistory renders timestamp as RFC3339 and emits two unpublished event types #1323, and Stack Overflow 76683058 and 76065443. The other messages are substrate's own. The code for refusing to delete the default bus (ValidationException) is what moto and Floci answer, and its message is substrate's own.Routed-operation catalog: from 1,128 to 1,137 (+9: CreateEventBus, DescribeEventBus, UpdateEventBus, DeleteEventBus, PutPermission, RemovePermission, EnableRule, DisableRule, ListRuleNamesByTarget). The wire-model snapshot was re-fetched (
events.json.gz,manifest.json,wire_model_gen.go).Gates run locally:
make lint test e2e;operation-catalog-check docs-reference-check docs-headings-check operation-docs-check authz-reference-check cfn-schema-check wire-model-check scheduler-query-model-check doc-links-check);wire-bookkeeping-check discarded-* nondeterminism-check comment-history-check);docs-versions docs-counts-check;SUBSTRATE_IAC=1 make iac-e2e;Terraform scratch check against a built binary, with provider 6.73.0:
aws_cloudwatch_event_bus, a rule on it,aws_cloudwatch_event_target,aws_cloudwatch_event_permission, a second bus withaws_cloudwatch_event_bus_policy, and a default-bus rule.Follow-up filed: #1697 (CFN rule
Targetsand in-place updates,PutTargetsquotas,PutEventsto an absent bus,ListTargetsByRulepaging).