Commit Graph
4176 Commits
Author SHA1 Message Date
TATSUNO “Taz” Yasuhiro 07d75c8c8e fix(dynamodb): check BatchGetItem and BatchWriteItem table names, list sizes and enums before the tables (#7650) 2026-11-06 09:37:11 -04:00
Daniël van Ziel c1a88b8ab8 feat(bedrock-agentcore): keep runtime endpoint create tags and support tagging them (#7597) 2026-11-06 09:31:50 -04:00
Oleksandr Nikolaichuk 0cb45a86df fix(cloudformation): keep NAT gateway secondary addresses the stack never declared (#7669)
* fix(cloudformation): keep NAT gateway secondary addresses the stack never declared

* test(cloudformation): keep NAT gateway secondary addresses the stack never declared

* fix(cloudformation): a null NAT gateway secondary property counts as not declared

* test(cloudformation): a null NAT gateway secondary property counts as not declared
2026-11-06 09:28:00 -04:00
jwoa95 f8670f64fb feat(quicksight): add metadata APIs and limited registered-user embedding (#7529)
Closes #7522

Origin comparisons preserved host casing and default ports, CSP named only the immediate parent, and expired sessions remained in storage indefinitely. Normalize both sides of origin checks, allow all configured ancestors, and reap expired sessions across accounts with the shared sweep worker.
2026-11-06 09:11:30 -04:00
luiseterc 5058163409 fix(route53): resolve private SRV records with stored values (#7587) 2026-11-06 09:08:09 -04:00
Niels Kootstra 44565360e2 fix(secretsmanager): keep a version written under the rotation token during the test step (#7663) 2026-11-06 09:02:26 -04:00
luiseterc c3058a8de4 fix(iam): generate resource and request tag condition context (#7589) 2026-11-06 09:02:14 -04:00
TATSUNO “Taz” Yasuhiro cf4b3f0e82 perf(core): read the SigV4 credential scope without regular expressions (#7658)
* perf(core): read the SigV4 credential scope without regular expressions

Every request ran its Authorization header through regular expressions
five to eight times to read the access key, the region and the signing
service. The account id check String.matches("\\d{12}") also compiled a
new pattern twice per request.

SigV4CredentialScope, RegionResolver and AccountResolver now read the
common header shape with indexOf. Any other shape still goes through the
same regular expressions, so every result stays the same. The account id
check is a plain loop.

* perf(core): read the access key by hand and skip the regexes without a credential
2026-11-06 08:56:43 -04:00
Jimmy Liu Jia 7f43385349 fix(rdsdata): escape PostgreSQL question-mark operators (#7632) 2026-11-06 08:55:58 -04:00
Vũ Thế Huy 576646aae7 fix(redshift): run COPY ETL options on PostgreSQL 15 across protocols (#7514) 2026-11-06 08:50:21 -04:00
Charles Swanberg a0b39a4ad0 fix(cloudformation): name an https ResponseURL for a custom resource when TLS is on (#6993) 2026-11-06 08:44:43 -04:00
Hector Ventura b1ba11c61e feat(stepfunctions): evaluate the execution role on SNS and EventBridge tasks (#7622) 2026-11-06 08:34:39 -04:00
Jackson Price cdcb79a832 fix(codepipeline): synchronize action abandonment with registration (#7634)
StopPipelineExecution traversed the action list while a worker could append
to it under the execution monitor. Use the same monitor for abandonment
so a concurrent registration cannot invalidate the traversal.

Add a deterministic public-handler regression that registers an action
while the stop waits and verifies that only in-progress actions are abandoned.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-06 08:30:39 -04:00
Niels Kootstra bcbd7c8d9d fix(secretsmanager): stage an AWSPENDING version for the test step of a rotation that is not immediate (#7642) 2026-11-05 16:45:19 -04:00
ShryukGrandhi 13d6dd18d4 fix(elbv2): serve and restore load balancers outside the default account (#7620)
A listener port carries no credentials, so the data plane read target
groups, load balancers and listeners as the default account and answered
502 for any other account. Read them as the account in the listener ARN.

Startup ran outside a request too, so only the default account's indexes,
listeners and health monitors came back. Rebuild the indexes from every
account and restore each stored account as itself.

Signed-off-by: ShryukGrandhi <85529990+ShryukGrandhi@users.noreply.github.com>
2026-11-05 16:38:40 -04:00
TATSUNO “Taz” Yasuhiro 221d25a4cd chore: reuse the shared SigV4 URI encoder and signing key helpers (#7635)
Five classes had their own copy of the SigV4 URI encoder, and three had their own copy of the signing key derivation and HMAC-SHA256. They now call SigV4Canonicalization.uriEncode and SigV4RequestValidator. The S3 list response encoding for encoding-type=url also uses the shared encoder instead of URLEncoder and three replacements.
2026-11-05 16:36:37 -04:00
Oleksandr Nikolaichuk fd29b4aa32 test(cloudformation): record and ratchet what a dropped property does (#7599) 2026-11-05 16:21:36 -04:00
Jackson PriceandAndre Kurait a884257311 fix(appconfig): isolate resources and sessions by region (#7621)
Scope AppConfig stores, sessions and deployment cursors to the request's
account and region. Keep legacy keys in the configured default region.
Adapt the source change to current deployment and CloudFormation behavior,
and cover storage reloads and SDK routing.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-05 16:13:12 -04:00
Aniket Shukla 36fbc33a2f fix(stepfunctions): scope callbacks and workers to execution region (#7633) 2026-11-05 15:48:46 -04:00
TATSUNO “Taz” Yasuhiro 0c33083803 perf(sns): find a topic's subscriptions without copying every subscription key (#7631)
* perf(sns): find a topic's subscriptions without copying every subscription key

* perf(sns): match a topic's subscription keys without copying each one
2026-11-05 15:42:48 -04:00
Andre Kurait d34c8443cd fix(ec2): return modeled authentication error envelopes (#7613) 2026-11-05 15:36:40 -04:00
Jimmy Liu Jia f2debe4ce0 fix(cloudformation): preserve KMS key spec and usage on create (#7612)
* fix(cloudformation): preserve KMS key spec and usage on create

* fix(cloudformation): delegate KMS key defaults to service
2026-11-05 15:30:24 -04:00
Vũ Thế Huy de71d91d8c feat(redshift): add COPY JOB create, list, show, alter and drop (#7465)
A job stores the parameters of a COPY from S3 in the cluster database, and sys_copy_job lists it with AWS's columns. The checks AWS documents are made when the job is created: an S3 source, an explicit IAM_ROLE, no manifest, access keys, MAXERROR or IGNOREALLERRORS, no hyphen in the name, no transaction block, at most 200 jobs. COPY JOB RUN is refused until files can be loaded automatically.
2026-11-05 15:11:51 -04:00
Jimmy Liu Jia e9378bb71a fix(core): avoid Podman host-gateway aliases in container builder (#7572)
* fix(core): avoid Podman host-gateway aliases in container builder

* fix(core): share host alias parsing and log probe failures

* refactor(lambda): reuse builder host alias guard and test fixture

* fix(docker): register version response for native image
2026-11-05 14:08:44 -04:00
jibin-jusdb a613d7b0c3 fix(ec2): let only the latest service-network lookup publish its address (#7583)
StartInstances keeps the container, so the container check alone let a lookup started before a stop overwrite the address learned after the next start. Each lookup now takes a sequence number under the instance lock and publishes only while it is still the latest for the instance.

fix(ec2): drop service-network lookup state when an instance terminates

The lookup sequence and retry marker were cleared only when a launch failed, so every instance terminated normally kept an entry for the life of the process. terminate now clears both under the instance lock, and a lookup that runs once the instance is shutting down or terminated starts nothing and records nothing.

test(ec2): share the paused service-network lookup between the race tests

The replacement, stop-and-start and teardown tests each built the same paused lookup by hand: two latches, an inspect that blocks on its first call, and a virtual-thread lookup joined after the release. PausedLookup holds that setup once.

Closes #7582
2026-11-05 13:58:32 -04:00
Matheus Oliveira e42f97df08 fix(ec2): implement filters for DescribeVpcEndpointServices (#7261)
- Add support for owner, service-name, service-region, service-type,
  supported-ip-address-types, tag:key, and tag-key filters
- Build service details with all properties for filtering
- Validate filter names before iterating services
- Return InvalidFilter (HTTP 400) for unknown filter names
- Keep requested service names unchanged
- Preserve S3 gateway service in China partition
- Validate service-name filter values, reject regex metacharacters
- Use AWS error message wording for unsupported filter values
- Use Ec2Service.requireSupportedFilters for filter name validation
- Reuse Ec2Service.wildcardMatches for wildcard matching
- Integration tests for all filter types
- Cover unknown filter name, '[' and 's3+' values, and refusal after an
  earlier filter empties the candidate set

Closes #6958

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-11-05 13:56:26 -04:00
Andre Kurait f719d6af56 fix(ecr): validate lifecycle policy documents before mutation (#7611) 2026-11-05 13:54:02 -04:00
Abhigya 2c49f5ecb5 fix(core): share URI rewrite workaround with Lambda and Cognito (#7610) 2026-11-05 13:40:59 -04:00
galsuchetzky-act 918ce95b53 fix(cloudformation): list a service-managed stack set's targets and tags in DescribeStackSet (#7242)
AWS returns a stack set's tags and the recorded root and OU deployment targets of a service-managed stack set. Read the same saved targets that ListStackSetAutoDeploymentTargets reports.

Replace the tag map on UpdateStackSet instead of clearing and refilling a map that a concurrent DescribeStackSet may be reading. Copy the request's tags so the published map is independent of later request changes.

Cover both response members, an update interleaved with tag iteration, and request-map isolation with regression tests.

Use the shared account-scoped InMemoryStorageFactory for the added regression tests instead of a private factory copy.
2026-11-05 13:38:13 -04:00
Aymen JAMAAOUI 5bcb83b932 fix(iam): check Redshift requests on the resources they name (#7287)
Under IAM enforcement, Redshift requests were checked on `*`, so a
grant scoped to a cluster, a snapshot or a database user was refused,
and a deny scoped to one never applied.

The redshift namespace moves from NOT_COVERED to NAMESPACES in the
request resources generator, with corrections where the generated rule
checks the wrong resource. GetClusterCredentials now also gives the
redshift:DbUser condition key, from a new generated table, to its own
check and to the CreateClusterUser check that AutoCreate adds.

Refs #5907

fix(redshift): act only on a snapshot of the cluster the request names

A snapshot request is checked on snapshot:<cluster>/<name> for the
cluster it names, but DeleteClusterSnapshot, RestoreFromClusterSnapshot
and DescribeClusterSnapshots found the snapshot by its name alone. A
caller allowed on one cluster's snapshots could act on a snapshot of
another cluster by naming the allowed one.

A snapshot taken from another cluster than the one the request names,
in SnapshotClusterIdentifier, the cluster of a SnapshotArn, or
DescribeClusterSnapshots' ClusterIdentifier, is now not found.

Refs #5907

chore(iam): generate the Lambda Web and Redshift condition keys into one table

chore(redshift): read a restore's snapshot ARN once
2026-11-05 11:57:59 -04:00
TATSUNO “Taz” Yasuhiro ddfc63f6b6 fix(dynamodb): use the older check order and wording for an UpdateItem without Key or nested too deep (#7608) 2026-11-05 11:56:52 -04:00
Arshad bc9f7b518d fix(sqs): return InvalidAddress for Query requests on a /queue/{region}/ path (#7578) 2026-11-05 11:55:05 -04:00
Hector Ventura bd65477927 feat(stepfunctions): evaluate the execution role on SQS tasks (#7574)
* feat(stepfunctions): evaluate the execution role on SQS tasks

Under IAM enforcement an SQS task now requires the execution role to exist
and trust Step Functions, assumes the role its Credentials name, and checks
sqs:SendMessage on the queue as the role it ends up with. LambdaTaskAuthorizer
gains a general authorize() that later integrations map onto through
TaskPermissions; it reads any service's resource policy and accepts resource
* and an S3 ARN's empty account. Lambda, API Gateway and nested tasks keep
their own paths and errors.

TaskScheduled and LambdaFunctionScheduled record taskCredentials when a task
declares Credentials. With enforcement off they are read softly, so a RoleArn
that does not resolve is omitted and the task still runs.

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

* fix(stepfunctions): let a queue's policy decide SQS task and direct calls

SQS had no resource policy provider, so a task's call to a queue in another account could never be granted. Add one reading the queue's Policy attribute, which IAM enforcement and the task authorizer both read, and build a direct request's ARN from the account its QueueUrl names so the right queue's policy is read.

Credentials read only for history now tolerate only a resolution failure, and the Step Functions integration tests share one client.

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

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-05 09:50:01 -06:00
jwoa95 4b09c3cf2b feat(ecs): support stop-first replacement on stable published ports (#7539)
With an explicit zero minimum, drain stale REPLICA tasks whose fixed
published ports conflict with a replacement. Wait for background Docker
cleanup to confirm removal before placing the replacement, including
port-owning security-group helpers.

Keep task protection and failed-deployment guards, remove helpers outside
the firewall monitor, and revoke task credentials even when cleanup fails.

Closes #7523

Centralize fixed host-port selection in EcsContainerManager and use it from both container publishers and scheduler conflict detection. Preserve existing bridge, host, and awsvpc publication behavior.

Validation: 179 focused ECS and firewall tests passed.
2026-11-05 11:21:16 -04:00
Suja Shaj 1a44e7215d fix(ec2): give back the VPC network leases of a NAT gateway's addresses (#7581)
An address the subnet picks for a NAT gateway takes a lease on the VPC
network, and DeleteNatGateway never gave it back, so once the gateway was
gone automatic allocation skipped that address. Secondary addresses leaked
the same way, on delete and when an update dropped them.

DeleteNatGateway now gives back the lease of every address the gateway
holds. It reads the gateway once, under the allocation lock, and gives
nothing back for a gateway stored as deleted, whose addresses an earlier
delete already gave back. A secondary-address update gives back the lease
of each dropped secondary, except one the same update names again in a new
slot. Every place in Ec2Service that gives leases back now goes through
one releasePrivateIps helper.

In Ec2ServiceTest, a MockedNetworkFixture replaces the setup the
mocked-network tests repeated, and the older tests that built that setup
by hand use it too.
2026-11-05 08:13:46 -06:00
Jackson Price 56eedbece5 fix(elbv2): reconcile security settings on listener protocol changes (#7598)
* fix(elbv2): reconcile security settings on listener protocol changes

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

* test(elbv2): assign unique protocol transition test order

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

* test(elbv2): align protocol transition CI fixtures

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

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-11-05 08:13:33 -06:00
TATSUNO “Taz” Yasuhiro 85f5da654c chore: format bytes as hex with HexFormat (#7592) 2026-11-05 08:07:45 -06:00
Aniket Shukla ca854a4194 feat(eventbridge): deliver AppSync mutation targets (#7488) 2026-11-05 04:58:24 -04:00
KrishmalX 50aef92124 fix(lambda): include Lambda MicroVM resources (#7352) 2026-11-05 04:57:31 -04:00
Abhigya a15dfb621e fix(core): work around double decoding on routed hosts (#7559) 2026-11-05 04:55:16 -04:00
Mario Toffia a19b296f06 fix(cloudformation): store stack policies and return them (#7552)
* fix(cloudformation): store stack policies and return them

* test(cloudformation): remove the stack policy test bucket after use

* fix(cloudformation): apply a stack policy with its stack operation

UpdateStack now stores its policy when the update commits, before UPDATE_COMPLETE is published, and CreateStack when execution starts. A policy-only update no longer leaves its change set FAILED. SetStackPolicy checks the stack state again under the stack lock after reading a StackPolicyURL.

* fix(cloudformation): apply a creation policy when the create is claimed

* fix(cloudformation): keep a rejected policy-only update executable

* fix(cloudformation): assign a stack policy when its change set is created

* test(cloudformation): stop the stack policy test's executor

* test(cloudformation): round-trip stack policies through persistent storage

* test(cloudformation): build the stack policy requests on CfnRequests

* test(cloudformation): construct CloudFormationService through one shared fixture

* fix(cloudformation): refuse a missing or malformed StackName in the stack policy actions

SetStackPolicy and GetStackPolicy looked a missing StackName up as the
stack named "null". Both now validate StackName first, as AWS does,
with the checks ContinueUpdateRollback already applies.
2026-11-05 04:43:20 -04:00
Jackson Price cf25c9f6db fix(elbv2): default omitted HTTPS listener SSL policies (#7579)
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-11-05 04:41:17 -04:00
Jackson Price 375c1d54dd fix(elbv2): omit absent listener SSL policies (#7571) 2026-11-05 00:10:15 -04:00
Priamo Germosen 3a64d2b761 feat(emr): give each docker cluster a real HDFS on its primary node (#7496)
Every EMR cluster runs HDFS: its primary node "also runs the HDFS
NameNode service". In the docker runner mode a cluster's HDFS was a
folder of its /mnt volume behind a view of the hdfs scheme, so an
hdfs:// path naming a host was not served, hadoop fs -ls / failed, and
Hive, which looks up the encryption zone of any hdfs:// path, reached it
under viewfs, where a table at an hdfs:// location failed. Each cluster
now runs a NameNode and a DataNode.

- EmrClusterStorage starts them in a container of their own, from the
  release's EMR Serverless Hive image, which has HDFS's daemons where
  the release's image has only the client. It runs as root only to add
  the primary node's name to its hosts file and give its data volume to
  the hadoop user, then runs both daemons as that user, with one copy of
  each block and permissions off, and makes /tmp and /user/hadoop once
  the DataNode has joined. The data is in a volume of its own, so the
  first container to mount the cluster's /mnt volume is still a step's,
  which fills it with what the bootstrap actions left there. It is on a
  Docker network of the cluster's own, which only the cluster's steps
  join besides theirs, as its HDFS serves its files to any client that
  reaches it, so another cluster's steps, another account's too, do not.
- The AWS runtime for Apache Spark's releases, emr-spark-8.0.0 on,
  publish no Hive image, so their clusters run HDFS from emr-7.5.0's.
  Hadoop keeps its client-server protocols compatible across a major
  version's minor releases, so their newer client reaches its NameNode.
- A step's thread starts it after the cluster's volumes, from the id
  its image's pull, when it is missing, resolves, and waits up to two
  minutes from then, the
  NameNode on its port its own, the DataNode joined and the NameNode out
  of safe mode, as the NameNode's JMX says; a step that comes while
  it starts waits, and one that finds it running uses it. A failure
  fails the step ("The step could not start: ..."), and one whose
  container Docker cannot tell the state of leaves it as it is.
- The daemons log their warnings and errors to the container's output.
- When either daemon exits, the container ends and its readiness goes,
  so the next step starts it again on the data its volume keeps; one
  that finds it about to stop starts it again once.
- Steps reach it by the primary instance's PrivateDnsName, as
  ListInstances gives it, on port 8020: their containers resolve that
  name to the HDFS container's address, and fs.defaultFS names it, so
  hdfs:// paths without a host and paths without a scheme lead there.
  ListInstances numbers the MASTER group's instance first, so the name
  holds while other groups resize.
  In a namespace the steps share, the host's or another container's,
  which the HDFS container joins too, they reach it on its loopback, and
  its daemons listen there only, so no other interface serves its files,
  which any client could change; one cluster's HDFS runs there at a
  time, another's refused while it does. One a process with another
  docker-network left running, in another namespace than the steps', is
  started again in theirs on its data. With none, steps have no network,
  so the cluster runs no HDFS.
- Hadoop's local job runner copies a job's -files to
  /tmp/hadoop/mapred/staging on the local file system, then looks for
  them at that path of the default file system, as JobResourceUploader
  drops the folder's scheme. So in the hadoop command's configuration,
  which a custom JAR's MapReduce in the driver reads too, the hdfs
  scheme is a view of the cluster's HDFS in which that one folder is
  the container's own. Spark and Hive keep HDFS's own client, as Hive
  casts an hdfs:// file system to it to look up its encryption zone,
  so a Spark step writes a Hive table in HDFS too.
- A reset or a shutdown removes the HDFS containers this process
  started, found running or kept from an earlier process, after the
  drivers that use them are stopped, and a step or a bootstrap handed to
  its thread before it, however it then ends, starts no HDFS, driver or
  successor after it but is left as one whose driver was stopped, and
  none is handed to a thread until the reset is over; a container Docker
  refuses to remove stays known for the next; a cluster's next step
  starts its HDFS again on the data its volume keeps. The container and
  its network go with the cluster's storage, and the startup sweep
  removes those of clusters that are gone or have ended.

Every cluster now needs a Hive image, so the documentation of
image-template and hive-image-template says a mirror sets both.

The Docker-gated tests now cover a Hive table at an hdfs:// location, a
bootstrap action's file in /mnt, a structured streaming query keeping
its checkpoints in HDFS, a Spark step writing a Hive table there, hadoop
fs -ls /, and a DataNode that exits, after which the next step reads an
earlier step's file. The CI prefetch queues the Hive image for
EmrDockerRunnerDockerIntegrationTest's shard too.
2026-11-04 21:50:36 -06:00
TATSUNO “Taz” Yasuhiro a5291ca192 perf(sns): log each captured push and SMS at debug level (#7569)
* perf(sns): log each captured push and SMS at debug level

* chore(test): check that pushes and SMS log below INFO
2026-11-04 23:08:12 -04:00
Arshad 8fa33c710b fix(sqs): route requests posted to queue URL paths to SQS as AWS does (#7525)
SqsQueueUrlRouterFilter only matched /{account}/{queue}, so SQS requests posted to the queue path with a trailing slash or to a /queue/{region}/ prefixed path fell through to the S3 object handler and failed with InvalidArgument. Like AWS, route JSON requests on either form, since they name the queue in QueueUrl, and route Query requests only on /{account}/{queue}, with or without a trailing slash. Never reroute S3 object POSTs, which always carry uploads, uploadId, restore or select.

Closes #7521
2026-11-04 23:03:49 -04:00
Maxence Frenette f7cf6fef6e feat(redshift): support Redshift UNLOAD to Parquet (#7548)
* feat(redshift): support UNLOAD to Parquet

* refactor(redshift): share internal S3 scratch plumbing

* fix(redshift): warn when UNLOAD staging cleanup fails
2026-11-04 22:53:38 -04:00
TATSUNO “Taz” Yasuhiro 189521e5cc chore: hash MD5 with the shared Digests helper (#7570) 2026-11-04 22:52:59 -04:00
Jimmy Liu Jia 35b496124e fix(lambda): omit unsupported Podman host gateway mapping (#7564) 2026-11-04 22:44:34 -04:00
Ronald Li 🛠️ d280f451fa fix(cloudformation): roll back an AWS::EC2::SecurityGroup updated in place (#7562) 2026-11-04 22:37:06 -04:00