Skip to content

Releases

v0.134.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 25 Nov 02:59
v0.134.0
486d0ef

The roadmap review (#1597) found gaps in the operations Terraform and CDK call most often. This release covers IaC hot paths across eight services, taking the routed-operation catalog from 1,128 to 1,223. Terraform's Route 53 waiter now completes. GitHub Actions and EKS IRSA can federate into roles. Lambda versions and aliases, EventBridge custom buses and Kinesis enhanced fan-out consumers are modelled. Terraform's aws_s3_bucket refresh no longer gets a 501.

Route 53 (#1705, #1586)

  • GetChange answers the change IDs every create, delete and change call mints. A seed (/v1/route53/change-status) reports PENDING for a set number of reads before INSYNC.
  • Other operations: ListHostedZonesByName, tags, health checks (status seeded via /v1/route53/health-check-status, never computed), and UpdateHostedZoneComment.
  • #1586: ChangeResourceRecordSets is batch-atomic. A CREATE of an existing record, or a DELETE that is missing or has mismatched values, fails the whole batch with InvalidChangeBatch.
  • Records: they are keyed by SetIdentifier. Names are reported lower-cased, octal-escaped (\052 for *) and with a trailing dot.

STS and IAM federation (#1700, #1706, #1711)

  • Identity providers: IAM OIDC and SAML provider operations.
  • Federated assume: AssumeRoleWithWebIdentity and AssumeRoleWithSAML check claims but not signatures.
    • Checked: issuer, audience, sub, exp/nbf against the simulated clock, the SAML entityID, audience and role pairing, and a trust policy that names the provider.
    • Signature rejection, IDPRejectedClaim and IDPCommunicationError are seedable through /v1/sts/federation-outcome.
  • Session policies (Policy/PolicyArns) narrow every assume. The narrowing applies in every authorization pass, in later CloudFormation stack operations and on replay.
  • Session tags and SourceIdentity: they need sts:TagSession/sts:SetSourceIdentity, and they carry through role chaining. AssumeRole also enforces MaxSessionDuration.
  • IAM additions:
    • ListEntitiesForPolicy;
    • atomic UpdateUser/UpdateGroup renames that move every dependent record, whose sessions follow the user;
    • login profiles;
    • the listings Terraform's force_destroy makes.

Lambda, EventBridge, Kinesis, Organizations

  • Lambda (#1702):
    • PublishVersion, honoured Publish=true, aliases with deterministic weighted routing, and GetFunctionConfiguration.
    • Qualifiers resolve in Invoke, permissions and internal invokes.
    • An ARN naming another account, or another Region, is refused.
  • EventBridge (#1701, #1640):
    • Event buses, with rules keyed per bus.
    • Enable/DisableRule and bus policies.
    • EventBridge implements the tagging provider.
    • CloudFormation rules apply their Targets and can move buses.
  • Kinesis (#1704, #1539): ListShards, enhanced fan-out consumers (seeded CREATING→ACTIVE), retention changes and UpdateMaxRecordSize.
  • Organizations (#1627): Create and DeleteOrganization, and the trusted-service-access operations.

S3 and CloudWatch (#1703)

  • S3 bucket configurations: website, logging, Transfer Acceleration, request-payment and replication are recorded and answered back, and never acted on.
    • Unconfigured reads answer AWS's "not configured" document or error instead of 501.
    • A bucket created with Object Lock reports it.
    • Grantees render xsi:type.
  • CloudWatch: dashboards.

Provenance

These answers come from observed behaviour, because no API page publishes them. Each is cited next to its literal in the code:

  • Route 53: "Tried to create resource record set […] but it already exists" and "…but it was not found", from an AWS Knowledge Center article, terraform-provider-aws#37806 and Stack Overflow 56960423.
  • STS and IAM:
    • The OIDC EntityAlreadyExists and NoSuchEntity wording.
    • The web-identity "No OpenIDConnect provider found", "Incorrect token audience" and "Token expired" messages.
    • "Requested DurationSeconds exceeds MaxSessionDuration set for this role." and the SAML issuer and audience messages, from the IAM troubleshooting guide.
    • "Duplicate tag keys found…", which is IAM's observed wording.
    • The login-profile DeleteConflict and NoSuchEntity texts.
  • Lambda:
    • "A version for this Lambda function exists ( N )…", from aws-cdk#14428 and serverless#8392.
    • "Functions from '…' are not reachable in this region ('…')", answered as ResourceNotFoundException, from Stack Overflow 48250426 and aws-sdk-cpp#332.
  • EventBridge: "Rule X does not exist on EventBus Y.", "Event bus X does not exist.", "Event bus X already exists." and "EventBus can't be deleted since it has rules.". DeleteEventBus of the default bus answers ValidationException, matching moto.
  • S3 and CloudWatch:
    • NoSuchWebsiteConfiguration, ReplicationConfigurationNotFoundError and ObjectLockConfigurationNotFoundError (terraform-provider-aws#30646 and #7550).
    • The replication schema-version texts (ministack#2311, terraform-provider-aws#19323).
    • The Object Lock versioning texts (terraform-aws-s3-bucket#90).
    • "Dashboard X does not exist" (terraform-provider-aws#25548).
  • Organizations: an explicit CreateOrganization enables no policy type at the root. That matches the Terraform provider's acceptance tests against AWS (testAccOrganization_basic, v6.73.0), although the API reference says SCPs are enabled automatically.

Where nothing is published, the message is substrate's own, and the CHANGELOG says so.

Compatibility

  • Authorization, presigned and SigV2 requests:
    • A presigned URL, S3 POST-policy upload or SigV2 request is now authorized as its signer. Before, it was unenforced.
    • With VerifySignatures on, those credentials aren't verified yet, so they resolve no principal (#1713).
  • Authorization, deleted principals: a key or session whose IAM user or role was deleted is refused with AccessDenied. A deleted role's sessions stop working.
  • STS:
    • AssumeRole now applies Policy/PolicyArns. An AWS managed policy that substrate doesn't bundle narrows the session to nothing (#1712).
    • AssumeRole refuses a DurationSeconds above the role's MaxSessionDuration, and needs sts:TagSession/sts:SetSourceIdentity when it passes tags or a source identity.
  • IAM: DeleteUser refuses while a login profile, access keys or inline policies remain (DeleteConflict). A trust-policy "AWS" principal never matches an OIDC or SAML provider.
  • Route 53:
    • A CREATE of an existing record and a mismatched DELETE now fail the batch.
    • Names come back lower-cased, escaped and dotted.
    • Weighted records carry their own key.
  • Lambda:
    • ListVersionsByFunction lists published versions.
    • A Qualifier must name an existing version or alias.
    • Another account's ARN answers AccessDeniedException, and another Region's answers ResourceNotFoundException, including on event source mappings and Scheduler targets.
  • EventBridge:
    • A rule on a custom bus has the ARN rule/{bus}/{name}, and PutRule refuses a bus that doesn't exist.
    • Rule names are validated.
    • A foreign-account or foreign-Region bus ARN answers ResourceNotFoundException.
  • Kinesis: DeleteStream refuses a stream with consumers unless EnforceConsumerDeletion is true. CloudFormation sends it, which is substrate's reading.
  • Organizations: after DeleteOrganization, every call answers AWSOrganizationsNotInUseException until CreateOrganization.
  • S3: PutBucketVersioning Suspended is refused (InvalidBucketState) under Object Lock or replication.
  • Tooling: adding a routed operation needs make wire-model-fetch, which uses the network.
  • Catalog: the routed-operation catalog grows from 1,128 to 1,223.

PRs: #1696, #1700, #1701, #1702, #1703, #1704, #1705, #1711. Issues: #1613, #1586, #1582, #1583, #1539, #1627, #1640, #1706. Follow-ups: #1690–#1695, #1697–#1699, #1707–#1710, #1712–#1714.

Compare: v0.133.0...v0.134.0

v0.133.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 24 Nov 10:58
v0.133.0
956ae1e

Every plugin hand-writes its own input checks, pagination and error codes, and the roadmap review (#1597) found them thin and inconsistent. This release lays the foundation for a generated wire layer. Requests are now validated against AWS's own published service models before a plugin runs, starting with five pilot services. One shared cursor-pagination primitive replaces offset paging for ELB, RAM, CodePipeline, CloudFront and IAM.

Validation from AWS's models (#1612)

  • Vendored models: a pinned botocore 1.44.10 snapshot (70 models, 1,116 routed operations, about 356 KB gzipped) is vendored under emulator/wiremodel/.

    • cmd/gen-wire-model turns it into constraint tables: -fetch runs by hand and -check runs offline in CI.
    • gen-scheduler-query-model now reads the snapshot instead of the AWS CLI's models.
  • The gate: one interpreter reads JSON, CBOR, Query, EC2, REST and XML requests. It runs after authorization, quota, consistency and fault injection, and only on top-level client requests, so internal dispatches from CloudFormation, Scheduler and the API Gateway proxy are not gated.

    • Checked by default: required members, lengths and ranges.
    • Opt-in per service: enums and patterns, turned on only where AWS's enforcement is cited.
  • Pilots: each answers in that service's own published code and form:

    • ACM: ValidationException
    • SESv2: BadRequestException
    • Route 53: InvalidInput
    • ElastiCache: InvalidParameterValue
    • EC2 key pairs and placement groups: MissingParameter

    The plugins' own checks answer byte-for-byte what the gate does, so a stack's dispatch and a client request get the same answer.

  • Replay: Event.ValidationModel records the snapshot a request was validated against. Replay runs the gate only for events that carry it, so recordings made before this release replay unchanged.

Cursor pagination (#1528, #1543, #1566, #1568)

  • The primitive: page[T] resumes strictly after the last item returned. Its tokens are opaque and bound to the operation and the filter members, so a create or delete between pages neither skips nor repeats a record.
  • #1528 (ELB): the five resource describes page on an ARN or name cursor.
  • #1566 (RAM): ListPrincipals and ListResources page on the entity.
  • #1543 (CodePipeline): ListPipelines pages on maxResults and nextToken.
  • #1568 (CloudFront): ListDistributions and ListOriginAccessControls page on Marker and MaxItems.
  • IAM: a Marker that IAM didn't issue is now refused, instead of quietly answering page one.

Provenance

Several validation message forms come from observed behaviour, not published pages. Each is cited next to its row in wire_validate_errors.go.

  • ACM: "Value of the input at …", from spinifex#1181, ministack#2588, cdkd#5281 and aws-load-balancer-controller#4836.
  • SESv2: "Value at …", from terraform-provider-aws#40591.
  • Route 53: the quoted-value form, from terraform-provider-aws#37817, and the tTL path, from caddy-dns/route53#17.
  • ElastiCache: "The parameter X must be provided and must not be blank.", from Stack Overflow 64722305 and cloudposse#89.
  • EC2: "The request must contain the parameter X", from AWS forums and packer#3799.
  • Enum enforcement: cited from terraform-provider-aws#11677 for Route 53 and #38207 for SESv2.

Substrate's own wording, where nothing is published:

  • SESv2's and Route 53's Value null at form for a missing member;
  • ElastiCache's length messages;
  • Member must not be blank;
  • the pagination refusal messages.

Compatibility

  • Validation in general: requests to ACM, SESv2, Route 53, ElastiCache and EC2's key-pair and placement-group operations that break a published constraint are now refused before the plugin runs. Turn the gate off with wire.validate: false, SUBSTRATE_WIRE_VALIDATE=false or WithoutWireValidation().
  • Newly required members, by service. The CHANGELOG has the full generated list. Highlights:
    • ElastiCache:
      • CreateCacheSubnetGroup requires SubnetIds;
      • CreateCacheParameterGroup requires Description;
      • AddTagsToResource requires Tags.
    • Route 53:
      • CreateHostedZone requires CallerReference;
      • ChangeBatch members are required, and a record Type outside the enum is refused.
    • SESv2: SendEmail requires Content.
  • Changed codes and messages:
    • ACM RequestCertificate without DomainName answers ValidationException, not InvalidParameterException.
    • ElastiCache and EC2 missing-parameter messages now use AWS's sentences.
  • ELB pagination: v2 describes list in ARN order and classic DescribeLoadBalancers in name order. Earlier markers, and a marker from the other generation, are refused.
  • RAM pagination: lists come back in principal-ID or resource-ARN order. Earlier tokens, and tokens reused with different filters, are refused.
  • CloudFront pagination: list responses carry Marker and MaxItems, and the default page is 100 items. Follow NextMarker for more.
  • IAM pagination: a malformed Marker is ValidationError, or InvalidInput on the simulate operations. Tag listings' Marker is now base64 of the last key.
  • Contributors: routing a new operation now needs make wire-model-fetch, which uses the network, or wire-model-check fails naming it.
  • Catalog: the routed-operation catalog is unchanged at 1,128.

PRs: #1679, #1683, #1686. Issues: #1612, #1528, #1543, #1566, #1568. Follow-ups: #1677, #1680, #1681, #1682, #1684, #1687, #1688.

Compare: v0.132.0...v0.133.0

v0.132.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 24 Nov 04:27
v0.132.0
fb03a17

The roadmap review (#1597) found that maintenance bloat was making substrate hard to change. This release is a codebase diet. It removes features that contradicted substrate's scope or did nothing, names files by what they do instead of by the release that added them, splits the 28,700-line service reference into a page per service, and stops comments and the CHANGELOG from narrating history. Emulated behaviour is unchanged, except for the replacement seeds and the tagging rules listed under Compatibility.

Removed, and what replaces it (#1611)

  • Docker executors: the Docker Lambda executor (which ran function code in the RIE image) and the Docker Postgres container for RDS are gone. Substrate models API observations, not what runs inside a resource.
  • Lambda seeds: Invoke answers a seeded error, a seeded result or the stub. The new POST/DELETE /v1/lambda/invoke-result seeds a successful payload. Seeds resolve in this order: exact error, exact result, "*" error, "*" result. functionName may be a qualified name or an ARN.
  • S3 seeded objects: spore.host's task-completion seed is replaced by the generic POST/DELETE /v1/s3/seeded-objects.
    • A seeded object is what a GET, HEAD or copy of an unwritten key observes.
    • It can be gated on availableAt against the simulated clock.
    • It is served through the normal object path, so Range and preconditions apply.
    • A later write or delete hides it.
  • ReplayCfg.RandomSeed: removed, along with ReplayEngine.RandFloat64/RandInt64. Nothing outside tests used them.
  • Removed config keys: if a configuration still sets one, substrate prints a warning naming the key to stderr.

Structure (#1609)

  • File names: all 30 release-named files (cfn_resources_v19.go … v131.go and others) are renamed or regrouped by domain, as pure moves: the declaration set is identical before and after. A guard test refuses release-named files from now on.

  • Tagging: the Tagging plugin discovers optional per-service listing and tagging interfaces through the registry. CloudWatch, EC2 and S3 now list and tag their own resources under their own locks, and the rest keep the direct path for now (#1672).

  • Comments: comments describe the code as it is now. That is a CLAUDE.md rule, enforced by two new CI gates:

    • make comment-history-check, which checks the comment lines a PR adds;
    • make doc-links-check, which refuses dangling [ident] doc links.

    23 dangling links and several wrong claims are fixed, about 93 comments now point at the new docs pages, and the 22 heaviest files are trimmed. The remaining files are tracked in #1669.

Docs (#1610)

  • Service reference: it is now one page per plugin plus six concept pages under docs/reference/, indexed by docs/services.md. The index carries the generated coverage matrix and sidebar.
  • Old links: all 908 old /services#… anchors redirect in the browser to their new page.
  • Checks: the docs gates now check each page, every internal link and anchor (with VitePress's own heading slugs as a golden fixture), and the redirect map.
  • Operation tables: they stay hand-written and asserted against the routed-operation catalog, with a -scaffold helper. #1610 records why.
  • CHANGELOG: entries are now one line per issue, plus Compatibility bullets. The reasoning lives in each PR and issue.

Compatibility

  • Go API: these are removed:
    • LambdaExecutor, NewLambdaExecutor, LambdaExecCfg, LambdaCfg and Config.Lambda;
    • RDSExecutor, NewRDSExecutor, RDSContainerHandle, RDSCfg and Config.RDS;
    • ReplayCfg.RandomSeed, ReplayConfig.RandomSeed, ReplayEngine.RandFloat64 and ReplayEngine.RandInt64;
    • RDSPlugin.ResetForRun, so RDS is no longer a ResettablePlugin.
  • Config: these keys and their SUBSTRATE_ environment variables are removed, and are ignored with a warning: lambda.docker_enabled, lambda.replay_mode, lambda.warm_pool_ttl, rds.engine and replay.random_seed.
  • Lambda and RDS: Invoke never runs code. An RDS instance always reports its stub endpoint.
  • spore.host: an unseeded tasks/<id>/completion.json is now 404 NoSuchKey. Seed each record through /v1/s3/seeded-objects, for example {"bucket":"results","key":"tasks/t1/completion.json","contentType":"application/json","body":{"task_id":"t1","exit_code":0,"state":"completed"}}.
  • Replay: /v1/spawn/task-completion is gone, so a recorded stream containing it replays that event as a 404.
  • Tagging API: TagResources and UntagResources now refuse aws: keys. They also hold EC2 and S3 resources to those services' key, value and 50-tag rules. On S3, a key beginning AWS: (any case other than lowercase aws:) is now an ordinary tag, as it is on EC2.
  • Docs URLs: the service reference lives under /reference/. Old /services#… links redirect, but update bookmarks.
  • Catalog: the routed-operation catalog is unchanged at 1,128.

PRs: #1668, #1667, #1670, #1673, #1671. Issues: #1609, #1610, #1611. Follow-ups: #1669, #1672, #1674.

Compare: v0.131.0...v0.132.0

v0.131.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 23 Nov 22:11
v0.131.0
6f045e7

The 2026-11 roadmap review (#1597) found substrate falling short on IaC tools. CloudFormation accepted typos and unsupported types and quietly stubbed them, CDK couldn't bootstrap, and Terraform failed on 5 of 14 common resources. This release is about IaC conformance:

  • CloudFormation validates templates the way AWS does, and refuses what substrate can't emulate.
  • cdk bootstrap and cdk deploy work.
  • Real Terraform and CDK runs execute in CI on every PR.

CloudFormation

  • #1605 strict mode and ValidateTemplate:
    • Vendored specification: the CloudFormation resource specification (v273.0.0, 2,129 types) is vendored, regenerated by make cfn-schema and drift-checked offline in CI.
    • Unrecognized types: refused at the request, in every mode.
    • Types substrate doesn't emulate: refused by default. The message names each type and every opt-out.
    • Extraneous properties: a property the type doesn't declare fails the resource, and the stack rolls back.
    • ValidateTemplate: answers Parameters, Description, Capabilities (CAPABILITY_IAM/CAPABILITY_NAMED_IAM), CapabilitiesReason and DeclaredTransforms.
    • Newly modelled: AWS::CDK::Metadata, AWS::EC2::Route, AWS::EC2::SubnetRouteTableAssociation, AWS::Lambda::Permission and AWS::SQS::QueuePolicy, so typical CDK apps deploy in strict mode.
  • #1606 CREATE change sets and TemplateURL:
    • CREATE change sets: make a REVIEW_IN_PROGRESS stack, and execute through the deploy path.
    • Kept change sets: executed change sets remain, as EXECUTE_COMPLETE or EXECUTE_FAILED.
    • Condition flips: turning a Condition on or off now shows as an Add or Remove.
    • TemplateURL: read from substrate's own S3, never the network, honouring versionId and presigned URLs.
    • AWS::S3::BucketPolicy: modelled.
    • Bucket configuration: buckets apply LifecycleConfiguration and PublicAccessBlockConfiguration. This is the part of #1573 that the bootstrap template needs.
  • #1548: a Ref, Fn::GetAtt or Fn::Sub to an undeclared name is refused, in Resources and in Outputs.
  • #1591: every published Fn::GetAtt attribute of VPC, Subnet, NatGateway, ELBv2 and Lambda is either answered or refused by name. None is silently empty.

Terraform and CDK in CI

  • #1519, #1520: examples/terraform (14 resource kinds) and examples/cdk run in a new iac-e2e job on every PR.
    • Terraform: apply, an empty second plan, and destroy.
    • CDK: bootstrap, deploy and destroy.
    • Network: only the setup steps download anything; the journeys run offline.
  • #1628 RunTwice, RunThenReplay and CompareRecordedRuns:
    • test/e2e: 16 journeys are run on two fresh pinned servers with zero differences.
    • Terraform and CDK: their own call order and counts vary with timing, so each run is replayed into a fresh server instead, again with zero differences.
    • Nondeterminism: none was found in substrate.
  • Gaps the journeys exposed:
    • Lambda: ListVersionsByFunction, GetFunctionCodeSigningConfig, TracingConfig, and Tags and Version on GetFunction.
    • EC2: CreateVpc tags and tenancy, and DescribeNetworkInterfaces.
    • IAM: ListInstanceProfilesForRole.
    • Logs: kmsKeyId, plus AssociateKmsKey and DisassociateKmsKey.
    • SQS: Query-compatible error codes.

CloudWatch, Logs and Scheduler

  • #1595: PutMetricData datapoints are stored and validated.
    • Reads: GetMetricData and GetMetricStatistics aggregate them deterministically, including nearest-rank percentiles and a small metric-math subset.
    • ListMetrics: reports and filters dimensions.
  • #1618, #1620: alarms carry tags, and DescribeAlarms renders every stored PutMetricAlarm member.
  • #1513: AWS/Scheduler invocation metrics are derived from Scheduler state when queried.
  • #1596: FilterLogEvents parses filter patterns: terms, ?/-, and JSON selectors with comparisons, &&/|| and wildcards.

Secrets Manager, EventBridge, DynamoDB, SNS, Auto Scaling

  • #1622: ListSecrets returns full metadata, honours Filters, SortBy and SortOrder, and pages with a stable cursor.

  • #1623: resource policies are stored and validated, with BlockPublicPolicy. They are not enforced; that is #1636.

  • #1607: EventBridge rule tags.

  • #1608: for DynamoDB:

    • TableId, WarmThroughput and SSEDescription;
    • Describe/UpdateContinuousBackups.

    For SNS, the default topic Policy.

  • #1594: Auto Scaling EnableMetricsCollection, DisableMetricsCollection and DescribeMetricCollectionTypes.

Provenance

These answers come from observed behaviour, because no API page publishes them:

  • CloudFormation:
    • "Properties validation failed for resource … extraneous key [X] is not permitted": re:Post, aws-cdk #25409 and #28984.
    • The Outputs-block unresolved-dependency message.
    • "Template error: instance of Fn::GetAtt references undefined resource X": Stack Overflow 41855596, aws-cdk #22046.
    • The CapabilitiesReason text.
    • "TemplateURL must be a supported URL.": re:Post, cloudformation-coverage-roadmap #1212.
    • The "S3 error: " prefix: quickstart-boomi-atom #24.
    • "Stack [X] already exists and cannot be created again with the changeSet [Y].": copilot-cli #1376.
  • SNS: an empty Policy is refused, and deleting a CloudFormation TopicPolicy restores the default policy: go-to-k/cdkd #4610 and #4618.

Where nothing is published, the message is substrate's own, and the CHANGELOG says so.

Compatibility

  • Strict CloudFormation is the default.

    • What's refused: a template with a type substrate doesn't emulate is refused. Common examples are custom resources (CDK's autoDeleteObjects and S3 event notifications), SAM, AWS::ApplicationAutoScaling::*, AWS::Lambda::Url and AWS::ApiGateway::Account.
    • Opting out: use cloudformation.lenient: true, SUBSTRATE_CLOUDFORMATION_LENIENT=true, WithLenientCloudFormation(), WithDeployerLenient(true) or WithClientLenientCloudFormation().
    • Always refused: misspelled types and properties a type doesn't declare are refused in every mode.
    • AWS::ECR::LifecyclePolicy is gone: it isn't a real type. Use AWS::ECR::Repository's LifecyclePolicy property.
  • Change sets: an executed change set now remains. An UPDATE change set with no changes is FAILED with AWS's reason. A REVIEW_IN_PROGRESS stack can't be updated.

  • SSM: PutParameter refuses names prefixed aws or ssm. Only AWS-managed public parameters authorize against an account-less ARN.

  • CloudWatch:

    • PutMetricData enforces AWS's timestamp window against the simulated clock, so a pinned past epoch refuses wall-clock timestamps.
    • GetMetricData now returns caller datapoints.
    • Alarm updates replace every stored member.
  • Secrets Manager: ListSecrets hides secrets pending deletion unless IncludePlannedDeletion is set, and sorts by creation date by default.

  • S3: Block Public Access now treats negated, IfExists and Null conditions as not narrowing, so some bucket policies are now public.

  • EventBridge: a missing rule is ResourceNotFoundException with status 400, not 404, including from RemoveTargets.

  • Replays and fixtures: recordings that touch these paths replay differently. That covers:

    • SNS Policy;
    • DynamoDB TableId and WarmThroughput;
    • generated names for ElastiCache parameter groups and EFS file systems;
    • the CloudFormation not-found messages.

    Re-record affected fixtures.

  • Lambda: LambdaPermissionStatement.Principal is now interface{}.

  • Catalog: the routed-operation catalog grows from 1,105 to 1,128.

Full detail, with the reasoning and the citation for every entry: CHANGELOG v0.131.0.

Compare: v0.130.0...v0.131.0

v0.130.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 23 Nov 08:11
v0.130.0
a28033f

The 2026-11 roadmap review (#1597) found that substrate's headline claims were weaker in practice than the docs said. Two fresh runs minted different IDs, replay was off by default, time-travel returned the wrong state, exported fixtures couldn't pass, and MaxCost only warned. This release makes the differentiators true. Reproducibility, replay, time-travel, fixtures and the cost budget now do what the README says, and the README says only what they do.

Deterministic runs

  • #1598: a seeded server assigns request IDs req-<8 hex>-<n> in arrival order, so two fresh runs of the same calls mint the same identifiers. Pinning an epoch also freezes the clock, so the two runs answer byte-identical bodies.
    • Where it's on: StartTestServer and pytest-substrate seed by default.
    • Pinning the clock: opt in with WithDeterministicRun(epoch), @pytest.mark.substrate(deterministic=True), or substrate server --seed N --epoch T. There is also run.seed/run.epoch in config and GET/POST /v1/control/run.
    • Reset: POST /v1/state/reset rewinds the sequence and re-pins the clock.
    • What stays nondeterministic: overlapping concurrent requests, the HTTP Date header, and a stream that spans a reset. The testing guide documents these.
  • #1600: plugins no longer mint identifiers from the wall clock or math/rand. This covers S3 multipart UploadId, Organizations IDs, Firehose RecordId, the API Gateway proxy requestId and RequestContext.Timestamp. A new CI gate, make nondeterminism-check, refuses new wall-clock reads and random sources in emulator code outside a reviewed allowlist.

Replay, time-travel and fixtures

  • #1599: request and response bodies are recorded by default, with credential headers and signing parameters (SigV4 and SigV2) stripped.
    • A body over event_store.max_body_bytes (1 MiB by default) is stored as a digest.
    • TestServer.Replay(t) and AssertReplay(t) replay a test's traffic into a sandbox and fail on any difference.
  • #1601: time-travel replays through a ReplaySandbox, a separate emulator that applies each event's recorded request ID, clock and principal. It re-applies seeds and re-decides auth, quota, consistency and faults as the recording server did.
    • /v1/debug/events/{seq}/state returns the state before event seq in a stream, with any replay differences.
    • StepBackward works, and so does substrate debug state-at.
    • DebugSession no longer wipes the client's live state.
  • #1602: exported fixtures embed the recorded events and replay them in process, so headers, method, query, IDs and clock all survive. A fixture fails on any body difference. Exporting a stream with an event that can't be replayed, or from a server with fault rules armed, is refused with a 422.

Cost and docs

  • #1603: Client.Deploy returns ErrCostBudgetExceeded when the metered cost exceeds Intent.MaxCost, and a ValidationReport with a MaxCost violation is now fail. The docs call this API-call cost metering; a resource-time model is #1615.
  • #1604:
    • Pinned plugin counts are gone from the prose, and make docs-counts-check keeps them out.
    • The comparison table is dated 2026-11 and sourced.
    • The pytest-substrate install says "from source" until PyPI (#1616).
    • The README's invented "WARNING" output is removed.
    • The replay and time-travel snippets are rewritten and run as a test.

Compatibility

  • Request IDs: test-server request IDs have a new deterministic format, req-<8 hex>-<n>, and repeat across test servers. Pass WithoutSeededIDs() for the old wall-clock IDs. A CLI server without --seed/run.seed is unchanged.
  • Derived IDs: S3 UploadIds (mpu- plus 32 hex characters) and Organizations IDs now derive from the request ID.
  • Recorded bodies:
    • WithRecordedBodies() no longer has an effect, and WithoutRecordedBodies() turns recording off.
    • Event stores grow, because each body up to 1 MiB is kept; bounding the memory store is #1633.
    • A request body over the cap is skipped on replay unless max_body_bytes is raised.
  • Replay re-decides quota and consistency. Before, a replayed request was exempt (#833). Now a recorded throttle or InconsistentStateException reproduces on replay instead of being reported as a difference. That is exact only for serialized traffic.
  • Time-travel API:
    • JumpToEvent takes an int stream position; use JumpToSequence for a sequence.
    • The state-at endpoint's sequence means "before", and its body is a StateAt object.
    • /v1/debug/state/diff diffs per key.
  • Fixtures: regenerate exported fixtures. Old ones still run, but they re-send requests without headers and check only status codes.
  • Cost:
    • Deploy can return an error wrapping ErrCostBudgetExceeded where it returned nil; the resources are deployed, not rolled back.
    • StopRecording and Validate no longer apply the last deploy's intent; use StopRecordingWithIntent or ValidateWithIntent.
  • Control plane: POST /v1/control/time with "frozen": false also unpins a pinned clock.
  • Catalog: the routed-operation catalog is unchanged at 1,105.

Full detail, with the reasoning for every entry: CHANGELOG v0.130.0.

Compare: v0.129.0...v0.130.0

v0.129.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 15 Nov 22:01
v0.129.0
a144285

v0.128.0 fixed request members that were read and then thrown away. This release asks three questions about what a response says about a record: what does the record carry, whose record is it, and is it the same record twice? It closes 36 issues across 20 services. The largest change is to CloudFormation, which now updates nine common resource types in place.

CloudFormation

  • #1545 (in-place updates): these types now update in place and keep their physical IDs:

    • Lambda, DynamoDB, SQS, SNS, S3, KMS, EC2 SecurityGroup and ECS Service;
    • IAM Role, User, Group, Policy and ManagedPolicy.

    Properties that require replacement get a replacement with a freshly generated name. A failed update rolls back what it changed, including any property the failed update newly declared.

  • #1547: UpdateStack deletes a resource removed from the template, honouring DeletionPolicy.

  • #1550: security-group rule changes diff the old declaration against the new one, so rules added by standalone SecurityGroupIngress resources are left alone. Fn::GetAtt SG.GroupId and the common EC2 ID attributes now resolve.

  • #1429: an Output reading an unmodelled attribute is refused at request time. Any other Output failure fails the stack. Conditioned-out Outputs are not evaluated.

  • #1562, #1560:

    • AWS::IAM::Policy deploys as inline policies on its roles, users and groups.
    • AWS::IAM::ManagedPolicy deploys and updates through policy versions.
    • IAM gains CreatePolicyVersion, DeletePolicyVersion, SetDefaultPolicyVersion and UpdateRole.
    • AWS::IAM::User and AWS::IAM::Group deploy.
    • Roles apply ManagedPolicyArns, Policies, PermissionsBoundary and MaxSessionDuration.

EC2

  • #1553: security-group rule CIDRs are canonicalised. IPv4-mapped IPv6 text is refused. Authorize and Revoke read GroupName.
  • #1551:
    • deleting a default security group is CannotDelete;
    • a group still in use in the same VPC is DependencyViolation, and so is a subnet with dependents;
    • RunInstances refuses an unknown SubnetId.
  • #1554: ModifyVpcAttribute takes one attribute per call, and a VPC holds one internet gateway.
  • #1525, #1193: instances report architecture and their placement group. The architecture and placement-group-name filters narrow results. DeletePlacementGroup refuses a group in use.
  • #1190: CreateKeyPair drops keyType. ImportKeyPair accepts only the documented key formats and RSA lengths, and fingerprints as the User Guide does.
  • #1189: every EC2 success response carries requestId.

Envelopes, identity and idempotency

  • #1238, #1242: RDS and ElastiCache use the published http:// namespaces and carry ResponseMetadata/RequestId. These come from a shared Query envelope, which ELB, Redshift and Auto Scaling also use.
  • #1170, #1542: RAM clientToken gives idempotency on create and delete, with IdempotentParameterMismatchException when a token is reused with different parameters. The three RAM listings page with tokens bound to the operation that issued them.
  • #1116, #1115:
    • CloudFront requires CallerReference, and a reused one is DistributionAlreadyExists.
    • <Distribution> answers its published shape with the stored config nested inside.
    • Creates return Location.
  • #1166: Omics StartRun validates its required members, answers its published members, and dedupes by requestId. Run IDs replay identically across processes.
  • #1181: Backup plan ARNs use the published plan segment, and older records are corrected on read.

OpenSearch and Timestream

  • #1200: state is scoped by account, Region and domain. The domain comes from the host, or is _default for base-endpoint clients. Timestream seeds take an account and a Region, and pytest-substrate's seed_result sends Timestream's queryString.
  • #1213:
    • documents carry _version, _seq_no and _primary_term;
    • index returns 201, then 200 for an existing document;
    • a delete of an absent document is 404;
    • bulk, scroll, mapping, settings and error shapes follow the reference;
    • from + size is bounded by index.max_result_window.
  • #1212: control-plane paths answer UnknownOperationException instead of route_not_found. The domain control plane is #1564.
  • #1201: query evaluation, result order and rawQueryString are deterministic. sort and _source are honoured.
  • #1202:
    • the cost keys are fixed for OpenSearch, MSK CreateClusterV2 and EFS;
    • execute-api is charged per request, and the proxied Lambda's cost is folded into the outer event;
    • a gate test checks that every cost key can be reached.

Smaller fixes

  • #1537: Route 53 zones get their default SOA and NS records. ResourceRecordSetCount is maintained. Deleting the apex records is refused unless the batch replaces them.
  • #1538: the API Gateway v2 listings report records they can't read.
  • #1540: Step Functions nextToken is opaque and refused when substrate didn't issue it.
  • #1541: WAFv2 refuses deleting an associated web ACL, and AssociateWebACL checks the ACL exists.
  • #1179: QuickSight Status now appears only in the HTTP status line.
  • #1129: the Lambda readiness probe no longer invokes the handler.
  • #1523: GetResources finds security groups, launch templates, volumes and instance profiles.
  • #1421: classic load balancers report SourceSecurityGroup.
  • #1518: pytest-substrate ships a worked example, python/examples/test_journey.py, plus set_time and advance_time helpers.

Provenance

These answers come from observed behaviour, because no API page publishes them:

  • EC2: "CIDR block … is malformed", and the multiple-attribute and second-internet-gateway messages (aws-sdk-go and Terraform captures).
  • Route 53: the "exactly one SOA" message (terraform-provider-aws #37863 and #45241).
  • CloudFormation: "does not support attribute type … in Fn::GetAtt" (cloudformation-coverage-roadmap #1879).
  • OpenSearch: the result-window and batch-size messages, taken from OpenSearch's source.
  • ELB: a classic ELB's OwnerAlias is the account ID.

Where nothing is published, the message is substrate's own, and the CHANGELOG says so.

Compatibility

  • Replay: recordings exercising any of the fixed paths diverge on replay. In particular:
    • every EC2 success body gains requestId;
    • RDS, ElastiCache and RAM bodies change;
    • CloudFormation updates keep IDs that used to be re-minted.
  • CloudFormation:
    • removed resources are now deleted;
    • an AWS::IAM::Policy is inline, so read it back with GetRolePolicy, not GetPolicyVersion;
    • templates whose Outputs read unmodelled attributes are refused.
  • EC2:
    • ImportKeyPair rejects anything that isn't a real key in a supported format, including placeholder strings, ECDSA and DSA keys, and unsupported RSA lengths;
    • unknown subnets are refused;
    • default and in-use security groups can't be deleted.
  • CloudFront: CreateDistribution requires CallerReference.
  • Omics: StartRun requires outputUri, requestId and roleArn.
  • OpenSearch: state from before this release is unreachable after the key change, so reset it. A search with from + size over 10,000 is refused.
  • Route 53 and Step Functions:
    • zones gain two record sets;
    • record-set keys are canonicalised, and legacy keys still resolve;
    • Step Functions tokens from older recordings are refused.
  • Catalog: the routed-operation catalog grows from 1,100 to 1,105.

Full detail, with the reasoning and the citation for every entry: CHANGELOG v0.129.0.

Compare: v0.128.0...v0.129.0

v0.128.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 15 Nov 08:11
v0.128.0
6f86bad

v0.127.0 filled the gaps one consumer hit. This release returns to the fidelity audit and asks one question of 42 issues across 25 services: what happens to a request member substrate reads and then throws away? A discarded filter, cursor, flag or reference makes a test pass while the code under test is wrong. In this release each one is either honoured or refused as AWS refuses it.

It also changes CloudFormation substantially. Stacks now deploy in dependency order, and updates are applied in place.

CloudFormation

  • #1420 — resources deploy in dependency order, using Ref, GetAtt, Sub and DependsOn edges, and delete in reverse. A cycle, or a DependsOn on an undeclared or conditioned-out resource, is refused with ValidationError.

  • #1427 — UpdateStack handles each resource by what changed:

    • an unchanged resource keeps its physical ID and gets no call;
    • Transfer, Backup plans and launch templates are updated in place;
    • a "Replacement" property creates a new resource first and then deletes the old one, honouring UpdateReplacePolicy;
    • a failed update rolls back onto its starting record.

    Stacks in ROLLBACK_COMPLETE, DELETE_FAILED or ROLLBACK_FAILED refuse updates.

  • #1153 — an AWS::IAM::Policy that uses Fn::GetAtt on another resource now stores that resource's ARN.

  • #1428 — AWS::Backup::BackupPlan and BackupSelection deploy through the Backup plugin.

  • #1508 — AWS::EC2::LaunchTemplate forwards MetadataOptions and DisableApiTermination, and LatestVersionNumber/DefaultVersionNumber resolve.

EC2

  • #1492 — DeleteVpc refuses with DependencyViolation while the VPC still has dependents, and CreateVpc creates the VPC's default security group.
  • #1194 — internet-gateway attach and detach require VpcId. A mismatched detach is Gateway.NotAttached, and a double attach is Resource.AlreadyAssociated. CloudFormation's VPCGatewayAttachment now really attaches.
  • #1187 — CreateRoute and ReplaceRoute read all 12 targets and render each under its own element, so NAT routes report natGatewayId. An unavailable target is stored as blackhole.
  • #1491 — duplicate security-group rules are InvalidPermission.Duplicate, and duplicate names in a VPC are InvalidGroup.Duplicate.
  • #1151 — VPC and subnet attribute modifications read the published parameter names, and DescribeVpcAttribute is routed.
  • #1191 — Elastic IPs take TagSpecification and are found by the Resource Groups Tagging API.
  • #1506 — a launch template ImageId of resolve:ssm:<parameter> resolves at launch.
  • #1505 — a launch whose AMI architecture the instance type can't run is refused.
  • #1507 — malformed launch-template IDs and names get the …Malformed codes.
  • #1494 — DescribeImages reads ExecutableBy, and the Ubuntu AMIs report Canonical's owner.
  • #1509 — the instance-type catalog adds the Graviton gd/gn variants and g5g.

Paging and lists

  • #1131 — Secrets Manager, Step Functions, SSM and KMS lists refuse an out-of-range page size, and KMS ListAliases defaults to 50.
  • #1185 — Athena ListQueryExecutions and ListWorkGroups each enforce their own MaxResults range.
  • #1184 — Backup ListBackupPlans pages by maxResults/nextToken and reads includeDeleted.
  • #1161 — WAFv2 ListWebACLs and ListIPSets page by Limit/NextMarker, and GetWebACLForResource returns the whole WebACL.
  • #1244, #1245 — the four ELBv2 describes page on Marker/PageSize. One cursor rule covers every paginated ELB operation, and a marker substrate didn't issue is refused.
  • #1423 — API Gateway v2 CreateApiMapping validates its request, and the v2 collections page.
  • #1417 — Route 53 listings report a record they can't read instead of skipping it.

Per-service state and requests

  • #1474, #507 (S3): a BucketOwnerEnforced bucket refuses ACL writes with AccessControlListNotSupported. An email-address grantee is refused.
  • #1489 (S3): multipart operations and CopyObject authorize under the IAM actions AWS publishes, and the copy source needs s3:GetObject.
  • #1477 (IAM): a policy Statement written as a single object is accepted.
  • #1160 (CodePipeline): GetPipeline returns the version asked for.
  • #1167 (QuickSight): the path account ID is honoured, and keys include the Region.
  • #1171 (RAM): resourceOwner is read, disassociation reports DISASSOCIATED, and a delete is soft.
  • #1118, #1418 (Kinesis):
    • capacity mode works, and UpdateStreamMode is routed;
    • an ON_DEMAND stream starts with 4 shards;
    • PutRecord/PutRecords enforce the published limits.
  • #1416, #1559 (Route 53): DeleteHostedZone refuses an absent zone and a zone that isn't empty. ChangeResourceRecordSets accepts botocore's .../rrset/ path; every boto3 record-set write had failed since v0.18.0.
  • #1422 (Batch): SubmitJob requires a usable queue and job definition, and DeleteJobQueue fails the queue's unfinished jobs.
  • #1183 (Bedrock): InvokeModel applies a guardrail named in its headers, seedable through POST /v1/bedrock/guardrail-blocklist.
  • #1425 (Cognito): not-found errors answer HTTP 400.
  • #1526 (Auto Scaling): a decrementing terminate holds desired capacity at MinSize instead of refusing.
  • #1514 (Scheduler): an expression or time zone that can't be evaluated is refused, and so is an out-of-range RetryPolicy.

Provenance

Several codes and messages come from observed behaviour, because no API page publishes them:

  • CloudFormation: the circular-dependency and unresolved-dependency wording (re:Post, CDK, CLI reports); the "is in … state and can not be updated" message; the refusal of a DependsOn on a conditioned-out resource.
  • EC2: the launch-template …Malformed messages (re:Post); the architecture-mismatch message (Terraform and Stack Overflow captures).
  • S3: MethodNotAllowed/405 for email grantees in the eight Regions the notice names. InvalidArgument/400 elsewhere is substrate's reading.
  • Kinesis: refusing ShardCount together with ON_DEMAND is substrate's reading.

Where no source exists, the message is substrate's own and the CHANGELOG says so. That follows the new error-wording rule in CLAUDE.md (#487).

Compatibility

  • CloudFormation:
    • deploy and delete order follow dependencies;
    • an unchanged resource is no longer re-created on update;
    • templates with a dependency cycle or an undeclared DependsOn are now refused;
    • unnamed security groups and launch templates get generated names.
  • EC2:
    • a new VPC has a default security group;
    • DeleteVpc and DeleteInternetGateway refuse while dependents remain;
    • duplicate security-group rules and names are refused;
    • GroupName resolves in the default VPC;
    • malformed launch-template identifiers are refused, except stored templates, which are still reachable;
    • an arm64 AMI on an x86 instance type is refused.
  • S3:
    • ACL writes to default buckets now answer 400, as on AWS; opt in with x-amz-object-ownership: ObjectWriter;
    • multipart and copy requests authorize as s3:PutObject, plus s3:GetObject on the copy source.
  • Paging: out-of-range page sizes are refused across the lists above.
  • QuickSight: state written before this release isn't reachable, because keys now include the Region.
  • Replay: recordings exercising any of the fixed paths diverge on replay.
  • Catalog: the routed-operation catalog grows from 1,098 to 1,100.

Full detail, with the reasoning and the citation for every entry: CHANGELOG v0.128.0.

Compare: v0.127.0...v0.128.0

v0.127.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 15 Nov 04:38
v0.127.0
77ddf83

v0.126.0 gave a moto replacement its missing services. This release asks what a cost-aware fleet needs to observe:

  • which Graviton types it can launch;
  • how much Spot quota it has left and how much it is using;
  • capacity counted in vCPUs;
  • schedules that actually fire when the simulated clock reaches them.

All seven issues were filed by aws-elastic-globus-compute for its v0.2 spend-safety work.

EC2 and Auto Scaling

  • #1497 — Graviton instance types.
    • The catalog adds 13 arm64 families: t4g, m6g/c6g/r6g, m7g/c7g/r7g, m8g/c8g/r8g, and Graviton5 m9g/c9g/r9g.
    • The CPU manufacturer is amazon-web-services.
    • The bundled AMIs now include arm64 images, and SSM paths with arm64 anywhere in them resolve to those images.
    • Attribute-based Auto Scaling selection now considers only instance types that match the AMI's architecture.
  • #1502 — Auto Scaling capacity units.
    • DesiredCapacityType=vcpu|memory-mib, and override WeightedCapacity, count capacity in the group's units.
    • Reconcile launches until the summed weight reaches desired capacity. A decrementing terminate lowers desired by the instance's weight. Members report WeightedCapacity.
  • #1469 — a launch template that does not exist is refused with InvalidLaunchTemplateName.NotFoundException or InvalidLaunchTemplateId.NotFound, whichever matches the identifier the request named. Before, DescribeLaunchTemplates returned an empty list, and RunInstances skipped the template silently.
  • #1471 — MetadataOptions and template members.
    • Launch templates keep MetadataOptions, apply them at launch, and read back only the members they carry. The phantom NetworkInterfaces is gone.
    • DisableApiTermination round-trips.
    • ModifyInstanceMetadataOptions is routed.

Service Quotas and CloudWatch

  • #1498 — EC2's vCPU quotas for On-Demand and Spot are published for the Standard, F, G and VT, Inf, P and X classes. That includes the Spot quota L-34B43A08, with the published default of 5.
    • ListAWSDefaultServiceQuotas is routed. The list operations paginate.
    • Each quota's UsageMetric names its CloudWatch metric.
    • CloudWatch AWS/Usage ResourceCount (Resource=vCPU, Class=Standard/OnDemand|Standard/Spot|…) reports the vCPUs of running instances and open Spot requests, at the simulated clock.
    • GetMetricStatistics is routed.
    • Quota enforcement at launch stays opt-in and is tracked in #1499.

EventBridge Scheduler

  • #1501 — due schedules fire as the simulated clock reaches them, live and on replay.
    • Expressions: at(), rate() and cron() are supported, with time zones, StartDate/EndDate and DISABLED.
    • Universal targets: arn:aws:scheduler:::aws-sdk:<service>:<apiAction> targets call that API with Input as the request, running as the target's RoleArn. Query-protocol services are flattened using a table generated from the service models.
    • Templated targets: Lambda, SQS, SNS, Step Functions and EventBridge templated targets are dispatched.
    • Failure handling: RetryPolicy and DeadLetterConfig are honoured, and POST /v1/scheduler/invocation-outcome seeds a failure.
    • Groups and tags: schedule groups and group tagging are routed.
  • #1475 — ActionAfterCompletion=DELETE removes a schedule once it has finished.

Provenance

These answers come from observed or reported behaviour, because the API reference publishes none for these cases:

  • the launch-template not-found messages;
  • the vcpu-without-InstanceRequirements ValidationError wording (terraform-provider-aws#31521);
  • Scheduler's handling of an omitted member in a partial RetryPolicy, its retry backoff, and which errors it treats as retryable. These are substrate's choices and are documented as such.

The memory-mib member WeightedCapacity is reported in MiB. That is unverified against AWS and tracked in #1510.

Compatibility

  • Auto Scaling:
    • Attribute-based groups now pick only types that match the AMI's architecture. An x86 workaround on an arm64 AMI now records "No instance types match", as AWS does.
    • Unweighted groups behave as before.
  • EC2:
    • The RunInstances response reports metadataOptions state pending.
    • CreateFleet's launch-template not-found message changes. Its code does not.
    • An unknown launch template is now refused instead of ignored.
  • CloudWatch:
    • GetMetricData returns one result per query, with empty Timestamps/Values, instead of an empty list.
    • ListMetrics with a Dimensions filter excludes dimensionless metrics.
    • GetMetricData refuses a NextToken.
  • Service Quotas:
    • EC2's ServiceName is Amazon Elastic Compute Cloud (Amazon EC2).
    • The Unit is None.
    • GetAWSDefaultServiceQuota for L-1216C47A reports AWS's default of 5. The applied value stays 32.
  • Scheduler:
    • ListSchedules with no group lists every group.
    • CreateSchedule into a missing group is ResourceNotFoundException.
    • DeleteSchedule of a missing schedule is a 404.
    • Schedules now fire: a recording with due schedules replays their invocations.
  • Catalog: the routed-operation catalog grows from 1,088 to 1,098.

Full detail, with the reasoning and the citation for every entry: CHANGELOG v0.127.0.

Compare: v0.126.0...v0.127.0

v0.126.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 14 Nov 21:45
v0.126.0
c4f329f

v0.125.0 asked whether an operation can be reached. This release asks it from a consumer's side: what does a test suite moving off moto need substrate to answer? aws-elastic-globus-compute, spawn and lagotto each found gaps. They are boto3 and Go projects that run their infrastructure and worker tests against substrate. This release closes all 27 of those gaps, starting with a new plugin.

New: Amazon EC2 Auto Scaling

  • #1460: a new autoscaling plugin with 14 operations.
    • Groups: CreateAutoScalingGroup with a launch template or a MixedInstancesPolicy (InstanceRequirements, InstancesDistribution), plus Describe, Update and Delete, including ForceDelete.
    • Capacity: SetDesiredCapacity and TerminateInstanceInAutoScalingGroup.
    • Other operations: Suspend/ResumeProcesses, DescribeScalingActivities, SetInstanceProtection, and tags with PropagateAtLaunch.
    • Reconciliation: desired capacity is reconciled to real EC2 instances in the request that changes it, launched from the template's resolved version and tagged aws:autoscaling:groupName.
    • Self-termination: an instance terminated directly through EC2 is replaced on the group's next observation, unless desired capacity was lowered.
    • Spot and protection: Spot capacity follows InstancesDistribution. Protected instances are never chosen for scale-in.
    • Authorization: autoscaling:ResourceTag/ conditions are evaluated.
    • Seedable failure: POST /v1/autoscaling/launch-failure records a Failed activity, so retry loops can be tested.

EC2

  • #1464: every account starts with a default VPC in each Region. That is 172.31.0.0/16 with a /20 default subnet per zone, the default group, an attached internet gateway and a main route table. The is-default and default-for-az filters work. ec2.default_vpc / SUBSTRATE_EC2_DEFAULT_VPC or WithoutDefaultVPC() turn it off. CreateDefaultVpc and CreateDefaultSubnet are routed.
  • #1436: Spot Instance requests. Supports RunInstances InstanceMarketOptions, plus RequestSpotInstances, DescribeSpotInstanceRequests and CancelSpotInstanceRequests. Persistent requests replace terminated instances, and /v1/ec2/spot-request-outcomes seeds a capacity outcome.
  • #1440, #1468: security groups keep and return their tags, and DescribeSecurityGroups evaluates every filter it accepts.
  • #1453: revoking one CIDR removes only that source, not the whole permission.
  • #1432: DescribeImages Owners=amazon lists the bundled AMIs, and InvalidAMIID.NotFound says where to find one.

SQS, DynamoDB, S3

  • #1441, #1472, #1462 (SQS):
    • Counts: GetQueueAttributes honors AttributeNames and returns the ApproximateNumberOfMessages* counts.
    • System attributes: ReceiveMessage returns ApproximateReceiveCount, SentTimestamp and ApproximateFirstReceiveTimestamp.
    • Batch visibility: ChangeMessageVisibilityBatch is routed.
    • Per-receive timeout: a JSON-protocol VisibilityTimeout=0 is honored.
  • #1448, #1451 (DynamoDB conditions): an UpdateItem condition sees the stored item, so attribute_exists(pk) is false and attribute_not_exists(pk) true when creating.
  • #1450 (DynamoDB update expressions): if_not_exists, list_append and document paths are implemented.
  • #1454 (DynamoDB values): comparisons are typed, so Binary values no longer all compare equal. Binary keys are distinct and Numbers are validated.
  • #1449 (DynamoDB concurrency): concurrent conditional writes to one item serialize.
  • #1438, #1434, #1463, #1445 (S3):
    • Checksums: a ranged GetObject or HeadObject no longer carries the whole object's checksum. aws-sdk-go-v2 s3 v1.114 rejected it.
    • Tagging: x-amz-tagging is stored on upload, and CreateBucketConfiguration.Tags on create.
    • Ownership controls: routed.

ECR, IAM, Scheduler, CloudFormation, Python

  • #1461 (ECR): pull through cache rules and repository creation templates.
    • Repository creation: a BatchGetImage under a rule's prefix creates the repository from the matching template.
    • Validation seed: /v1/ecr/pull-through-cache-validation seeds the validation outcome.
  • #1465, #1113, #1484 (ECR): a repository ARN's name is everything after repository/, and an ARN outside the caller's registry is refused. Missing images report failureCode: ImageNotFound.
  • #1452 (IAM): policy documents are served as submitted, with {"AWS": arn} principals intact, and URL-encoded in every Role and policy shape.
  • #1442 (Scheduler): ActionAfterCompletion, StartDate, EndDate and KmsKeyArn are stored and returned.
  • #1446 (CloudFormation):
    • Stack resources: ListStackResources is routed.
    • Change sets: DescribeChangeSet reports Scope, Details and PhysicalResourceId.
    • Templates and drift: GetTemplate honors TemplateStage, and DetectStackDrift honors LogicalResourceIds.
  • #1466 (pytest-substrate): installs on Python 3.11, and CI tests on 3.11 and 3.12.

Provenance

Several error codes and messages rest on observed behaviour, because the API reference publishes none for these cases:

  • Auto Scaling: the launch-template dry-run denial, AccessDenied/403 "You are not authorized to use launch template: …".
  • EC2:
    • InvalidParameterValue for a security group named default;
    • InvalidInput for a zone without a default subnet;
    • the message wording on several Spot errors.
  • S3: OwnershipControlsNotFoundError/404, from SDK and Terraform reports.
  • ECR: RepositoryNotFoundException/400 for a well-formed ARN outside the caller's registry, which is substrate's choice.

Compatibility

  • Replay: recordings made before this release diverge if they contain a subnet-less RunInstances or rely on the old lazily created default VPC. Recordings that create their own VPC keep their IDs. DynamoDB, SQS, S3 and IAM recordings that exercised the fixed paths also diverge.
  • Fresh accounts: a fresh account now has a default VPC, subnets, security group, internet gateway and route table. Tests that counted these on an empty account need updating, or should use WithoutDefaultVPC().
  • DynamoDB:
    • Binary-key items: items stored under a Binary key by an earlier release, or under a non-canonical Number key (1.0), can't be reached by key.
    • Newly refused: a key whose type doesn't match AttributeDefinitions, arithmetic on an absent attribute, a nested SET under an absent parent, an undefined #name, and malformed Numbers.
  • SQS: GetQueueAttributes with no AttributeNames returns no attributes, as documented. ChangeMessageVisibility refuses an unknown or invalid handle.
  • IAM: every Role and policy document is percent-encoded. Decode once; SDKs such as botocore do this already.
  • S3:
    • Ranged reads: a ranged read drops x-amz-checksum-* unless it covers a whole single-part object.
    • Tag rules: tags are validated (count, length, the aws: prefix and allowed characters).
    • Tagging permissions: x-amz-tagging and create-time tags need s3:PutObjectTagging or s3:TagResource.
  • ECR: a missing image is reported as failureCode: ImageNotFound, no longer ImageNotFoundException. A foreign-account or other-Region repository ARN is refused.
  • Catalog: the routed-operation catalog grows from 1,055 to 1,088, and the plugin count from 67 to 68.

Full detail, with the reasoning and the citation for every entry: CHANGELOG v0.126.0.

Compare: v0.125.0...v0.126.0

v0.125.0

Choose a tag to compare

@scttfrdmn scttfrdmn released this 14 Nov 20:03
v0.125.0
3bdd66c

v0.124.0 asked whether a failure says what happened. This release asks an earlier question: can the operation be reached at all? Operations that were unrouted, routed on a verb no SDK sends, or reading a body shape the API doesn't have, now answer. Two threads run alongside it:

  • CloudFormation resolves intrinsics inside Json-typed properties, and five stub resource types now reach their own services.
  • The Go toolchain and golang.org/x/net move past seven published advisories.

Operations that can now be reached

  • #566 — API Gateway v2 GetApiMappings, GetApiMapping, UpdateApiMapping and DeleteApiMapping are routed. CreateApiMapping refuses an absent domain with 404.
  • #555 — Batch DeregisterJobDefinition, UpdateJobQueue, UpdateComputeEnvironment, DeleteJobQueue and DeleteComputeEnvironment are routed, with the published DISABLED-before-delete rules.
  • #1135 — Cognito User Pools routes TagResource, UntagResource and ListTagsForResource.
  • #1172 — AWS Backup CreateBackupPlan and CreateBackupSelection answer on the published PUT.
  • #1408 — AWS Backup ListBackupSelections is routed and paged.
  • #1158 — CodeBuild UpdateProject reads the published flat request.
  • #1133 — CloudFront creates refuse a body they cannot read.

Service behaviour

  • #1409 — A Kinesis record is written to the shard its MD5 hash key falls in. ExplicitHashKey is validated.
  • #1410 — Route 53 record-set operations require their hosted zone (NoSuchHostedZone/404).
  • #1112 — An ECR repository holding only untagged images is not empty; DeleteRepository needs force.
  • #1413 — IAM success responses carry the request's own ID. A Query 5xx reads <Type>Receiver</Type>. ELBv2 DescribeLoadBalancers refuses an absent load balancer.

CloudFormation

  • #1153 — Five Json-typed properties resolve intrinsics at every depth: IAM role trust and policy documents, SNS topic policy, EventBridge event pattern, and the ECR lifecycle policy.
  • #1103 — Fn::Sub implements ${LogicalId.Attribute}.
  • #1203 — Transfer servers, CodeDeploy applications and groups, FSx file systems and MSK clusters deploy through their own services. An unmodelled Fn::GetAtt attribute now fails the resource that reads it, rather than resolving to "".
  • #1182 — AWS::Backup::BackupPlan answers its plan ID for Ref and resolves BackupPlanId, BackupPlanArn and VersionId.

Security

  • golang.org/x/net v0.62.0 and toolchain go1.26.11 clear the following (#1435, #1470):
    • GO-2026-6611, 6612, 6613 and 6617, including CVE-2026-78669 (HTTP/2 SETTINGS denial of service);
    • CVE-2026-78661 (x/net/html denial of service);
    • GO-2026-6859 (net/http);
    • GO-2026-6809 (crypto/x509).

Compatibility

  • Backup: a POST create of a plan or selection is now refused with UnknownOperationException.
  • Kinesis: ShardId in PutRecord/PutRecords responses changes, so replays of earlier recordings diverge there.
  • Route 53: a record-set call against an absent zone is now a 404. An AWS::Route53::RecordSet naming a missing zone fails.
  • CloudFormation:
    • an MSK template without NumberOfBrokerNodes now fails;
    • so does a template reading an unmodelled attribute (Transfer As2ServiceManagedEgressIpAddresses, OpenSearch DomainEndpointV2, FSx RootVolumeId);
    • the Backup plan's Ref changes shape;
    • Transfer servers and CodeDeploy groups now appear in their service APIs.
  • Errors: a Query error at 5xx now reads <Type>Receiver</Type>. A DescribeLoadBalancers naming an absent load balancer is now a 400.
  • Catalog: the routed-operation catalog grows from 1,042 to 1,055.

Full detail, with the reasoning and the citation for every entry: CHANGELOG v0.125.0.

Compare: v0.124.0...v0.125.0