Commit Graph
6475 Commits
Author SHA1 Message Date
mrfelek 3909e10e2e fix(eks): accept a cluster's unchanged ipFamily and serviceIpv4Cidr in UpdateClusterConfig (#9715)
UpdateClusterConfig refused every kubernetesNetworkConfig member other
than elasticLoadBalancing, so turning EKS Auto Mode on through the
Terraform AWS provider failed: its update carries the cluster's current
ipFamily and serviceIpv4Cidr beside elasticLoadBalancing. The cluster's
own values are now accepted unchanged, ipFamily in any case. Another
value for either is still refused, as EKS sets both only when it creates
a cluster and Floci doesn't change them.
2026-11-29 07:46:07 -04:00
Vũ Thế Huy 2e707b4b4b feat(redshift): enforce UNLOAD access-key credentials (#9713) 2026-11-29 07:46:02 -04:00
Priamo Germosen adf1dced94 docs(sts): a transitive tag overrides the chained role's tag after its trust policy (#9733)
sts.md said Floci did not implement "transitive session tags replace matching ResourceTag values after the evaluation
of the role trust policy". It does, and the IAM user guide's own chain spells out what the rule means: "the inherited
Star = 1 session tag overrides the role Star = 3 tag". The role's trust policy is read with the role's own tag,
aws:ResourceTag/Star of 3, and the session it mints carries the inherited 1 as aws:PrincipalTag/Star, a session tag of
a key shadowing the role's tag of that key as any session tag does.

PrincipalTagEnforcementIntegrationTest now runs the guide's chain: a trust policy requiring aws:ResourceTag/Star = 3
allows the chained assume, and the session is allowed by aws:PrincipalTag/Star = 1 and not denied by = 3. The guide's
"if you try to pass the Sun = 2 session tag, the operation fails" does not follow from the published rule and is
still not refused.
2026-11-29 02:21:16 -04:00
Priamo Germosen 6f22b84977 fix(iam): read federated trust policies with the shared condition engine (#9728)
The trust policies of AssumeRoleWithSAML and AssumeRoleWithWebIdentity were read by two condition evaluators of their own, each taking only StringEquals, StringNotEquals, StringLike and StringNotLike: a statement using a set operator (ForAllValues on aws:TagKeys, ForAnyValue on an audience), an IfExists operator or Null never allowed the assume, a negated operator never matched a key the request does not carry, and SAML read a claim under any prefix, so other:sub read the assertion's sub.

Both now read each statement's Condition with IamPolicyEvaluator.conditionMatches, as AssumeRolePolicyEvaluator does, against a context holding the claims under their full keys (the Service Authorization Reference's saml: keys for an assertion, the issuer's prefix for a token), sts:RoleSessionName, the role's tags, the request tags and the source identity. Each keeps its own Federated principal and action matching; the hand condition code is gone.

A token's <issuer>:aud holds the one audience the token was accepted for, the one the response returns as Audience, wherever the token's list names it: the Service Authorization Reference types the key String, a single value. A multivalued key such as aws:TagKeys takes a set operator, as in every other policy, and a negated operator over an empty list of values holds, the NOR of no values.
2026-11-29 01:19:38 -04:00
Chang Liu fd6fff87be fix(ec2): log user data output to /var/log/cloud-init-output.log (#9433)
EC2 user data now appends each part's stdout and stderr to /var/log/cloud-init-output.log in the guest, as cloud-init does on AWS. The guest log keeps the full output; Floci's own 2048-byte summary line is unchanged.

The script still runs as a command, so its shebang selects the interpreter. A POSIX shell wrapper merges stderr into stdout, tees both into the log, and carries the script's exit status on a dedicated file descriptor, so Floci reports the script's code rather than tee's. The script runs with those descriptors closed, so a background service it starts cannot keep the status pipe or the exec stream open. If the guest has no tee or a read-only /var/log, the wrapper falls back to running the script directly and warns on stderr. The EKS caller of the shared UserDataPipeline keeps its current path.

Closes #9386
2026-11-29 00:16:55 -04:00
Priamo Germosen 5ed7187e28 fix(iam): read a federated assume's tags in its trust policy, and sts:TagSession from the generated tables (#9721)
Under enforcement a role whose trust policy conditions AssumeRoleWithSAML or AssumeRoleWithWebIdentity on aws:RequestTag/<key> or aws:TagKeys refused every tagged assume: neither trust policy saw the tags the assertion or the token passes, which the Service Reference gives both actions and the IAM user guide's SAML ABAC tutorial's trust policy reads. And all three assumes named sts:TagSession by hand, through AssumeRolePolicyEvaluator.TAG_SESSION_ACTION, with the assertion's PrincipalTag attributes and the token's tags claim named by hand too.

The IAM user guide's page on session tags says where an identity provider passes the tags, "include the Attribute element with the Name attribute set to https://aws.amazon.com/SAML/Attributes/PrincipalTag:{TagKey}" and "the nested claim format uses a structure within the https://aws.amazon.com/tags namespace in the JWT", and what passing them needs, "trust policies for all roles connected to the identity provider (IdP) passing tags must have the sts:TagSession permission". tools/aws/fetch_sts_session_tags.py vendors it into tools/aws/sources/sts-session-tags.json, and regen_iam_authorized_actions.py gives both operations a companion naming the attribute or the claim, sts:TagSession, and the reference's aws:RequestTag/${TagKey}, where the reference's action of the operation's name takes that key.

The SAML and web identity trust policies now read the tags as aws:RequestTag/<key> and aws:TagKeys, written as an AssumeRole's are, and check the companion's action for them; the assertion and token verifiers read the companion's attribute and claim. AssumeRole's trust check takes the tagging action the tag-on-create table gives it. TAG_SESSION_ACTION and the allowsTagging methods are gone.

Closes #6640.
2026-11-29 00:16:10 -04:00
Jackson Price b7a12c146b fix: handle blank content types in API Gateway models and OTLP metrics (#9723)
API Gateway's request-model lookup, the OTLP metrics endpoint and its
access-denied response filter still parsed the Content-Type header
themselves, and an empty or whitespace one throws there. They now read
it through ResteasyRequests.mediaType, which a new HttpHeaders overload
extends to resource methods, so a blank header acts as an absent one:
API Gateway validates against the application/json model, the OTLP
endpoint answers its 415, and a denial keeps its 403 and protobuf body.
2026-11-29 00:08:15 -04:00
Andre Kurait 093955f9f2 test: isolate DMS compatibility subnet fixtures (#9717)
Reuse the shared default VPC subnets instead of borrowing peer-owned subnets. Track successful pagination group creations within cleanup scope so partial setup is cleaned up.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 23:42:50 -04:00
Andre Kurait f46e75ee73 test(testing): settle timeline deadline waiters outside their own lock (#9706)
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 23:39:01 -04:00
Jackson Price f592270705 fix(iam): read tagged resource ARNs with a blank content type (#9718)
ResourceArnBuilder handed ctx.getMediaType() to RequestBodyReader when
reading a JSON body, and the request context throws parsing a blank
Content-Type, so the read fell into its catch and a tag call's ARN in
the body went unread. It now reads the media type through
ResteasyRequests.mediaType, which takes a blank header as none, as the
request filters already do, and the body stays readable by the
handler.
2026-11-28 23:32:26 -04:00
Jackson Price 9ee65d1e71 test(lambda): reuse the qualifier fixture for weighted alias deletion (#9719)
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 23:30:17 -04:00
Priamo Germosen b907da46b3 chore(deps): bump botocore to 1.44.13 (#9714)
Moves the pin from 1.44.9 to 1.44.13 and regenerates the data derived
from it.

Every request shape, route and service table the bump regenerates is
unchanged apart from its source label. partitions.json gains the
elb-proxy endpoint prefix signed as elasticloadbalancing, CloudFront
and EMR on EKS in aws-eusc, Route 53 Profiles in aws-iso and aws-iso-b,
and API Gateway in aws-iso-f; no region changes.

1.44.13 models the ELB proxy API (smithy-rpc-v2-cbor 2026-11-20), whose
operations the passed-role, tag-on-create and request-resources tables
parked as missing from the pinned botocore. They now read them:
CreateProxy passes roleArn and tags through tags{}, and each proxy
operation is checked on the proxy its proxyIdentifier or resourceArn
names. The Service Reference now also lists the tagging action for
Managed Service for Apache Flink's ImportSnapshot, so the tag-on-create
table checks its Tags.
2026-11-28 23:18:19 -04:00
mrfelek f30e649c7f fix(eks): leave an existing cluster's node unlabelled when EKS Auto Mode turns on, as AWS does (#9716) 2026-11-28 23:17:07 -04:00
Andre Kurait ba7bfc3ca6 test(applicationautoscaling): control scaling cooldown time (#9712)
ScalingPolicyAlarmActionHandler read the cooldowns' time from
Instant.now(), so its tests could only get past a cooldown by clearing
the last scaling time. It now reads an injected Clock, the system UTC
clock outside tests, and the tests move a controlled timeline across
the scale-in, scale-out and default cooldown boundaries, checking one
second before and at the end of each.
2026-11-28 23:14:49 -04:00
Vũ Thế Huy 3c97fbe849 feat(redshift): support COPY FORMAT AS PARQUET (#9637) 2026-11-28 23:12:22 -04:00
Priamo Germosen 7d3049d218 fix(iam): read a federated assume's source identity from its assertion or token (#9708)
Under enforcement a role whose trust policy conditions AssumeRoleWithSAML or AssumeRoleWithWebIdentity on sts:SourceIdentity refused every assume, and one that withheld sts:SetSourceIdentity was never consulted: neither operation read the source identity its identity provider sets, so the session carried none, the response returned none and its requests carried no aws:SourceIdentity. The Service Reference gives both actions sts:SourceIdentity but lists no authorized actions for either operation, and botocore models the value only in the response.

The IAM user guide's page on source identity, which tools/aws/fetch_sts_source_identity.py already vendors, says where each carries it, "to set a SAML attribute for source identity, include the Attribute element with the Name attribute set to https://aws.amazon.com/SAML/Attributes/SourceIdentity" and "include source identity in the https://aws.amazon.com/source_identity namespace in the token", and what it needs, "trust policies for all roles connected to an identity provider (IdP) must have the sts:SetSourceIdentity permission". The fetcher now copies those sentences too, and regen_iam_authorized_actions.py gives each operation a companion naming the attribute or the claim and the key it is read as, where the reference's action of the operation's name takes sts:SourceIdentity.

STS reads the value the table names, holds it to botocore's sourceIdentityType (the shape botocore gives the response's SourceIdentity, as it does AssumeRole's member), and refuses several values or one outside it with InvalidIdentityToken. The trust policy reads it as sts:SourceIdentity, through the keys the federated trust evaluators already read in full, and is checked for sts:SetSourceIdentity before the assume, as for AssumeRole. The session records it under aws:SourceIdentity, which a session assumed from it carries on, and the response returns it.

Part of #6640.
2026-11-28 23:02:42 -04:00
Hector Ventura f33de37d7b fix(codeartifact): end the Verdaccio sidecar use of a forwarded npm publish (#9699)
An npm publish forwarded to an upstream registered a routing-context
end handler, which replaced the response end and close handlers the
data plane released its Verdaccio sidecar use from. The use never
ended, so the repository's container outlived DeleteRepository, a
reset and Floci's shutdown. The use is now released through
addEndHandler.

A reset or nuke still leaves a sidecar running while admitted uses are
active, and now logs it. Shutdown stops it anyway: ContainerTeardown
gains beginShutdown(), which EmulatorLifecycle.onStop calls before
preparing any teardown, and the Verdaccio, Kellnr, BaGetter and
pypiserver leases then stop containers with uses still active, start
no new container, and wait for a start still building one so that its
container is stopped too.
2026-11-28 22:50:30 -04:00
Jackson PriceandAndre Kurait 91b29ccdd6 fix(lambda): protect versions referenced by weighted aliases (#9711)
DeleteFunction with a Qualifier refused a version only when an alias
named it as its FunctionVersion, so the second version of a weighted
alias, listed in its RoutingConfig's AdditionalVersionWeights, could
be deleted from under it. A version an alias references either way now
answers ResourceConflictException (409), as the API reference says a
version an alias references can't be deleted, and deleting it succeeds
once the alias no longer routes to it.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 22:39:46 -04:00
TATSUNO “Taz” Yasuhiro e92bbf66dc feat(eventbridgev2): refuse reserved tag keys and more than 50 tags on create (#9709)
#9686 refused tag keys with the reserved aws: prefix, and more than 50
tags, on TagResource only. CreateEventBus, CreateSubscriber and
CreateEventSource, and a CloudFormation update of a bus or a
subscriber, now refuse them too, in the order measured on AWS: a
reserved key answers AccessDeniedException (403) right after the
request constraints, ahead of the name clash, the ClientToken replay
and the bus lookup, and more than 50 tags answers
LimitExceededException (400) after those checks, and before a
ClientToken mismatch when the token named another resource. A refused
create stores nothing and makes no secret or managed rule.
2026-11-28 22:38:53 -04:00
Matheus André 10855b0023 fix(transcribe): keep tags on create and serve the tag operations (#9700) 2026-11-28 22:37:05 -04:00
Hector Ventura 09a2cc0190 fix(iam): accept the regional EUSC sign-in endpoint as a SAML recipient (#9698)
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-28 22:34:31 -04:00
Jackson Price 403405f787 fix(core): handle blank content types in request filters (#9710)
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 22:32:41 -04:00
Hector Ventura 82c82ec553 fix(release): attach missing standalone binaries to an existing release (#9696)
2.4.0 and 2.5.0 shipped no standalone binaries, and nothing could add
them afterwards: re-running a release uses the tag's own workflow and
pushes the images again. Run by hand from main with a tag, release.yml
now builds the binaries that release lacks, or the ones named, from the
tag's source, and attaches them signed and attested as a tag run does.
It first verifies the release's sha256sums.txt against its cosign
bundle and the attached binaries against that file, then rewrites it to
cover every binary. A backfill never pushes or signs images and never
creates a release; tag runs build and publish as before.

Refs #8715
2026-11-28 22:25:00 -04:00
Hector Ventura 3e1f9457ab test: take the ports lock in read mode where a class only binds port 0 (#9707)
An exclusive ParallelLocks.PORTS holder runs alone and blocks every
READ holder in the concurrent plain pass. Eighteen classes held it
exclusively though none releases a port it binds or dials one it
expects to refuse: fifteen open no socket and only name an address such
as localhost:4566, and ElastiCacheBackendAclTest,
RedshiftInterceptingBridgeTest and SnsHttpsSubscriptionTrustTest bind
every listener on port 0 and dial it while they hold it. They now take
the lock in READ mode. PostgresProtocolHandlerTest stays exclusive.
2026-11-28 22:02:30 -04:00
Andre Kurait 40480e36a5 feat(core): support controlled time for scheduled sweep workers (#9705)
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 21:36:21 -04:00
Jackson Price d8b5dc53c5 fix(core): preserve error responses for blank content types (#9703)
Use the same request media-type reader in role inspection and error responses so an empty Content-Type does not hide the original error.

Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 21:34:43 -04:00
Daniël van Ziel 18efc30c73 fix(pipes): keep a pipe unchanged when its storage write fails (#9704) 2026-11-28 21:32:47 -04:00
Jackson PriceandAndre Kurait d6adf625ff fix(autoscaling): keep EC2 guests after an inconclusive container check (#9702)
Only remove an in-service guest when Docker confirms its container has stopped or disappeared. Pass the probe result through EC2 so an unavailable Docker inspection leaves the membership and targets in place for the next check.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 21:31:56 -04:00
Priamo Germosen cc74f1c3a2 fix(iam): read an AssumeRole's source identity as the IAM user guide gives it (#9697)
Under enforcement an AssumeRole passing a SourceIdentity was neither held to sts:SetSourceIdentity nor read as sts:SourceIdentity, so a trust policy requiring a source identity refused every assume and one granting the permission was never consulted. The session kept no source identity either: the response returned none, its requests carried no aws:SourceIdentity, and a session assumed from it could set another. botocore gives the member and the Service Reference the key and the action, listing sts:SetSourceIdentity among the actions AssumeRole is authorized by, without saying when it is needed or which member carries the key.

The IAM user guide's page on source identity says both: "to pass source identity while assuming a role, use the -–source-identity AWS CLI option or the SourceIdentity AWS API parameter", "to specify a source identity, principals (IAM users and roles) must have permissions to sts:SetSourceIdentity", and when chaining it is "required in both the permissions policy of the principal who is assuming the role and in the role trust policy of the target role". tools/aws/fetch_sts_source_identity.py vendors it into tools/aws/sources/sts-source-identity.json. regen_request_condition_keys.py reads it for sts (CONDITION_SOURCES), so sts:SourceIdentity is read from AssumeRole's SourceIdentity, and regen_iam_authorized_actions.py crosses it with the reference's AuthorizedActions and botocore's request members into a new companions section of iam-authorized-actions.json: AssumeRole needs sts:SetSourceIdentity when it names SourceIdentity or its caller carries aws:SourceIdentity.

Enforcement checks the companion action on the role with the request's keys, and for a caller that is itself a role session checks it of the caller's own permissions alone too, since a trust policy naming the caller's role would otherwise stand in for them in the same account (the table's callerPolicyWhenChained, from the page's sentence on role chaining). STS checks it in the trust policy before the assume, as AWS names it where a statement granting both is conditioned on another sts:SourceIdentity. The session records the value under the key the table gives, aws:SourceIdentity, which its requests carry and a session assumed from it carries on, read there as sts:SourceIdentity too, and the response returns it. A chained request naming another value is refused with ValidationError, "The source identity is already set for this assume role session", and an AssumeRole naming a session tag key twice with InvalidParameterValue, "Duplicate tag keys found. Please note that Tag keys are case insensitive.", both as AWS's evaluation suite records them.

Part of #6640.
2026-11-28 21:09:11 -04:00
Andre Kurait 77b0b5853d test(sso): isolate account instance quota fixture (#9701)
Create and clean up the singleton in a dedicated account so Organizations management-account state cannot replace the intended quota error. Verify that the rejected second creation leaves the original instance intact.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 20:56:14 -04:00
Andre Kurait bf7fe69265 fix(ec2): honor DeregisterImage dry-run before mutation (#9690)
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 20:41:07 -04:00
Jackson PriceandAndre Kurait e1f4588d2f fix(cloudfront): reject malformed key value store request XML (#9695)
Check the XML document and its root before creating a store or updating
its comment. A rejected update keeps the existing comment and ETag.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 20:26:53 -04:00
Jackson PriceandHai Yan 72983e8282 fix(core): tolerate blank content types during role inspection (#9694)
CloudFormation's cfn-response helper sends its ResponseURL callback
with an empty Content-Type, and the request context throws
IllegalArgumentException parsing an empty or whitespace one.
PassedRoles.jsonBody asked for it before reading the body, so role
inspection of such a request failed. It now reads a blank Content-Type
as none and parses the body as JSON, a supplied type still choosing
JSON or CBOR, and the body stays readable by the handler.

Co-authored-by: Hai Yan <8153134+oeyh@users.noreply.github.com>
2026-11-28 20:07:59 -04:00
TATSUNO “Taz” Yasuhiro 96ea43959c feat(eventbridgev2): tag and untag buses, subscribers and event sources (#9686)
EventBridge V2 took tags only when a bus, a subscriber or an event source was created. TagResource, UntagResource and ListTagsForResource now add, remove and list them, and IAM reads the changed tags for aws:ResourceTag conditions.

AWS allows 50 tags on a resource, refuses keys that start with aws: in any case, and refuses to tag or untag a revoked resource. It lists the tags in the order of a HashMap copied from one filled in key order. One lookup finds the taggable resource for the tag calls and for the IAM resource tags, and each kind is tagged through a copy, so a failed write leaves its tags as they were.
2026-11-28 19:52:44 -04:00
Jackson Price af39980a9c test(ecs): isolate volume cleanup log assertions across threads (#9693)
The two ECS volume cleanup tests now assert the log levels from their own thread, through one helper. The cleanup runs synchronously, but parallel tests can write to the same class logger during capture, and the volume-listing test picked up an unrelated INFO record between its expected cleanup messages.

Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 19:33:37 -04:00
Jackson Price 44a0d03c25 fix(config): name the delivery channel in describe and delete errors (#9692)
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 19:32:01 -04:00
Andre Kurait a3038ba017 fix(appsync): serialize namespace timestamps from the injected clock (#9691)
Preserve creation time, use the injected clock, and return timestamps the AWS SDK decodes correctly.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-28 19:28:52 -04:00
Priamo Germosen 75f5ec3136 fix(iam): read the tags an AssumeRole passes in the role's trust policy (#9689)
Under enforcement a role whose trust policy conditions the assume or sts:TagSession on aws:RequestTag/<key> or aws:TagKeys refused every tagged AssumeRole, and a Deny keyed on them never applied: STS built the trust policy's context by hand, with the session name and external ID alone. The Service Reference gives sts:AssumeRole both keys, and the IAM user guide's session tags page has a trust policy reading them: with aws:RequestTag "you can allow the principal to pass the specified session tags, but only with the specified values", and with aws:TagKeys "pass only session tags with the specified tag keys".

The trust policy's context now takes the request's keys from the generated tables, as the caller's own policies do: the members request-condition-keys.json gives sts:AssumeRole, its RoleSessionName and ExternalId, and the tags iam-tag-on-create.json reads from its Tags, as aws:RequestTag/<key> and aws:TagKeys. The assume and the sts:TagSession permission are each checked once for every set of tags a reading of the list gives, past a gap in its numbering or with each value of a key sent twice, as the enforcement filter checks the caller's policies, so a Deny on a tag holds however the list is sent. The filter's per-set helper moves to IamConditionContextResolver beside requestContextsOfForm, which STS calls, and formParameters shares its first-value reading with it.

Both read the list as STS does. TagOnCreate read sts: tags under Tags.member up to the first gap, while STS reads them through AwsQueryLists, Tags.member.N or the bare Tags.N at every index, so a tag sent as Tags.1, or after a gap, reached the session and not the check, and a policy requiring it refused a call AWS allows. sts: is now read through the shared reader, as iam: is, and the shared reader takes the members in the order of their indices, as AwsQueryLists gives them, so a key sent twice keeps the value the handler keeps.

Part of #6640.
2026-11-28 19:27:26 -04:00
Jackson PriceandAndre Kurait 661854b0a7 fix(config): require a delivery channel before recording (#9684)
StartConfigurationRecorder marked a customer managed recorder as
recording, with a new start time, even when its account and Region had
no delivery channel. It now refuses that start with HTTP 400
NoAvailableDeliveryChannelException, "Delivery channel is not
available to start configuration recorder.", and leaves the recorder's
status as it was, as AWS does. A missing recorder still answers
NoSuchConfigurationRecorderException first. The start and
DeleteDeliveryChannel take the same recorder lock, so a concurrent
delete can't leave a recorder running without its channel.

Co-authored-by: Andre Kurait <akurait@amazon.com>
2026-11-28 18:39:36 -04:00
Priamo Germosen ee3970d6c9 fix(iam): read route53:VPCs from the vendored Route 53 developer guide (#9687)
Under enforcement a VPC association call scoped by route53:VPCs was refused for every VPC, as #8367 reports: the request condition key table never filled the key, so a condition on it never saw a value. Neither botocore nor the Service Reference says where a request carries the key or in what form.

Route 53's developer guide says both, in its table of condition keys: route53:VPCs "Represents a list of VPCs in the request of AssociateVPCWithHostedZone, DisassociateVPCFromHostedZone, ListHostedZonesByVPC, CreateHostedZone, CreateVPCAssociationAuthorization, and DeleteVPCAssociationAuthorization, in the format of "VPCId=<vpc-id>,VPCRegion=<region>". A vendored source, tools/aws/sources/route53-condition-keys.json, written by tools/aws/fetch_route53_conditions.py from that page, gives each key the table gives in a format of request members, with its operations and members, and the generator reads it for route53 (CONDITION_SOURCES) beside the record keys it already reads.

The table writes a key a format composes as that format with each member's place holding where the request carries it (VPCId={VPC.VPCId},VPCRegion={VPC.VPCRegion}), and a member of the query string as ? and its name (ListHostedZonesByVPC's ?vpcid and ?vpcregion), and the request condition reader fills the format from them, read from an XML body or the query string, when each member holds one value. A request naming no VPC, as a public CreateHostedZone does, carries none.

Route 53 reads the VPC only where its schema puts it, the VPC below the request's root, where IAM reads it, and refuses a second VPC, a second VPCId or VPCRegion, or a repeated vpcid or vpcregion query parameter with InvalidInput, as it already refuses a change batch naming an element twice. It used to take the first VPC anywhere in the body, so a request naming a denied VPC beside another carried no value for the Deny to match and still acted on the denied one.

Closes #8367.
2026-11-28 18:39:20 -04:00
Jackson PriceandAndre Kurait e36c5a39e3 fix(cloudformation): reconcile API Gateway V2 credentials (#9685)
Apply integration and authorizer credential ARNs during stack creation and updates. Clear only credentials removed from previously declared template properties, preserve externally configured values, and restore integration credentials during rollback. Preserve current integration subtype defaults and rollback behavior.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 18:39:09 -04:00
Vinícius Ribeiro 986d774bdf fix(cloudformation): apply StreamEncryption on AWS::Kinesis::Stream (#9648)
KinesisCfnProvisioner never read StreamEncryption, so a stack with an encrypted AWS::Kinesis::Stream reached CREATE_COMPLETE with an unencrypted stream. The encryption type and key are now set by createStream, so they are in place while the stream is still CREATING. An update with a new or changed type or key calls startStreamEncryption, removing the property calls stopStreamEncryption, and an unchanged setting makes no call.

A setting the resource schema refuses, an EncryptionType other than KMS or a missing EncryptionType or KeyId, fails with InvalidRequest model validation before anything is created or changed.

Closes #9511
2026-11-28 18:39:04 -04:00
Andre Kurait 215ecc91d2 test(elbv2): preserve custom VPC during subnet replacement (#9652)
ElbV2IntegrationTest had no SetSubnets case that stays inside a custom
VPC. The new case creates an Application Load Balancer on subnets A
and B of a custom VPC, replaces B with C, and checks that
DescribeLoadBalancers keeps that VPC and lists exactly A and C, as
SetSubnets replaces the previously enabled subnets. createVpc and
createSubnet helpers now build every VPC and subnet the class creates.
2026-11-28 18:35:46 -04:00
mrfelek eef1ccc4dc fix(ec2): write every instance's operator, and on each DescribeInstanceStatus item, as AWS does (#9683) 2026-11-28 17:55:48 -04:00
Andre Kurait 8b90262c50 test(eventbridge): receive webhook deliveries without polling (#9681)
EventBridgeV2WebhookIntegrationTest read its queues with up to three
one-second long polls, so each of its two empty-queue checks waited
three seconds. A webhook request is answered only after its event has
been delivered to the subscribers' queues, as a PutEvents call is, so
the test now reads each queue with one zero-wait receive, and its
helpers lose the expected count the polling needed.
2026-11-28 17:49:40 -04:00
Matheus Oliveira ccd76cbec8 fix(cloudformation): carry a template's Object Lock onto its bucket (#9618)
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-11-28 17:36:53 -04:00
Priamo Germosen 1b7ddb1101 fix(iam): read EKS access entry condition keys from the vendored Service Authorization Reference (#9682)
Under enforcement a CreateAccessEntry scoped by eks:principalArn or eks:accessEntryType was refused for every entry, and an AssociateAccessPolicy scoped by eks:policyArn or eks:namespaces for every association, as #8311 reports: the request condition key table read none of these keys, so a condition on them never saw a value. Neither botocore nor the Service Reference says which request member carries them.

The Service Authorization Reference's table of the keys EKS defines says it: eks:principalArn, eks:kubernetesGroups, eks:policyArn and eks:namespaces filter on "the <member> present in the access entry requests" or in "the associate / disassociate access policy requests", and eks:accessEntryType and eks:username on "the access entry type" and "the Kubernetes username" present in them, the access entry requests' type and username. A vendored source, tools/aws/sources/eks-condition-keys.json, written by tools/aws/fetch_eks_conditions.py from that page, gives each key its member, and the generator reads it for eks (CONDITION_SOURCES) beside the cluster keys it already reads.

The page gives what a request carries, so a vendored key is read from an action's request only where the reference lists it on the action itself; one the reference gives a resource type alone is the stored resource's value. A list's values are each read (kubernetesGroups, accessScope.namespaces). A vendored member the request carries outside its body, as DisassociateAccessPolicy carries policyArn in its path, or as a structure, as accessScope is, the page not saying which of its values the key holds, is not read.

The keys the reference gives the access entry itself, its stored principal, type, groups and username on the operations acting on one, are not read yet: those requests are checked on an access entry ARN whose identity and id are left open, which names no one entry to read them from.

Closes #8311.
2026-11-28 17:12:28 -04:00
Oleksandr Nikolaichuk cd37bbbd71 fix(cloudformation): replace an IoT thing, policy or rule when the engine's change says so (#9585) 2026-11-28 17:04:52 -04:00
Jackson PriceandAndre Kurait 2f92b2b22d test(eks): wait for node initialization before restart (#9678)
EksRegistryHostsDockerNightlyIntegrationTest waited for its node to be
Ready before the node group replaced it and before restarting the
replacement, but a Ready node keeps Kubernetes'
node.cloudprovider.kubernetes.io/uninitialized NoSchedule taint until
the cloud controller initializes it. The test now also waits for that
taint to clear, with the service account, Ready nodes and renewed
leases it already waited for, before the replacement, before the
restart and after it, then reads hosts.toml once and starts the pod.

Co-authored-by: Andre Kurait <akurait@amazon.com>
2026-11-28 16:20:45 -04:00
Jackson PriceandAndre Kurait 9becdfa021 fix(codepipeline): skip queued actions after an execution stops (#9679)
Check for a stop request when the worker acquires the execution lock to
register its action. A queued action can otherwise register after stop
has already visited the action list and then invoke its provider.

Adapted from Andre Kurait's CodePipeline action admission change in
5fe030e5dd4713bfdd2efbfb49f7dc6664ec8008.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-28 16:18:07 -04:00