Repository navigation
feat(#1613, #1539, #1627): Kinesis ListShards, EFO consumers, retention and UpdateMaxRecordSize; Organizations create/delete - #1704
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This was referenced Nov 24, 2026
Merged
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 #1539
Fixes #1627
Part of #1613 — this PR ships the Kinesis items:
ListShards, EFO consumers and the retention changes. Still open under #1613: Route 53, STS/IAM federation, Lambda versions, EventBridge, CloudWatch/Logs and S3, which have their own v0.134.0 PRs.SubscribeToShardis refused here and tracked in #1695.ListShards.DescribeStreamshard view, ordered by shard ID.MaxResults(1–10000; default and cap 1000) and onNextToken, usingpage[T]/jsonNextToken. The token itself carries the stream and the filter.ExclusiveStartShardIdand everyShardFiltertype; shard times come from the sequence numbers on the simulated clock.StreamCreationTimestampis accepted; a value other than the stream's creation time isResourceNotFoundException.NextTokentogether withStreamName,ExclusiveStartShardIdorStreamCreationTimestampisInvalidArgumentException.StreamARNas well asStreamName.Register/Describe/List/DeregisterStreamConsumer. The ARN isstreamARN/consumer/{name}:{epoch seconds}on the simulated clock.CREATINGat once (LimitExceededException). A duplicate name isResourceInUseException.CREATING→ACTIVEfollows theprogression.goseedPOST/DELETE /v1/kinesis/consumer-status, mounted in the recorded control-plane group.DeleteStreamhonoursEnforceConsumerDeletion.TagResource,UntagResourceandListTagsForResourcecover streams and consumers. The page names consumers, andRegisterStreamConsumeracceptsTags.Increase/DecreaseStreamRetentionPeriod, 24–8760 hours. The value must move the period in the operation's direction, and the stream must beACTIVE.UpdateMaxRecordSize(kinesis: UpdateMaxRecordSize is not routed #1539). A value out of range isValidationException, citing the API page's own sentence;CreateStreamkeepsInvalidArgumentException. The decision is recorded on the issue.SubscribeToShardanswersUnknownOperationException/404 with substrate's own message pointing at kinesis: SubscribeToShard (HTTP/2 event stream) #1695, the same shape as the OpenSearch control-plane refusal. It is not in the dispatch switch, so the catalog does not count it as routed.EncryptionType: NONE, and the summary reportsConsumerCount. WithoutEncryptionType,aws_kinesis_streamplans a change on every refresh.AWS::Kinesis::StreamConsumerhas acfnResourceDeployersrow, a deleter (DeregisterStreamConsumer) and GetAtt metadata, soStreamARNresolves to the stream's ARN rather than the consumer's.CreateOrganization(ALL/CONSOLIDATED_BILLING) answersAlreadyInOrganizationExceptionwhen the caller already has an organization or is a member of one.DeleteOrganizationrefuses an organization that still has members (OrganizationNotEmptyException) and refuses a member caller (AccessDeniedException). Otherwise it sweeps every record the organization holds.org_deleted:marker, read by bothensureOrganizationandHandleRequest, makes every call answerAWSOrganizationsNotInUseExceptionuntil the nextCreateOrganization.testAccOrganization_basic, which runs against AWS, and is recorded under Provenance.ListAWSServiceAccessForOrganization, so it is routed along withEnable/DisableAWSServiceAccess.Review fixes (second commit set):
NextTokenconflict check walks the members in a fixed order, so the member a refusal names is deterministic.kinesisValidateTagMapnow checks keys in sorted order for the same reason, which fixes this pre-existing nondeterminism in AddTagsToStream and CreateStream as well. There is a test for both.TagResource/UntagResourceholdconsumerMuacross the load and the save, so a write can no longer resurrect a deregistered consumer.RegisterStreamConsumernow reads the stream under the lock.AWS::Kinesis::StreamsendsEnforceConsumerDeletion: true. This is substrate's reading. TheAWS::Kinesis::Streamtemplate reference says nothing about consumers, and the resource provider's source isn't public (aws-cloudformation-resource-providers-kinesisreturns a 404), so I couldn't confirm what CloudFormation sends. A test covers a consumer registered outside the stack.CONSOLIDATED_BILLING: all three service-access ops answerConstraintViolationException/ORGANIZATION_NOT_IN_ALL_FEATURES_MODE. The message is that reason's description in the API reference'sConstraintViolationException. No service-access operation page states the requirement itself. The evidence is the reason's own description and the Terraform provider's observed handling: it skipsListAWSServiceAccessForOrganizationunless the feature set isALL, with an inline comment quoting AWS's "does not have all features enabled"ConstraintViolationException.AvailablePolicyTypes: it now reports the root's policy types, the same setListRootsreports. The API reference deprecates the member in favour ofListRoots. It is absent afterDisablePolicyTypeand for an explicitly created organization.API_ShardFilterpublishes.%w.### Provenancesection and the acceptance-test clause are removed.Provenance for the release notes: an explicit
CreateOrganizationleaves the root's policy types empty. This follows the Terraform AWS provider'stestAccOrganization_basic(v6.73.0,internal/service/organizations/organization_test.go), which runs against real AWS and assertsroots.0.policy_types.#is 0 afterCreateOrganizationwithFeatureSetALL. The API reference instead says SCPs are "automatically enabled in the root".Gates run locally:
make lint test e2eoperation-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-checkwire-bookkeeping-check discarded-*-check nondeterminism-check comment-history-check, plusdocs-versionsanddocs-counts-checkSUBSTRATE_IAC=1 make iac-e2edocs/node_moduleswas removedmake wire-model-fetch && make wire-modelfor the new opsTerraform scratch run (provider 6.73.0, against a built server):
aws_kinesis_stream(retention 48),aws_kinesis_stream_consumerandaws_organizations_organization.applysucceeded and the followingplanwas empty.IncreaseStreamRetentionPeriod), then 72→24 (DecreaseStreamRetentionPeriod), with an emptyplanafter each.destroysucceeded.Follow-ups: #1695 (
SubscribeToShard), already filed.