Commit Graph
4484 Commits
Author SHA1 Message Date
mrfelek 392d79ef2f fix(ec2): leave the volume helper's bind directory to Docker in a container (#8245) 2026-11-13 17:03:24 -04:00
Oleksandr Nikolaichuk b4b659bd88 fix(cloudformation): replace exactly what the change set says for AppConfig profiles and ElastiCache clusters (#8204) 2026-11-13 17:00:32 -04:00
Mark a827daebfc fix(cognito): accept the sign-in alias in challenge responses (#8229)
In a pool with UsernameAttributes the challenge sessions keep the user's own
username (the sub), while the user signs in with, and answers with, the email.
NEW_PASSWORD_REQUIRED, MFA_SETUP, SOFTWARE_TOKEN_MFA and the SMS and email MFA
codes compared USERNAME with that stored sub, so a response that carried the
email was rejected with "Invalid session for the user." or "Session does not
match user".

The AWS Developer Guide ("Working with user attributes") says that with
username attributes the email address or phone number can be used in place of
the username in all APIs except ListUsers. Only the SRP password verifier is
documented to need USER_ID_FOR_SRP (AdminInitiateAuth ChallengeParameters), so
the SRP paths stay as they are.

isSessionUser first compares the sign-in keys, so a pool without aliases and
its case sensitivity behave as before. Only when they differ is the supplied
value resolved to its user and compared with the user of the session, which is
what the custom-auth challenges already do. The alias of another user is still
rejected.

Tests: CognitoAliasMfaIntegrationTest covers TOTP (MFA_SETUP and
SOFTWARE_TOKEN_MFA), SMS MFA and NEW_PASSWORD_REQUIRED in an alias pool, each
with a response for another user that must be rejected. docs/services/cognito.md
lists the behaviour next to the custom-auth rule.

applyNewPasswordAttributes read the user back with the USERNAME of the
response. That value can now be the email the user signed in with, so a
userAttributes.email in the same response made it stop naming the user once
the attribute was applied. The password had been changed and the session
consumed by then, and the response failed with UserNotFoundException without
a way to retry. It now takes the username of the user from the session. The
custom-auth challenge, which already accepted the alias, gets the same.

isSessionUser also looked up the username of the session. Every session holds
the username of its user already, and adminGetUser scans the pool, so that
lookup was a second scan for nothing. The supplied value is resolved once and
compared with the username of the session.

The new test answers NEW_PASSWORD_REQUIRED with the email and a new email,
then signs in with the new one.

validateCustomUsername and the CUSTOM_CHALLENGE check now use isSessionUser,
so a single check decides whether a USERNAME names the session's user.
Move latestSms into CognitoRestAssuredUtils and share it between the
alias and message MFA tests.

Closes #8228
2026-11-13 16:58:05 -04:00
Giovanni Brethenoux 63b8da91f5 fix(cognito): pass the groups' IAM roles to the pre token generation trigger (#8134)
The pre token generation event always carried
groupConfiguration.iamRolesToOverride = [] and preferredRole = null, so a
trigger that reads the role Cognito computed for the user (to copy it into
the access token, for instance) got nothing. AWS fills both from the
user's groups: every group role, and the role of the lowest-precedence
group that has one, none when groups tied at that rank name different
roles.

Build groupConfiguration after checking that the pool has a pre token
generation trigger, read the pool's groups once instead of once per
membership, sort the test imports, and pin that a group without a role
does not outrank one with a role.

Closes #8222
2026-11-13 16:34:20 -04:00
Kal Cramer f1a6260a94 feat(cloudformation): add AWS::EFS::FileSystem, MountTarget and AccessPoint (#8074)
A template can now create the three EFS types. They are provisioned
through EfsService, so a stack and a direct API call see the same
file systems, mount targets and access points.

- Ref and Fn::GetAtt resolve for every type.
- Updates change ThroughputMode, ProvisionedThroughputInMibps,
  BackupPolicy, LifecyclePolicies, FileSystemPolicy,
  FileSystemProtection and tags in place; create-only properties
  replace the resource, and a failed update puts back what it changed.
- Backups are off on create unless BackupPolicy is ENABLED or the file
  system is One Zone, and ThroughputMode provisioned requires
  ProvisionedThroughputInMibps.
- Required properties are validated from the registry schema.

Ref #7972
2026-11-13 16:30:10 -04:00
Giovanni Brethenoux 294ad9679f fix(verifiedpermissions): accept tokens issued by Floci's own Cognito pools (#8133)
* fix(verifiedpermissions): accept tokens issued by Floci's own Cognito pools
* fix(verifiedpermissions): verify emulated pool tokens with Cognito's own check
2026-11-13 16:25:52 -04:00
Vũ Thế Huy eea61cd42a feat(redshift): project DynamoDB zero-ETL changes into a current-state table (#8180) 2026-11-13 16:18:31 -04:00
mrfelek 5c08fff5d7 fix(ssoportal): name IAM Identity Center role sessions after the user (#8162)
* fix(ssoportal): name IAM Identity Center role sessions after the user
* refactor(identitystore): read a user through findUser in one place
2026-11-13 16:11:06 -04:00
mrfelek 25811dd4c6 fix(eks): share a cluster node's mounts so CSI drivers can mount volumes (#8207) 2026-11-13 16:09:32 -04:00
Mario Toffia 6341708315 fix(cloudformation): delete a custom resource a committed update replaced (#8223) 2026-11-13 16:05:42 -04:00
irodotos7 2dc93aa087 fix(iam): derive EC2 instance authorization from AWS metadata (#8150)
Authorize generated instance targets with their own stored tags before mutation. Return malformed Query errors as XML HTTP 404, reuse enforcement group cleanup, and update generated-target regression coverage. Regenerate IAM metadata on current main.

Closes #8159
2026-11-13 16:05:26 -04:00
Kenshin Okinaka 898fee8bb1 fix(ses): validate the topic in SetIdentityNotificationTopic (#8202)
* fix(ses): validate the topic in SetIdentityNotificationTopic
* test(ses): share the SNS topic helpers in the notification topic test
* refactor(ses): build the notificationType enum violation with the shared helper
2026-11-13 15:58:23 -04:00
TATSUNO “Taz” Yasuhiro 8c31942e84 fix(dynamodb): apply parenthesized and nested operands in an UpdateExpression (#8215)
DynamoDB reads an operand in parentheses like the bare operand, so
SET a = (:v) + (:w) adds two numbers and list_append((:l), :m) joins two
lists. It also reads the fallback of if_not_exists as an operand, so
if_not_exists(a, if_not_exists(b, :v)) gives the first of a, b and :v
that exists.
2026-11-13 15:52:40 -04:00
Jackson Price 44eb096ed5 fix(appsync): require definition and format when creating types (#8157) 2026-11-13 15:42:57 -04:00
Priamo Germosen d3c8412977 fix(emr-serverless): run a job's containers for its application's architecture (#8208)
An EMR Serverless run's driver and executors ran on the Docker host's own
platform whatever architecture the application named, so an ARM64
application ran amd64 images on an x86 host, and its arm64-only
dependencies with them.

- With floci.services.emrserverless.honour-architectures on, a run's
  containers run the image for its application's architecture,
  linux/amd64 for X86_64 and linux/arm64 for ARM64: the release's
  images, published for both, and a custom image, pulled for that
  platform.
- Off by default, as Lambda's honour-architectures: tools such as
  Terraform name X86_64 unless told otherwise, so on an arm64 host
  every run would move to emulation. Off, or for an application that
  names none, a run stays on the Docker host's own platform.
- DockerPlatforms.forArchitecture is the one mapping from an AWS
  architecture name, in either case, to its Docker platform. ECS task
  definitions, Lambda functions, EC2 images and the AMI build tool had
  a copy each and now use it, keeping their own special cases: EC2's
  i386, the tool's amd64 and its refusal of anything else.

A host of another architecture needs emulation to run the image.
2026-11-13 15:35:33 -04:00
Priamo Germosen a852078fc9 feat(codeartifact): add Package Groups support (#8206) 2026-11-13 15:33:11 -04:00
Oleksandr Nikolaichuk b3f9401e9f refactor(iam): one decision record behind the policy evaluator's answer (#8200) 2026-11-13 09:55:57 -04:00
Jimmy Liu Jia 9ee8ba4e11 fix(kinesis): route partition keys by MD5 hash range (#8198)
* fix(kinesis): route partition keys by MD5 hash range

* fix(kinesis): preserve reshard ranges and index writes
2026-11-13 09:18:30 -04:00
Ryan Lewis 9bb384903a fix(sns): reject Publish to a PhoneNumber not in E.164 format (#8127)
* fix(sns): reject Publish to a PhoneNumber not in E.164 format
2026-11-13 09:12:36 -04:00
Jimmy Liu Jia 19a1742761 fix(s3): reject unrestored archived GetObject reads (#8196) 2026-11-13 09:06:05 -04:00
Tyler Webb e41cc9b88d fix(sqs): reject empty and malformed message attribute values (#8061)
SendMessage and SendMessageBatch on both the JSON and query protocols now answer InvalidParameterValue for a message attribute whose StringValue or BinaryValue is empty or whose BinaryValue is not base64, instead of storing an empty value or failing with a 500 on the decode. In a batch, only the entry carrying the bad attribute fails; the other entries are still sent.

An attribute missing its DataType, or carrying neither a StringValue nor a
BinaryValue, was silently dropped while an empty value was rejected. Both now
fail with InvalidParameterValue, using the wording LocalStack's snapshot tests
record: 'Missing required parameter DataType' and the existing non-empty value
message.

SendMessageBatch now writes the failed entry as soon as its attributes fail
to parse and skips it, rather than carrying the exception to the send loop.
The query handler parses SendMessage and SendMessageBatch attributes through
one helper.

A batch entry with an invalid message attribute was left out of the batch
payload total, so a batch over MaximumMessageSize only because of that
entry was accepted and the bad entry reported as a per-entry failure.
LocalStack and moto both sum every entry before any per-entry check, so the
total now comes from each entry's raw body and attributes, independent of
attribute validation, and such a batch fails whole with BatchRequestTooLong.

The empty-value error derived the base type with split("\\.")[0], which
throws ArrayIndexOutOfBoundsException, surfacing as a 500, for a DataType
of "." or "..". Take the substring before the first '.' instead.

A DataType whose base type (the part before the first period) is not
String, Number or Binary, such as "Strin", "Foo" or ".", was accepted.
SendMessage now rejects it with InvalidParameterValue, and SendMessageBatch
fails only that entry. The match is case-sensitive, and the message follows
LocalStack's check_attributes in localstack-core/localstack/services/sqs/
provider.py, which names the parameter literally as
MessageAttributes.Attribute_name.DataType. LocalStack's f-string drops the
space in "prefixed with"; the space is kept here.

The empty-String-value, missing-DataType and DataType-prefix messages come
from LocalStack's check_attributes. The empty Number and Binary value and
invalid base64 messages are Floci's own wording, unconfirmed against AWS,
so those cases now assert the error code only.

computeMessageSize now counts each attribute through the same helper the batch payload check uses on raw wire fields, so the name, type and value byte rule lives in one place.

Adds JSON and Query batches whose bodies fit the 1 MiB limit but whose invalid entry's attribute pushes the batch over it, plus service tests for UTF-8 byte lengths, decoded binary lengths, the invalid-base64 fallback and computeMessageSize.

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>
2026-11-13 09:01:59 -04:00
Niels Kootstra 236e20003f fix(ssm): keep document and association tags and tag them by resource type (#8132)
CreateDocument and CreateAssociation now keep their Tags, and AddTagsToResource, ListTagsForResource and RemoveTagsFromResource pick a document by name or an association by ID from ResourceType instead of always looking up a parameter. A document's tags are returned in its DocumentDescription and ListDocuments entry.

Read the SSM tag calls, CreateDocument and CreateAssociation from the
generated request-resource table instead of building their ARNs by hand.
A ResourceType enum value now picks its resource type ignoring case and
hyphens, ResourceId fills it whatever its kind, and a variable named for
leaving out the leading slash drops it, as a parameter ARN does.

Closes #7959
2026-11-13 08:56:30 -04:00
TATSUNO “Taz” Yasuhiro 410ed8e817 fix(dynamodb): refuse bad function calls and operand types in an UpdateExpression (#8195) 2026-11-13 08:50:26 -04:00
TATSUNO “Taz” Yasuhiro ede4ebf6b0 feat(lambda): pass the X-Ray trace header through durable chained invokes (#8189)
* feat(lambda): pass the X-Ray trace header through durable chained invokes

* fix(lambda): give a PassThrough invocation a new Parent for an unsampled header without one
2026-11-13 08:30:31 -04:00
Suja Shaj 7d7c87338f fix(cloudformation): register a target group's Targets and keep them in step on update (#8199) 2026-11-13 08:27:19 -04:00
Andre Kurait 5816d8a908 fix(codeartifact): share PyPI retention locks across package spellings (#8201)
* fix(codeartifact): share PyPI retention locks across package spellings

Normalize the per-version retention lock with the existing PEP 503 package-name helper so a background sibling import and a direct wheel request cannot race through different aliases. Add a regression for hyphenated sdist and underscored wheel requests.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test(codeartifact): observe the shared retention monitor

Await the request thread reaching its shared retention monitor instead of spending a fixed timeout window. Preserve completion and single-write assertions.

Signed-off-by: Andre Kurait <akurait@amazon.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-13 07:56:11 -04:00
Priamo Germosen 4963472362 refactor(emr-serverless): word the states filter's length refusal through the shared helper (#8192)
EMR Serverless spelled out the framework's "Value '...' at 'states'
failed to satisfy constraint" sentence for a states filter longer than
its set allows. It now goes through SmithyValidationErrors.Violations'
quoted form, as its other violations do, and answers the same message.

A double blank line #6439 left in EmrServerlessJobRunService goes too.
2026-11-13 07:34:14 -04:00
Priamo Germosen f5fd41a6ac fix(emr): list an instance fleet's instances (#8183)
ListInstances listed only instance groups' instances, so a cluster made
of instance fleets listed none, though its core and task nodes run as
containers named by the private DNS names its instances would have.

- A fleet has an instance for each unit of its capacity, as its nodes
  do, its on-demand ones first, each of the first instance type in its
  InstanceTypeConfigs, which Floci now keeps, and with its
  InstanceFleetId.
- The primary fleet's instance is numbered first, i-00000000000000001
  at 10.0.0.1, as MasterPublicDnsName names it, and every other fleet's
  are at 10.<fleet>.0.<n>, the names its nodes run under, kept while
  another fleet resizes. One helper numbers groups and fleets for both.
- An ended fleet's instances stay listed as TERMINATED for 30 days, as
  an ended group's do, from its target capacities, which it can no
  longer change.
- InstanceGroupId, InstanceGroupTypes, InstanceFleetId and
  InstanceFleetType now narrow the listing, all given ones together;
  they were ignored.

A call lists at most 2,000 instances, building only that page, with a
Marker for the rest, so a fleet of any capacity costs one page, counted in longs, as a fleet's
two capacities add up past an int. A
cluster has instance groups or instance fleets, never both, as they
"cannot coexist in a cluster": RunJobFlow with both, AddInstanceGroups
on a cluster with fleets and AddInstanceFleet on one with groups are
refused, and so is a fleet without its required InstanceFleetType or an
InstanceTypeConfigs member without its required InstanceType.
2026-11-13 07:14:19 -04:00
Priamo Germosen 9b24a38afe fix(iam): hold every policy document a write is handed to being a policy (#8175)
Seven writes take an IAM policy document and every one of them models
MalformedPolicyDocument, "the request was rejected because the policy document was
malformed". None of them answered it, so a document that was no policy at all was
stored and told apart only later, when something tried to decide with it. A role's
trust policy was the sharpest case: the trust evaluator reads a document it cannot
parse as matching nothing, so a role written that way could no longer be assumed.

The reading goes in IamService rather than at the Query front door, for two reasons.
Three CloudFormation provisioners write these documents straight through the service
and would otherwise be held to nothing. And the order AWS answers in differs per
operation, which only the service can express: CreateRole, CreatePolicy,
CreatePolicyVersion and UpdateAssumeRolePolicy read the document before the name
clash or the entity lookup, where PutUserPolicy, PutGroupPolicy and PutRolePolicy
answer NoSuchEntity for a holder that is not there whatever document the request
carried.

Which reading an operation asks for follows what the document is. A trust policy is
held to the grammar alone and under its own validator's wording, "This policy
contains invalid Json" for a text that does not parse as a JSON object and "Policy
has no statements" for an object carrying no Statement, the element the grammar
requires; its statements name a principal rather than resources, so an identity
statement's elements are not asked of it. An inline policy is held to that grammar
under the identity validator's one sentence for both, "Syntax errors in policy.",
and to the values the language defines: a Version outside 2012-10-17 and 2008-10-17,
an Effect that is not literally Allow or Deny, and a resource named neither by ARN
nor by the wildcard. A managed policy is held to those and to each statement's own
elements, "Policy statement must contain actions." and "Policy statement must
contain resources.".

None of those sentences is published and none is captured. They are the ones AWS's
own emulator answers, a first-party implementation rather than a recording, and the
split between the two validators' wordings is its reading too, which
docs/services/iam.md records.

The grammar is read in one place, not two. #8164 landed
IamPolicyEvaluator.readsAsPolicyDocument for a document a request supplies to the two
simulators or the two context-key readers, which asks exactly what the writes ask of
the top level: parses as a JSON object, and carries Statement. The writes need to know
which of the two failed in order to word their refusal, so the reading lives here and
that method is now its boolean face rather than a second copy of it.

Putting a document back is not a new write. A failed CloudFormation update restores
the trust policy, the inline policy or the policy version it captured before the
attempt, and a document an earlier release accepted must not be refused on the way
back: that would leave the role or the policy without what the rollback had just
removed, and the stack unable to roll back at all. So those three writes keep the
reading on their public entry point and the provisioners restore through
restoreAssumeRolePolicy, restoreRolePolicy and restorePolicyVersion, which apply the
same write without it. The inline-policy provisioner already restored by writing the
captured document straight back, so it needed nothing. This is the same rule as
reading a stored document exactly as it was, applied to the one path that writes one.

The whole text has to be the document. A member taking one takes "the complete, valid
JSON text of an IAM policy", and Jackson reads the first value and stops unless it is
told otherwise, so an object with anything after it parsed as a policy. The reader
enables FAIL_ON_TRAILING_TOKENS, which is what the reference implementation's parser
does by construction.

A null document is nothing to judge: a required member the request leaves out is
answered as absent by the constraints ahead of the operation. What is already stored
is read exactly as it was, so a document an earlier version accepted still decides
what it decided.

Holding every caller means holding the fixtures too, the compatibility suites
included: a Python and a Java SDK test each wrote an inline policy carrying only
Version, and two roles in the EKS access-entry test were created with a trust policy
of {}. All three are documents IAM refuses, the first two being the case recorded for
a document that is valid JSON carrying only Version.

Holding every caller means holding the fixtures too. Filler documents across the test
tree, "{}" as a trust policy chief among them, were documents real AWS refuses; they
now come from one place, io.floci.aws.testing.IamTestPolicies, which also answers a
distinct document per marker for a test that needs several. Two fixtures changed in
substance rather than in spelling: a Step Functions policy meant to name another
event bus named it by bare name, which an identity policy may not, and a managed
policy version's statements named no action.
2026-11-13 00:18:02 -04:00
TATSUNO “Taz” Yasuhiro 38085d1d75 fix(dynamodb): parse the whole UpdateExpression before reading names and values (#8190) 2026-11-13 00:12:26 -04:00
Jimmy Liu Jia 1686f29e04 feat(s3): track archived object restore state (#8166)
* feat(s3): track archived object restore state

* fix(s3): validate restore options and report version restore status
2026-11-13 00:08:10 -04:00
Andre Kurait c3551d351e feat(kms): list completed key rotations (#8146)
Record completed rotation history, validate filtering and pagination, preserve concurrent key updates, and publish primary and replica material as one atomic storage batch.

Revalidate the initially resolved key before atomically publishing import parameters, preserving deletion safety and alias identity. Share the malformed rotation request fixture.

Use shared striped monitors keyed by resolved key ID, preserving replica publication and import identity while permitting unrelated key operations. Reuse shared concurrency and SDK fixtures.

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-13 00:00:10 -04:00
Vũ Thế Huy 315367f21f feat(redshift): share a cluster snapshot with another account (#8077)
AuthorizeSnapshotAccess and RevokeSnapshotAccess record the accounts that may restore a
manual, available snapshot. The snapshot reports OwnerAccount and AccountsWithRestoreAccess,
DescribeClusterSnapshots takes an OwnerAccount filter that lists only what the owner shared
with the caller, and RestoreFromClusterSnapshot takes an OwnerAccount (or a SnapshotArn of
another account) and restores a shared snapshot from the owner's dump. A snapshot that is not
shared is refused with AccessToSnapshotDenied, and the grant does not outlive the snapshot.

IAM takes generated data only, so the RestoreFromClusterSnapshot correction is replaced by two
rules in regen_iam_request_resources.py. A top-level request member whose name ends in Account
gives the account of each type whose botocore structure has that same member: Snapshot has
OwnerAccount and Cluster does not, so the snapshot moves to the owner's account and the restored
cluster stays the caller's. Of several members that could fill a variable, one naming the type
before the variable wins over a bare one, so the snapshot's ClusterName comes from
SnapshotClusterIdentifier rather than ClusterIdentifier.

Across every operation the rules change only that entry, which also gains DefaultIamRoleArn and
RedshiftIdcApplicationArn as ARN rows that never match a cluster or snapshot, and CloudFront's
GetInvalidationForDistributionTenant, whose tenant is now filled from DistributionTenantId rather
than the invalidation's Id.

The handler's SnapshotArn check now resolves the partition through RegionResolver, as the
service's Region check does, so a Region outside the known partitions cannot make the two
disagree.
2026-11-12 23:34:54 -04:00
Jimmy Liu Jia 9c0f644038 fix: enforce Kinesis stream tag limit for AddTagsToStream (#8179) 2026-11-12 23:33:20 -04:00
Priamo Germosen a3eea94899 fix(codeartifact): stream asset uploads instead of buffering them as byte[] (#8170)
PublishPackageVersion and the Maven, pypi, and NuGet wire-protocol endpoints all
received the request body as a single byte[] before any size check ran, so the
real, documented 5 GB asset quota never actually applied: an array is capped at
~2.147 GB (Integer.MAX_VALUE), so a legitimately-sized multi-GB asset either
failed with an OOM or never got far enough to hit the quota check at all.

Reworks the write path for all four formats to stream through a staged file
instead of a resident array:

- AssetDigestingInputStream computes MD5/SHA-1/SHA-256/SHA-512 and enforces the
  5 GB cap in one pass while the body is read, rather than after it's fully
  buffered.
- CodeArtifactService.stageAssetBody/deleteStagedAssetBody give every upload
  path a single, consistent staged-file lifecycle; existing byte[]-based
  entry points (CopyPackageVersions, small in-process metadata writes) are
  left as additive overloads, not replaced, so ~120 existing direct-call test
  fixtures keep working unchanged.
- MultipartFormParser.extractFilePart streams a pypi/NuGet multipart body from
  disk in fixed-size chunks with a carried-over overlap window, so a boundary
  marker that straddles two reads is still found correctly, without ever
  holding the whole envelope (or the file part inside it) in one array. Text
  fields are bounded both individually and in aggregate, so a real long
  pypi description doesn't get rejected but many small fields together still
  can't accumulate the whole envelope on the heap.
- Every sidecar write (Reposilite, pypiserver, BaGetter) now has a
  Path/InputStream-based overload alongside its existing byte[] one, using
  HttpRequest.BodyPublishers.ofFile/concat instead of a resident buffer.
  Verdaccio's own write streams the base64-encoded tarball through a piped
  JDK Base64 encoder instead of building one large encoded string, and a
  writer-side read failure now fails the publish outright instead of risking
  a truncated tarball published under hashes computed from the whole file.
- Every large-transfer HTTP call site's timeout now scales with the content
  length (SidecarUriUtils.transferTimeout) instead of a flat 30 seconds, which
  a multi-GB transfer can legitimately exceed.

Manually verified against a packaged jar running under a 1 GB heap cap: a 3 GiB
Maven deploy, a 3 GiB pypi twine-shaped upload, and a 3.2 GB NuGet push each
completed with no OOM and round-tripped byte-identical. Documents two related,
pre-existing ceilings that this change does not and cannot remove on its own:
the emulator's own global HTTP body-size cap (FLOCI_PROTOCOLS_MAX_REQUEST_SIZE,
2048 MB by default) still caps any single request below the real 5 GB quota
until raised, and the generic format's in-memory storage mode still holds an
asset as one byte[].
2026-11-12 23:30:30 -04:00
Priamo Germosen c1c1c2475f perf(emr): start a primary node's daemons together (#8182)
A cluster's primary node started Hive's metastore only once its HDFS
was usable and its folders made, and YARN only once the metastore took
connections. None of them needs the HDFS to start, so they now start
with the NameNode, and the node waits for each once the HDFS is ready.
Its folders are made by one hdfs command, not two.

On emr-7.5.0 with Hive and YARN, a node was ready in 12s and 20s,
against 26s twice before, on the same loaded machine.
2026-11-12 23:22:08 -04:00
Daniël van Ziel a840c31109 fix(kms): reject CreateAlias on an existing alias name (#8171)
* fix(kms): reject CreateAlias on an existing alias name with AlreadyExistsException

* test(kms): cover alias update in CloudFormation and tighten the race test
2026-11-12 22:41:43 -04:00
soreavisandPriamo Germosen b2fa3e0cfb fix(organizations): apply PutResourcePolicy tags only on creation (#8174)
PutResourcePolicy replaced the tag set of an existing resource policy
whenever the request carried Tags. The model says tags apply only to
the initial creation of the resource policy and that the call throws
otherwise. It now applies Tags only when it creates the policy and
answers InvalidInputException for Tags on an existing one, before it
changes anything. The model names no error for this case;
InvalidInputException is the one it lists for invalid request values.
An empty Tags list has no tags to apply and is accepted.

The CloudFormation provisioner relied on the old replace to converge
the Tags of AWS::Organizations::ResourcePolicy on update. An update now
leaves Tags out of PutResourcePolicy and converges them through
TagResource and UntagResource by the rp- ID, as the provisioner does
for OUs, accounts and policies and as AWS's own handler does.

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-11-12 22:18:32 -04:00
Jackson Price 405a3cad12 fix(glue): serialize table deletion with catalog updates (#8173) 2026-11-12 22:17:43 -04:00
Murtuza Chhil 7c138ce3f1 fix(paymentcryptography): the list of keys answers with their summaries (#8135)
The model's KeySummary holds the identifier, the state, the attributes, the
check value and the two flags, and not the whole key. The list answered with
the whole key, so it carried the timestamps and the origin that a summary
does not hold.

The list answers with the summary now, and the whole key stays the answer of
the operation that names one key.

The control plane's answers are driven through a real SDK and through the AWS
CLI, so the wire format of the operations the summary fix touches is the one
the clients read.

The certificate of a key pair, a tag that is added and removed, a key pair
that keeps the usage its derived keys have, the RSA cryptogram the key
exchange serves, the key the two parties agreed, and the timestamps the
answers carry.

The page said the member was read and checked. Nothing reads it: the shape
check is what checks it, against the range the model states.

The page said each key in the list is the whole key rather than the summary the
model names, which the change that answers with the summary makes untrue. The
page says what a listed key carries now.

The round trip through the RSA cryptogram asserted the ARN of the key that
came in and the usage it was given, which a wrong key of the same usage would
also pass. It compares the check value with the exported key's, so the test
shows that the same key came back.

The key that came in was not added to the list the cleanup walks, so it was
left in the service when the class finished. It is added now.
2026-11-12 22:10:28 -04:00
TATSUNO “Taz” Yasuhiro 891c0cd58f fix(dynamodb): refuse a repeated section in an UpdateExpression (#8167) 2026-11-12 21:23:38 -04:00
Priamo Germosen 438e01a225 feat(emr-serverless): run a Spark job's executors in their own containers (#8168)
EMR Serverless gives a Spark job's driver and each of its executors a
worker of their own; a docker job run ran them all in one container, in
Spark's local mode. With executor-containers above 0, the driver's
container now runs Spark's standalone master beside the driver, and each
executor runs in a container of its own, a standalone worker offering one
executor's cores and memory.

Floci follows the driver through its UI: an executor's size from its
settings, and how many executors dynamic allocation wants from its
metrics. It starts executor containers, or removes idle ones, to match:
at most executor-containers at once, and none that would take the
application past its maximumCapacity. They share a secret per
run, run the Executor worker type's image, and go with the driver.

executor-containers is 0 by default: then, or on the host's network,
the executors run in the driver's container, as before.
2026-11-12 21:22:01 -04:00
Kal Cramer 9f9b116f73 fix(efs): keep IpAddressType and Ipv6Address on CreateMountTarget and require SubnetId (#8169) 2026-11-12 21:16:53 -04:00
Priamo Germosen 623bb15283 fix(iam): read the documents a request supplies, and hold each to being a policy (#8164)
`SimulatePrincipalPolicy` read neither `PolicyInputList` nor
`PermissionsBoundaryPolicyInputList`, so a caller testing a policy it has not
attached, or a boundary other than the stored one, was answered about the
principal as it stands: a decision about a question nobody asked. Both members
have published behaviour, and `SimulateCustomPolicy` already read both, the
documents being its whole input, so this is the principal simulator dropping two
of its own.

A `PolicyInputList` document is "an optional list of additional policy documents
to include in the simulation", so each is evaluated with the weight of a policy
the principal holds: an allow in one allows an action the attached policies do
not, which is what the operation's own example in the API Reference turns on, and
a deny in one stops an action they allow. A `PermissionsBoundaryPolicyInputList`
document is the boundary that simulation runs with in place of the stored one,
"if a permissions boundary is attached to an entity and you pass in a different
permissions boundary policy using this parameter, then the new permissions
boundary policy is used for the simulation", and it is the boundary when the
entity carries none, the member being "the IAM permissions boundary policy to
simulate". The one-document limit both simulators are held to is read in one
place now rather than two.

Neither document is attached to anything, so no `PolicyExclusionList` identifier
reaches either: that member names the policies "actually attached to the
principal", where these are the request's own. A simulation leaving out every
part a `PolicyType` can name therefore still carries what the request handed in,
and a boundary handed in still holds the simulation down where the stored one was
left out.

Reading a document means being able to read it, so each supplied document is held
to the grammar before anything is decided from it. Four operations take
`PolicyInputList`, the two simulators and the two context-key readers, and each
takes "the complete, valid JSON text of an IAM policy". A text that does not
parse as a JSON object, and an object carrying no `Statement`, "the main element
for a policy. This element is required.", are both refused with the modelled
`InvalidInput`, 400, naming the entry by the index the request numbered it with.
A supplied permissions boundary carries the sentence that names no entry, the
member taking one document. Without that, an unreadable document was answered as
though the request had carried nothing at all: an unreadable identity document
left an attached allow still allowing, and an unreadable boundary was worse,
becoming a ceiling that allows nothing and turning an allow into an implicit
deny.

The 500 `PolicyEvaluation` the two simulators model is not that answer. It
carries no sender fault where `InvalidInput` does, and the two context-key
readers take this same member and model no `PolicyEvaluation` at all, so one
defect on one member would otherwise be answered two ways across the four
operations that take it.

A document already stored is read as it always was: it contributes no statements
and the decision is made on the rest, because a policy the account accepted once
must not make every later call fail. The supplied documents are read ahead of the
principal lookup now, which is where this package answers an input.

Either supplied document is also held to the shape the model declares, so one
past 131072 characters is a `ValidationError` naming the member under the index
the request numbered it with. The boundary list was read by the constraint walk
already; `PolicyInputList` was carried by hand for both simulators, which only
`SimulateCustomPolicy` needs: it requires the member and answers an empty list in
its own wording, "At least one PolicyInputList member is required.", where
`SimulatePrincipalPolicy` leaves the member optional and so has nothing of its
own in front of the walk. So the generator's exemption drops that operation and
the vendored shapes are regenerated from the pinned model, which adds the one
member to `SimulatePrincipalPolicyRequest`.
2026-11-12 20:59:23 -04:00
Priamo Germosen 40ec27593e fix(iam): check created tags, default views, FIS actions and cross-account ARNs (#8165)
Four gaps in how the request-resources table reads a request, which the
review of #8154 found in its services and which hold for any service:

- A create whose action acts on no resource type had its tags checked on
  `*` too, so a tagging grant scoped to the type it makes refused them. The
  generator gives such a create the resource it makes (`makes`), and its
  tags are checked there when the request's tagging action acts on that
  type.
- An optional member holding the ARN of a type, left out, names the
  resource its service uses then (`default`), which the reader asks the
  service for: Resource Explorer's `Search` and `ListResources` with no
  `ViewArn` are checked on the Region's default view.
- A field of each value of a map of structures, named after a type the
  action acts on, names one resource for each value: an FIS experiment
  template's create and update are checked on each action it names.
- An ARN naming another account is checked as given alone when its service
  acts on the resource in that account: an OAM sink a link is made to, a
  RAM invitation sent to the caller or a share another account owns.
2026-11-12 20:59:03 -04:00
mrfelekandmrfelek 6b1ba4387a fix(route53): check Route 53's requests under IAM enforcement (#8090)
Under IAM enforcement no Route 53 request but the delegation set calls
was checked: Route 53's model was not among the vendored REST routes,
and its namespace's request resources were not read, so no other
request was mapped to an action and the filter let it through. A
caller with no permissions could create, change and delete hosted
zones, record sets, health checks and tags.

Route 53's routes are now vendored and its requests read, now that
REST-XML path and query members are. Two generator changes name what
the rules did not:

- a path segment in ies names the type in y, so a bare Id after it is
  that type's: ListTrafficPolicyVersions's, in
  /trafficpolicies/{Id}/versions, is the traffic policy's, as the rule
  for path labels already reads UpdateHostedZoneComment's hosted zone
  and the other traffic policy calls;
- a member whose enum lists two or more of the action's types picks
  the type: Route 53's tag calls, by ResourceType.

RequestResources drops a leading /<type>/ from an id, the path Route 53
returns its ids under, so a delegation set or hosted zone named that
way is the same resource. The delegation set calls go through the
vendored routes like the rest, and their hand-built action map and ARN
builder are gone.

Co-authored-by: mrfelek <17274927+mrfelek@users.noreply.github.com>
2026-11-12 20:56:16 -04:00
Matheus Oliveira 282b53cacc fix(dynamodb): report correct WarmThroughput for tables (#7648)
Table-level WarmThroughput was hardcoded to 0/0. Now reports provisioned
capacity for provisioned tables and 12000/4000 for on-demand tables, matching
AWS. Tracks max capacity history on updates. Omits WarmThroughput from
CreateTable responses as AWS does.

Closes #7114

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-11-12 20:55:22 -04:00
Jimmy Liu Jia 6ef4ad536b docs(rds): clarify zstd IAM DDL passthrough (#8155) 2026-11-12 20:54:16 -04:00
soreavis 355c180db3 fix(memorydb): return InvalidARNFault when ResourceArn is not a MemoryDB ARN (#8163)
ListTags, TagResource and UntagResource answered ClusterNotFoundFault
for a ResourceArn that is not a MemoryDB ARN at all: one that does not
parse, or one that names another service. botocore lists
InvalidARNFault on all three operations ("The specified Amazon
Resource Name (ARN) is not valid."), and the MemoryDB API Reference
gives it HTTP 400.

clusterByArn now answers InvalidARNFault unless the value is an ARN
naming memorydb. A MemoryDB ARN of another Region or account still
answers ClusterNotFoundFault.
2026-11-12 20:37:42 -04:00
Andre Kurait 1820d6470d fix(ec2): preserve security group deletion scope and dependencies (#7920)
* fix(ec2): preserve security group deletion scope and dependencies

Coordinate group publication, attachment and deletion, preserve instance/interface group state, and reject invalid DryRun values before deletion.

Signed-off-by: Andre Kurait <akurait@amazon.com>

* fix(ec2): tolerate absent persisted group dependency fields

Keep unknown-state instance attachments blocking deletion while treating absent dependency collections as empty. Cover all nullable scan fields and missing identifiers without changing normal dependency semantics.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ec2): roll back failed security group creation

Retain the default rule identity before publication and compensate both group and rule writes when either store fails. Preserve the original exception and record cleanup failures without skipping the remaining cleanup.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ec2): serialize group rule references with deletion

Acquire the regional topology monitor before the source group monitor while resolving and publishing ingress and egress rules. Keep runtime reconciliation outside the mutation locks and preserve existing unknown-reference compatibility.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ec2): retain groups used by Instance Connect endpoints

Reject deletion before mutation when an Instance Connect endpoint uses the group. Return CannotDelete for default groups and reuse shared SDK clients in the existing fixtures.

Signed-off-by: Andre Kurait <akurait@amazon.com>

* refactor(ec2): share resource locks and deletion race helpers

Reuse the reference-counted lock lifecycle for volume operations and instance group assignments. Keep scoped keys and lock ordering unchanged. Reuse deletion tasks and blocked-or-done observations without weakening race assertions.

Signed-off-by: Andre Kurait <akurait@amazon.com>

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-12 20:31:14 -04:00