Commit Graph
3897 Commits
Author SHA1 Message Date
Allen Sanborn 52055654a7 fix(ec2): name launch template network interface groups groupId on the wire (#7138)
LaunchTemplateInstanceNetworkInterfaceSpecification.Groups is a GroupIdStringList
whose members are named groupId, not item. aws-sdk-go-v2 reads only groupId, so
Terraform saw security_groups as empty and planned an update every time.
2026-10-31 21:54:32 -05:00
TATSUNO “Taz” Yasuhiro 89ecb594e1 fix(dynamodb): drop the table name from the PartiQL missing table error, and treat a CREATING table as missing (#7158) 2026-10-31 22:52:23 -04:00
Vũ Thế Huy 00425b7824 refactor(redshift): share the Redshift Data target submission between services (#7163) 2026-10-31 22:33:33 -04:00
Priamo Germosen ebf91d1a8e feat(emr): keep a cluster's storage, HDFS included, across its steps (#7137)
In the docker runner mode each step of a cluster ran in a container of its
own, so nothing a step left in /home/hadoop, or in HDFS, was there for the
next, and the image has no HDFS at all: an hdfs:// path failed, and a path
without a scheme, which EMR reads as HDFS, went to the container's own
disk. The Management Guide calls HDFS "best used for caching the results produced by
intermediate job-flow steps", the prefix "hdfs:// (or no prefix)", and
"ephemeral storage that is reclaimed when you terminate a cluster"; the
Release Guide's S3DistCp page copies data "into HDFS where it can be
processed by subsequent steps".

Now a cluster's storage outlives its steps:

- each step's container mounts the cluster's two Docker volumes, one at
  /home/hadoop and one at /mnt, both of which the image gives its hadoop
  user, so Docker gives an empty volume that owner, and what the cluster's
  bootstrap left there in the image its steps run in;
- HDFS is /mnt/hdfs: Spark gets fs.defaultFS hdfs:/// and the hdfs scheme
  through Hadoop's ViewFileSystemOverloadScheme with a fallback link to
  that folder, so hdfs:// paths and those without a scheme lead there, a
  relative one under /user/hadoop, and a streaming query keeps its
  checkpoints through Spark's file system checkpoint manager, as
  FileContext refuses an hdfs:// path without a host. The cluster's
  spark-defaults can set any of these otherwise;
- a command step's hadoop fs gets the same, through a copy of the image's
  Hadoop configuration, or of the folder a spark-env export of
  HADOOP_CONF_DIR names, links followed, whose core-site.xml takes in
  the original's through Hadoop's XInclude and then those properties,
  with its HDFS, MapReduce and YARN homes set; hdfs dfs runs as hadoop
  fs, the image's hdfs command being unable to run;
- the volumes go once the cluster has ended and its last step is done,
  tried again while Docker refuses, as the bootstrap's image is; on a
  reset, a step's thread it overtook removing them again once its
  container is gone; and, for clusters that are gone or have ended, when
  the service starts, unless reconcile-containers-on-startup is off.

SparkJobRunner.Job carries the storage, which an EMR Serverless run leaves
null. ClusterStorage names, makes and removes the volumes;
EmrClusterStorage is its Docker side. A path without a scheme that a step
meant for its container's own disk now leads to HDFS, as on EMR. emr.md
says what HDFS lacks: no NameNode, no hdfs:// path with a host, no
hadoop fs -ls / and no S3 through hadoop fs.
2026-10-31 21:30:43 -05:00
TATSUNO “Taz” Yasuhiro f2a37c8792 fix(s3): refuse a malformed or empty versionId with 400 InvalidArgument (#7164)
* fix(s3): refuse a malformed or empty versionId with 400 InvalidArgument

S3 refuses a version id it did not mint with 400 InvalidArgument,
also on a missing key, and an empty versionId with its own message.
Floci mints every version id as a UUID, so it refuses any other value
on the object operations that take a version id.

* docs(s3): say an unknown UUID version id is handled as a missing version
2026-10-31 22:29:58 -04:00
jwoa95 812ab3becf feat(stepfunctions): dispatch ECS Lambda mapping and secret SDK tasks (#7004)
* feat(stepfunctions): dispatch ECS Lambda mapping and secret SDK tasks

* fix(stepfunctions): render ECS task-set StabilityStatusAt as ISO-8601

* refactor(stepfunctions): share recase and timestamp helpers with SDK management invoker

Reuse AslExecutor.recaseKeys (with a verbatim-key set), capitalizeFirst and a
single renderSdkTimestamps walker instead of copies in SdkManagementTaskInvoker,
and inject the invoker through the AslExecutor constructor.
2026-10-31 22:00:04 -04:00
Jimmy Liu Jia d4f87659a7 refactor(core): consolidate epoch-millisecond conversions (#7161) 2026-10-31 21:59:50 -04:00
Jimmy Liu Jia 94d7b2c031 fix(opensearch): correct Elasticsearch 7.10 upgrade targets (#7157) 2026-10-31 21:59:19 -04:00
Allen Sanborn d6617aeca3 fix(iam): serialize managed policy attach/detach so parallel detaches are not lost (#7144) 2026-10-31 21:52:54 -04:00
TATSUNO “Taz” Yasuhiro 48b19f76f3 fix(s3): name the key and version in NoSuchVersion errors (#7155)
* fix(s3): name the key and version in NoSuchVersion errors

Every NoSuchVersion error names the key and the version id, and an
annotation request for a missing version answers NoSuchVersion
instead of NoSuchKey, as on S3.

* test(s3): check annotation put and delete and a missing key for NoSuchVersion
2026-10-31 20:53:31 -04:00
Hector Ventura c865784540 refactor: read ARN resources through AwsArnUtils in EventBridge, Pipes and three more (#7145)
* refactor: read ARN resources through AwsArnUtils in EventBridge, Pipes and three more

Archive, replay and Pipes event-bus targets, Pipes Kinesis sources, MicroVM image and network
connector tags, Cloud Map tags and ECS service registries cut an ARN at its last '/' or ':'
by hand. They now read the resource with AwsArnUtils.resourceIfArnFor, which also checks the
service. A Pipes Kinesis source given as a stream-consumer ARN names its stream instead of
"consumer:timestamp", and an ECS registryArn that is not a Cloud Map service ARN is ignored
with the existing warning.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(lambda): read a MicroVM tag target the same way for IAM and the tag paths

TagResource takes only an ARN, and a network connector without a version. LambdaMicrovmsService.taggedResource is now the one reader for both the tag paths and ResourceArnBuilder, so a version-qualified connector is refused instead of reaching the bare connector while IAM checks another resource.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 20:36:16 -04:00
TATSUNO “Taz” Yasuhiro cf17be9dd0 fix(dynamodb): refuse unknown characters and unclosed quotes in PartiQL, and accept $ in names (#7154) 2026-10-31 20:21:12 -04:00
Andre Kurait 78ec0bc6e7 fix(lambda): accept bounded X-Ray error cause headers (#7153) 2026-10-31 20:16:10 -04:00
Andre Kurait faa9ff2365 fix(elbv2): reject missing listeners in describe requests (#7152)
Promote the complete retained fork #235 listener lookup validation and affected SDK and CloudFormation regressions on the qualified main base. Preserve the original compatibility fixture and JUnit SDK adapter.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-31 20:15:05 -04:00
Jimmy Liu Jia 8f5548687f fix(opensearch): complete legacy upgrade targets (#7151) 2026-10-31 20:12:10 -04:00
Allen Sanborn 28b9dc6048 fix(elasticache): provision the built-in default user per account (#7136) 2026-10-31 20:10:55 -04:00
Jimmy Liu Jia 08d45041d5 refactor(core): centralize millisecond epoch seconds (#7150) 2026-10-31 20:02:40 -04:00
TATSUNO “Taz” Yasuhiro 0f94440442 fix(s3): name delete markers in GET and HEAD errors and the key in NoSuchKey (#7149)
* fix(s3): answer a GET or HEAD that reaches a delete marker as S3 does

A read of a key whose current version is a delete marker sends the
marker's headers with the 404, and a versionId that names a delete
marker is 405 MethodNotAllowed, as on S3.

* fix(s3): name the key in NoSuchKey errors

Every NoSuchKey error names the key in a Key element, and
GetObjectTagging names it with its bucket, as on S3.
2026-10-31 20:02:17 -04:00
Andre Kurait 42d5793d3b fix(sts): cap chained AssumeRole sessions at one hour (#7142) 2026-10-31 18:54:26 -04:00
TATSUNO “Taz” Yasuhiro 04558d9c1a fix(s3): make the replaced version noncurrent on a write to a suspended bucket (#7143)
A write in a versioning-suspended bucket makes the version or delete
marker it replaces noncurrent, and deleting versionId=null makes the
newest of them current again, as on S3.
2026-10-31 18:26:01 -04:00
Jimmy Liu Jia 45b85405f7 fix(opensearch): derive compatible upgrade targets (#7141) 2026-10-31 18:18:28 -04:00
Jackson Price be315bf160 feat(cloudformation): provision AWS::EC2::KeyPair with its private key in Parameter Store (#7128)
* feat(cloudformation): provision AWS::EC2::KeyPair with its private key in Parameter Store

AWS::EC2::KeyPair had no provisioner, so a stack stubbed it: the stack
reached CREATE_COMPLETE without creating a key, Ref returned a made-up
id and Fn::GetAtt returned the literal "Key.KeyPairId". A template that
creates a key pair for an instance, as the AWS::EC2::KeyPair reference
shows, got nothing to log in with.

The new provisioner does what that reference describes:

- Without PublicKeyMaterial it calls CreateKeyPair with the template's
  KeyType and KeyFormat, so rsa and ed25519 keys and pem and ppk files
  all work, and stores the private key in the SecureString parameter
  /ec2/keypair/<KeyPairId>. With PublicKeyMaterial it imports the key,
  takes the key's type from the material (KeyType is ignored, as
  documented) and writes no parameter.
- Ref is the key name; Fn::GetAtt KeyPairId and KeyFingerprint are the
  key's own.
- Tags are applied once the key exists and the parameter is written
  last, so a step that fails leaves only the key to undo. Deleting a
  created key deletes its parameter first, on stack delete, rollback
  and replacement cleanup alike; a key or parameter already gone counts
  as deleted. A key is deleted by its name, as Cloud Control's
  DeleteResource names it; a key deleted outside the stack still has
  its parameter deleted with the stack.
- Only AWS::NoValue leaves a property out; an empty string a parameter
  supplies is a value, as the same string written literally is. An
  empty PublicKeyMaterial fails with the MissingParameter error
  ImportKeyPair gives for it.
- Every property is create-only (the registry schema has no update
  handler) and KeyName is required. An update that changes another
  property under the same name is refused with CloudFormation's
  custom-named replacement error. A rename creates the new key, then
  deletes the old one with its parameter once the update commits, or
  deletes the new one if the update rolls back.

The create-only list is added to create-only-properties.json, so a
change set reports a changed name or type as a replacement, and the
generated resource-type table lists KeyPair.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(cloudformation): delete orphaned key pair parameters on cleanup

Replacement cleanup and rollback delete a displaced or rolled-back
AWS::EC2::KeyPair by name only. When that key had already been deleted
outside the stack, its /ec2/keypair/<KeyPairId> SecureString parameter
was left behind.

Record the id of each created key the resource still owes a delete,
keyed by name, so the cleanup, the rollback and a rollback retry also
delete that key's parameter. Imported keys have no parameter and are
not recorded.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(cloudformation): end a key pair's rollback retry when an update starts

A rollback that could not delete a renamed key pair's replacement leaves
it owed for ContinueUpdateRollback. Once that skipped the resource, a
later update that failed before creating anything rolled back by
retrying that old delete instead of undoing itself, and could end in
UPDATE_ROLLBACK_FAILED.

Call ReplacementCleanup.endRollbackRetry as an update starts, as the
other replacing provisioners do. The replacement stays listed, so the
next committed update or the stack delete still removes it.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(cloudformation): say the rollback retry test pins a helper contract

The test added with the endRollbackRetry call rolls back the same
resource whose update failed. The engine does not do that for a key
pair today: it restores the previous resource and skips its rollback,
so the earlier commit's UPDATE_ROLLBACK_FAILED scenario is not
reachable yet. Say that the test pins the ReplacementCleanup contract
instead.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(cloudformation): clean up partial KeyPair parameter writes

* refactor(cloudformation): share KeyPair create-only tracking

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-31 18:03:31 -04:00
TATSUNO “Taz” Yasuhiro 02b9669066 fix(lambda-web): answer a delete marker as the code object as AWS does (#7079)
* fix(lambda-web): answer a delete marker as the code object as AWS does

A delete marker as the latest version is refused with AWS's own
message, and a versionId that names a delete marker is an internal
error, as on AWS.

* test(lambda-web): cover the null delete marker of a suspended bucket
2026-10-31 17:53:41 -04:00
Andre Kurait fbd07bd6f5 fix(iam): include direct ViaAWSService condition context (#7133) 2026-10-31 17:48:04 -04:00
Abhigya 8c475d664b fix(elbv2): accept request headers up to 64 KB as AWS does (#7115)
* fix(elbv2): accept request headers up to 64 KB as AWS does

ALB listeners used Vert.x's default 8 KB maxHeaderSize, so a request with
several JWT cookies got 431 Request Header Fields Too Large. AWS ALBs accept
up to 64 KB of request headers. Raise the listener limit and the target proxy
client's response-header limit to match.

* fix(elbv2): apply the ALB response header and request line quotas

Size the proxy client for the 32 KB response header quota and raise the
listener's request line limit to 16 KB. The large-header test now stays
under the 16 KB single-header limit, sends a 10 KB query, and reads the
data plane's constants.
2026-10-31 17:40:19 -04:00
Jimmy Liu Jia 10f54bb554 refactor(servicecatalog): centralize clock timestamp conversion (#7132) 2026-10-31 17:39:53 -04:00
Andre Kurait cbb563f24c fix(sts): apply role session duration limit to AssumeRole (#7131) 2026-10-31 17:36:45 -04:00
Ridwan 2d68edc4b7 fix(bedrock-agentcore): save a runtime's create tags with the runtime (#7130)
* fix(bedrock-agentcore): save a runtime's create tags with the runtime

The controller added the tags to the runtime after the service had already
stored it. WAL and persistent storage had written the record by then, so the
tags were lost on a crash unless something later saved the runtime again. The
same code ran on a clientToken replay and merged the retry's tags into the
original runtime.

Pass the tags into createAgentRuntime and set them before storage.put, as
CreateMemory does. The replay path returns before that point, so it no longer
changes them. CloudFormation keeps the existing overload because it applies
tags in its own rollback-guarded step.

Fixes #7126

* test(bedrock-agentcore): tighten the runtime create tag tests

The replay test ignored the second create's ARN, so it would still pass if
the retry created a second runtime. Assert that both creates return the same
ARN.

The WAL test started its try block after setup, so a failure there left both
stores and their compaction threads running. Guard each store from the point
it is constructed.
2026-10-31 17:20:19 -04:00
Priamo Germosen 300e62a0ed feat(codeartifact): retain NuGet packages from a public external connection (#7104)
NuGet's native v3/package route can now retain a missing package version
from a repository's own public:nuget-org external connection and serve
it, instead of always 404ing, matching AWS's documented external-
connection behavior already shipped for Maven.

- A version's retention origin is claimed atomically before any fetch
  happens, rejecting a later attempt under a different connection
  outright ("checking asset origins").
- Package-level upstream: BLOCK is respected, including when the
  restriction and the request spell the package name differently
  (nuget/pypi names are case/punctuation normalized everywhere this
  service tracks a package; PackageOriginConfig now keys by that same
  normalization too, instead of the caller's raw spelling).
- A retained version reports originType: EXTERNAL and its source
  connection through DescribePackageVersion/ListPackageVersions, for
  any format that retains (not just Maven).
- A concurrent retention attempt racing a real client's own direct
  push is never mislabeled as an external import: existence in the
  real sidecar alone no longer implies success, only a confirmed claim
  under the exact same connection does.
- Retained bytes are counted toward DescribeDomain's assetSizeBytes,
  never double-counted on a concurrent retry.
- A real HTTP redirect from the public repository is followed instead
  of being treated as a 404.
- Fixed-version retention only; resolving a floating/omitted version by
  merging in nuget.org's own version listing is left for a follow-up,
  the same baseline scope Maven's own external-connection work shipped
  first.

New: NuGetExternalConnectionClient (the outbound client for
public:nuget-org) and CodeArtifactNuGetExternalConnectionImporter (the
retention decision logic), wired into CodeArtifactNuGetController.

The claim/fence/deploy machinery CodeArtifactService already used for
Maven's own external-connection retention is generalized into
format-parameterized methods so npm and pypi can reuse it too, with
Maven's own public methods kept as thin, behavior-identical delegates
over the generic ones.
2026-10-31 16:16:06 -05:00
Priamo Germosen 2b6a8b4e66 feat(emr-serverless): give a job run's driver its driverEnv and S3 archives (#7107)
In the docker runner mode the user guide's way of giving an EMR
Serverless job run its Python libraries did nothing. "Building a Python
virtual environment" packs a virtualenv into an archive in S3 and
submits the job with:

  --conf spark.archives=s3://.../pyspark_venv.tar.gz#environment
  --conf spark.emr-serverless.driverEnv.PYSPARK_DRIVER_PYTHON=./environment/bin/python
  --conf spark.emr-serverless.driverEnv.PYSPARK_PYTHON=./environment/bin/python
  --conf spark.executorEnv.PYSPARK_PYTHON=./environment/bin/python

Floci set no driverEnv variable on the driver's container, and Spark in
local mode unpacks spark.archives into a temporary files folder of its
own once the driver's Python has started, not into the working
directory. With the variables set, the driver could not start: "Cannot
run program "./environment/bin/python"".

Now:

- a spark.emr-serverless.driverEnv.<KEY> property ("Option that adds
  environment variables to the Spark driver"), from the run's
  spark-defaults or a --conf in its sparkSubmitParameters, which wins,
  is an environment variable of the driver's container, replacing one
  of Floci's own of that name;
- each archive of spark.archives (which spark-submit's own --archives
  sets, winning over a --conf, as in Spark) in Floci's S3 is read as the
  run's account, streamed into the created container and unpacked into
  its working directory before spark-submit starts, under the name after
  its # or else its file's name, as Spark's Utils.unpack does it (.jar
  and .zip unzipped, .tar.gz, .tgz and .tar untarred, anything else
  copied). The guide's venv-pack example puts the environment in
  /home/hadoop/environment, and /home/hadoop is the image's working
  directory. An archive that cannot be read fails the run before its
  driver starts, naming it; a cancel, a reset or a shutdown while they
  are put in ends the copy and puts in no other.

SparkJobRunner.Job carries the archives, which classic EMR's steps
leave empty. Spark still unpacks each archive into its own files folder
too, where SparkFiles.get finds it, and gives spark.executorEnv
variables to the Python workers it starts, so those need nothing more.
2026-10-31 16:15:56 -05:00
Andre Kurait 81e1dbc573 fix(sts): cap account-root token durations at one hour (#7125)
* fix(sts): cap account-root token durations at one hour

Cap GetSessionToken and GetFederationToken credentials issued to the account-root identity at one hour, preserving IAM user durations and validation ordering.

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

* test(sts): bound root token expiry by request time

Check the one-hour default using timestamps captured before the request and after the response, allowing millisecond wire precision. Preserve the root duration cap.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-31 17:01:47 -04:00
Jimmy Liu Jia dc04c47791 fix(opensearch): support same-major version upgrades (#7129) 2026-10-31 17:01:31 -04:00
Jimmy Liu Jia 227769385f fix(sam): append resource lists to Globals lists (#7118)
* fix(sam): append resource lists to Globals lists

* fix(sam): replace intrinsic Globals values atomically

* fix(sam): let function architectures replace globals
2026-10-31 16:54:10 -04:00
Jackson Price 3cb727a85e fix(cloudwatch): decompress gzip JSON PutMetricData bodies (#7123)
* fix(cloudwatch): decompress gzip JSON PutMetricData bodies

The AWS CLI and the SDKs that speak JSON 1.0 to CloudWatch gzip a
PutMetricData body of 10 KiB or more and send Content-Encoding: gzip.
AwsJsonController binds the body as a String, so Floci read the
compressed bytes as text and every such request failed with HTTP 400
SerializationException. The metrics were never stored.

Add a reader interceptor that decompresses that one operation's body
when the controller reads it. It runs after every request filter, so
the signature is still verified over the compressed bytes the client
signed, and IAM still decides the request from X-Amz-Target first,
which is sound because nothing in that decision comes from the body.
The decompressed body is bounded by the decoder the CBOR protocol
already uses: past 10 MiB it returns HTTP 413 PayloadTooLargeException,
and a body that cannot be decompressed returns HTTP 400
InvalidRequestException, both in the controller's JSON error format.

A name binding keeps the interceptor on AwsJsonController alone, so
every other resource reads its body as before. In the native image a
global reader interceptor breaks the tag endpoints that resources
inherit from AbstractTagsController, because Quarkus REST then looks
their methods up reflectively.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(cloudwatch): publish a compressed metric batch through boto3

botocore gzips a PutMetricData body of 10 KiB or more, and with the
pinned boto3 it calls CloudWatch over JSON 1.0. The Python
compatibility suite only ever sent a handful of datums, so it never
sent a compressed request.

Send a 100-datum batch, check that botocore sent it as JSON 1.0 with
Content-Encoding: gzip, and check that all 100 metrics are listed
afterwards. Checking the content type keeps the test from passing
through the CBOR path, which already decompressed gzip, should a later
botocore prefer CBOR.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* chore(cloudwatch): reuse signed IAM test users

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-31 16:53:57 -04:00
Allen Sanborn 246473acf5 fix(lambda): omit ImageConfigResponse when an Image function has no image config (#7103) 2026-10-31 16:48:50 -04:00
Hector Ventura 0a4cd51acb fix(eks): tag node groups, Fargate profiles, add-ons, pod identity associations and access entries by ARN (#7113)
* fix(eks): tag node groups, Fargate profiles, add-ons, pod identity associations and access entries by ARN

TagResource, UntagResource and ListTagsForResource read the text after an ARN's last '/' as a cluster name, so a node group, Fargate profile, add-on, pod identity association or access entry ARN looked up a cluster named after its id and answered ResourceNotFoundException. The ARN is now parsed and routed by its resource type to the store that holds that resource, and a child ARN reaches the resource only when it matches the stored ARN.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(eks): answer TagResource and UntagResource with 200

The EKS model declares no responseCode on either tag write, so both answer 200, but EksService kept the shared tag route's 204 default.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(eks): lock tag writes and keep tags within the TagMap limits

The child retag methods now share their service's lock, so a tag write
racing a delete or disassociate can no longer restore the record it read.
TagResource checks the merged tags against the TagMap limits for every
resource type, and the tag operations answer the BadRequestException and
NotFoundException the model declares. A resource ARN with an empty
cluster or child segment is a bad request instead of a server error.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 16:46:44 -04:00
Oleksandr Nikolaichuk f55948cbcc fix(cloudformation): clear EC2 network tags and properties the new template drops (#7124)
A property the previous template declared and the new one drops is now
cleared on update for the EC2 network types: Tags on Subnet,
InternetGateway, RouteTable, NatGateway, EIP and PrefixList, and
MapPublicIpOnLaunch on Subnet, which goes back to false. A property the
stack never declared keeps what was set outside it. A failed update puts
the cleared tags and the flag back from the existing in-place snapshot.

Refs #6606
2026-10-31 16:46:29 -04:00
Andre Kurait ad9de3022a fix(sts): enforce SAML role duration limit (#7121) 2026-10-31 16:44:55 -04:00
Jimmy Liu Jia 87a733edea fix(servicecatalog): use injected clock for plan execution record (#7122) 2026-10-31 15:27:05 -04:00
Jackson Price d173d65eb4 fix(ec2): honor CopyImageTags on CopyImage (#7097)
* fix(ec2): tag an AMI with the tags RegisterImage is given

RegisterImage never read TagSpecification, so an AMI registered with
image tags came back from DescribeImages untagged: its tag filters
matched nothing and DescribeTags listed nothing for it. A tag
specification for another resource type was accepted as well, although
AWS fails that request.

RegisterImage now reads its image tag specifications and refuses any
other resource type with InvalidParameterValue. It checks the tags as
CreateTags does (no aws: prefix, the key and value lengths, at most 50
tags) before registering anything, so a refused request leaves no AMI
behind. The tags are stored before the AMI is, so DescribeImages never
lists it without them, and a key given twice keeps its last value, as
Floci's CreateTags keeps it.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(ec2): copy an AMI's tags when CopyImage sets CopyImageTags

CopyImage never read CopyImageTags, so a copy asked to carry its
source's tags came out untagged, and DescribeImages could not find it
by them.

With CopyImageTags=true the copy now gets the caller's tags on the
source, read in the source region, less the aws: system tags, which
AWS does not copy either. Without it, or with false, no tags are
copied, which is AWS's default. The source keeps its tags, and the
copy's are stored in the destination region only. The tags are read
under the source AMI's own id, so a catalog AMI's tags on that id are
copied too, while tags put on one of its aliases are not. Floci keeps
each account's tags apart, so another account's tags never reach the
copy.

CopyImage still neither checks nor applies TagSpecification, and the
docs now say so.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(ec2): stub the CopyImage overload the handler calls

Upstream's handler test for CopyImage tag specifications stubbed the
five-argument copyImage. On this branch the handler passes
CopyImageTags as well, so the stub never matched, the mock returned
null and the test failed with a NullPointerException. It now stubs the
six-argument call with CopyImageTags false, which is what a request
without it sends.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* refactor(ec2): leave RegisterImage tag specifications to upstream's handling

Upstream now reads RegisterImage's TagSpecification in the Query
handler, refuses other resource types and checks the tags before the
AMI is registered, so this branch's own path for the same thing is a
duplicate. The seven-argument registerImage overload and the tag code
in registerImageLocked are removed, and RegisterImage goes back to
upstream's code. CopyImage stores the tags it copies straight after it
registers the copy instead.

The branch's RegisterImage tests go too: upstream's
Ec2CreateTagSpecificationIntegrationTest and Ec2QueryHandlerTest cover
the same behaviour. What the branch adds is CopyImageTags alone.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(ec2): pin a TagSpecification tag over a copied tag of the same key

With CopyImageTags=true and an image TagSpecification on the same
request, the copy carries both sets. When both name the same key, the
TagSpecification value is the one the copy keeps, since the handler
applies the specification after the service copies the source's tags.
The docs row says so; this test holds it.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(ec2): refuse a CopyImage over the tag limit before creating the copy

With CopyImageTags=true and an image TagSpecification, the copied and
the specified tags were each checked against the 50-tag limit on their
own. The service then created the AMI and its snapshots and stored the
copied tags, and only the handler's CreateTags of the specification saw
the combined set: past 50 it answered TagLimitExceeded while the copy
it had just made stayed behind, so a retry under the same Name failed
with InvalidAMIName.Duplicate.

The handler now passes the requested image tags to the service, which
checks the union of copied and requested keys before it registers
anything. The upstream handler test stubs the new signature.

The docs and the test of a key given both ways now say that the
TagSpecification value winning is Floci's behaviour: the public
CopyImage reference does not say how AWS settles that.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* refactor(ec2): keep one CopyImage service signature

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-31 15:02:38 -04:00
Jackson Price dbb1ff6d89 fix(autoscaling): launch with the launch configuration's block devices (#7098)
* fix(autoscaling): launch with the launch configuration's block devices

Auto Scaling groups launching from a launch configuration passed none
of its block device mappings to the launch, so their instances got the
AMI's devices alone. They now pass them, with the configuration's
Boolean NoDevice converted to EC2's marker, and instance refresh
replacements get them too. A mapping the launch refuses, such as an
invalid device name, now fails the launch as a failed scaling activity.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(ec2): count volume store scans for a DescribeInstances response

The test for one volume read per DescribeInstances response counted
calls to instanceVolumeAttachments, so a scan moved inside that
helper's instance loop still passed it. It now counts scans of the
volume store for a three-instance response, which fail with three
scans both before the fix and with that loop.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(autoscaling): default launch configuration volumes to delete on termination

* test: share signed Query requests for launch block devices

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-10-31 15:00:18 -04:00
Aymen JAMAAOUI 2eb75ee686 fix(dynamodb): report WarmThroughput on each global secondary index (#7120) 2026-10-31 14:59:30 -04:00
Andre Kurait f74744dc5f fix(sts): enforce web identity role duration limit (#7119) 2026-10-31 14:59:02 -04:00
Jimmy Liu Jia 224c35830c fix(opensearch): add AWS-supported engine versions (#7117) 2026-10-31 14:55:03 -04:00
Allen Sanborn 9512de107f fix(rds): DescribeDBParameterGroups returns DBParameterGroupNotFound for an unknown name (#7066)
* fix(rds): DescribeDBParameterGroups returns DBParameterGroupNotFound for an unknown name

* refactor(rds): reuse getDbParameterGroup for the named DescribeDBParameterGroups lookup

The named branch built its own copy of the DBParameterGroupNotFound
exception. getDbParameterGroup does the same region-scoped lookup and
throws the same error, so call it instead. The test now also pins the
error message.
2026-10-31 14:53:13 -04:00
Andre Kurait b4cd98fb61 fix(ssm): preserve command exits and terminate timed-out process groups (#7093) 2026-10-31 14:08:37 -04:00
Hector Ventura b7e96c4be8 fix(kms): refuse a key or alias ARN that names another account (#7111)
A key or alias ARN naming another account resolved against the caller's own keys, so an alias ARN from account A, used by account B with an alias of the same name, answered with B's key. Floci does not evaluate key policies, so another account's key is never usable: answer NotFoundException with the ARN as given.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 14:05:56 -04:00
Hector Ventura 504c9d23bb fix(cognito): refuse a custom domain certificate from another partition or account (#7110)
requireUsableCertificate checked only the certificate ARN's service, region and resource. ACM finds a certificate by its id in the caller's own account, so an ARN naming another partition or another account was accepted as the caller's certificate. Both now get the same InvalidParameterException as any other unusable certificate.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 14:05:03 -04:00
Hector Ventura bc237ae980 fix(redshift): read ARNs with '!' in a secret name or ':' in an IAM path (#7112) 2026-10-31 14:03:19 -04:00
Hector Ventura d2f0455cd9 refactor: check an ARN's service, region and partition through one AwsArnUtils helper (#7109)
Step Functions and Route 53 Resolver each carried the same private check: an ARN of one service, in the request's region and that region's partition. AwsArnUtils.parseIfArnIn now holds it, and both services call it.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 14:01:41 -04:00