Commit Graph
2334 Commits
Author SHA1 Message Date
Priamo Germosen 6971626d82 fix(emr): give a step's command the sudo bootstrap actions have (#8415)
A step's script that ran sudo -u hadoop spark-submit ..., as a step
does on EMR, failed with exit code 127, as the image steps run in has
no sudo. The Release Guide's "Using HBase snapshots" runs a
command-runner.jar step of sudo -u hbase, and the Management Guide's
Kerberos users page a script-runner.jar script running sudo
kadmin.local. Only bootstrap actions had Floci's sudo, which went
before the image was kept.

Each step on a cluster now finds that same sudo first on its PATH,
written next to the hdfs and hadoop-streaming stand-ins the cluster's
Hadoop setup already writes there, and a Hive step's shell commands
find it too, written while its container is still root. It drops its
options, a long one's value given apart included, and runs the command
as the step's own hadoop user, so sudo -u hadoop runs as on EMR, while
a command that needs root fails as it would for hadoop. The script
moves to EmrServerlessSparkRunner, where the setup is, and the
bootstrap actions write it from there.
2026-11-14 23:19:12 -04:00
Priamo Germosen 2fa6deb0d8 fix(ec2): serve placement/availability-zone-id from instance metadata (#8405)
IMDS answered /latest/meta-data/placement/availability-zone but not
availability-zone-id, which AWS serves and scripts read to pick
zone-specific resources. It now returns the zone's ID, the same one
DescribeSubnets and DescribeAvailabilityZones report for that zone.
2026-11-14 23:16:43 -04:00
Priamo Germosen b18feb39d1 fix(s3tables): give each table a warehouse bucket and report its location (#8413)
GetTable and GetTableMetadataLocation never returned warehouseLocation,
which the S3 Tables model marks required, so Spark's S3TablesCatalog
had nowhere to write: CREATE TABLE failed with "Invalid S3 URI, cannot
determine scheme: null/metadata/00000-...metadata.json".

CreateTable now creates the table's warehouse, a bucket of its own named
like AWS's (<uuid>--table-s3), and both responses report it; a table
persisted before this gets one the first time it is read. An Iceberg
client writes the table's files there and commits with
UpdateTableMetadataLocation, which already existed. DeleteTable deletes
the warehouse with its contents, as deleting an S3 Tables table deletes
its data. GetTable also reports the required createdBy and modifiedBy.
2026-11-14 23:16:22 -04:00
Kenshin Okinaka 2cb54dad8f fix(ses): validate the SNS topic of an event destination (#8275) 2026-11-14 23:15:25 -04:00
Rashen Anupama e4d7061eff fix(appsync): make Cognito directive groups optional (#8381)
* fix(appsync): make Cognito directive groups optional
* chore(ci): retrigger pull request checks
* test(appsync): share Cognito authorization context setup
2026-11-14 23:10:28 -04:00
Priamo Germosen cc9b5bfee1 feat(athena): run Hive DDL against the Glue catalog (#8411)
Athena runs Hive DDL against the Glue Data Catalog, but Floci sent every
statement other than CREATE DATABASE to DuckDB: CREATE EXTERNAL TABLE,
ALTER TABLE ADD PARTITION, MSCK REPAIR TABLE and SHOW PARTITIONS failed
to parse, and DROP TABLE succeeded without touching Glue.

AthenaHiveDdl parses CREATE EXTERNAL TABLE (columns, PARTITIONED BY,
CLUSTERED BY, ROW FORMAT DELIMITED or SERDE, STORED AS, LOCATION,
TBLPROPERTIES, with the SerDe parameters and input/output formats Hive
stores), DROP TABLE, ALTER TABLE ADD/DROP PARTITION, MSCK REPAIR TABLE
and SHOW PARTITIONS; AthenaHiveDdlExecutor applies them to Glue as
Athena does: DROP TABLE keeps the data, MSCK only adds Hive-style
partitions, IF [NOT] EXISTS turns duplicates and misses into no-ops,
and SHOW PARTITIONS writes its rows as the query's result. A CREATE
TABLE without EXTERNAL fails unless it is Iceberg or CREATE TABLE AS,
which still go to the query engine. Mock mode keeps DDL result rows.
2026-11-14 23:05:16 -04:00
Priamo Germosen 7a682dcd00 fix(msk): report the broker's advertised hostname from GetBootstrapBrokers (#8404)
With Floci in a container and no bootstrap hostname configured,
GetBootstrapBrokers returned the broker container's IP, a bare address
where AWS returns broker hostnames. The broker's internal listener
already advertises <container-name>:9092, so a client that bootstrapped
from the IP was handed that name by the first Metadata response anyway.
GetBootstrapBrokers now returns <container-name>:9092.
2026-11-14 23:04:43 -04:00
Priamo Germosen 246d82ec57 fix(ec2): word an AMI and instance type architecture mismatch as RunInstances does (#8403)
RunInstances already refused an AMI whose architecture the instance type
cannot run, as AWS does, but said "The architecture 'x86_64' of the
specified image does not match the architecture supported by instance
type 'm6g.large'.". AWS names the instance type's architecture first:
"The architecture 'arm64' of the specified instance type does not match
the architecture 'x86_64' of the specified AMI."
2026-11-14 22:33:53 -04:00
Priamo Germosen b4fbe99123 fix(mwaa): run the triggerer and install requirements.txt before Airflow starts (#8398)
Deferrable tasks stayed deferred forever: the Airflow container ran only
the scheduler and the webserver. The bootstrap now runs `airflow
triggerer` beside the scheduler in a restart loop, as MWAA runs one for
Airflow 2.2 and later, and an environment is only AVAILABLE once
/health reports the triggerer healthy.

requirements.txt was never installed. It was installed by a docker exec
of `pip` after the container started, and in the apache/airflow image
`pip` resolves to /root/bin/pip, which the airflow user cannot read, so
the exec exited 126; the exec was also cut off after 30 seconds. The
file is now fetched at CreateEnvironment and installed by the container
bootstrap after the startup script and before Airflow starts, the order
AWS documents. One install script serves the bootstrap and the DAG-sync
reinstall: it sources the environment saved after the startup script,
runs `timeout 900 python -m pip install`, and records pip's exit code.
The first DAG-sync pass reinstalls only when that bootstrap install
failed. Reinstalls run on their own pool, one at a time per
environment, so a slow pip no longer holds up the DAG sync. Only a
missing requirements object leaves CreateEnvironment going; other S3
errors fail it, as they do for the startup script.
2026-11-14 22:20:33 -04:00
Priamo Germosen be6488b7ea fix(emr): remove the release images a newer pull replaces (#8395)
A cluster's release image is named after the ids of the two images it
is made of, so a newer pull of either makes another, and the older one
stayed on the Docker daemon for good. Each release image is now
labelled with its kind: its release, the names of the two images and
what is copied. Once Floci makes a newer image of a kind, it removes the
others of that kind, without force, so one a container still uses stays
until the next newer one. Another kind (with or without Hive, or other
image names) is never touched, and an image made before the label is
left as it is.

Images of one kind are made one at a time, the two names resolved to
ids under that kind's lock, so one made of the older images never comes
after the newer one to remove it. A step or a bootstrap holds the image
it was given until it ends, as it may have no container of it yet, and
a held image is not removed either. A failure to remove one is logged
with its exception; the new image is there, so it fails nothing.
2026-11-14 22:20:04 -04:00
Priamo Germosen fb3c93018e fix(mwaa): accept every Airflow 2.x version Amazon MWAA offers (#8394)
The default supported-versions list held 2.10.5, 2.9.3 and 2.8.4, none
of which real MWAA offers, so a CreateEnvironment with an AirflowVersion
AWS accepts (2.9.2, 2.10.3, 2.11.0 and the rest) failed validation.

Add 2.7.2, 2.8.1, 2.9.2, 2.10.1, 2.10.3, 2.11.0 and 2.11.2 to the
default list and keep the three versions Floci already offered. With
2.7.2 offered, the CLI proxy refuses "providers notifications" below
Airflow 2.8, as AWS's CLI reference lists it from v2.8 only.
2026-11-14 22:19:45 -04:00
luiseterc 4c7f057072 fix(secretsmanager): resolve stored resource tags for IAM conditions (#8359)
* fix(secretsmanager): resolve stored resource tags for IAM conditions
* fix(secretsmanager): read secret tags through the generated resource-tag keys
2026-11-14 21:33:20 -04:00
XuJian 68f5510ce8 feat(cognito): send signup confirmation links for CONFIRM_WITH_LINK (#7660)
SignUp and ResendConfirmationCode use EmailMessageByLink and
EmailSubjectByLink when DefaultEmailOption is CONFIRM_WITH_LINK, and
replace {##link text##} with a link to /cognito-idp/confirmUser, or to
/confirmUser on a custom domain. Opening the link confirms the user.
Password reset, attribute verification, sign-in codes and SMS stay on
the code template.

The link is built only when that email places it in the body, so code
and SMS deliveries never scan the stored domains. A shared-host
confirmUser request carries no AWS credential, so it confirms in the
account that owns the client id, while a custom domain keeps the
account it pins.

Cognito HTML escaping goes through one helper, CognitoHtml, and the
tests read another account's SES mail through SesMailbox, signed with
EnforcementFixtures.auth.

Closes #5662
2026-11-14 21:19:54 -04:00
Jackson PriceandAndre Kurait c5ac8e8ad0 feat(cloudwatch): support alarm action controls (#8383)
EnableAlarmActions and DisableAlarmActions now work over the Query and
JSON APIs. They change only whether an alarm's actions run, keeping its
state and configuration. AlarmNames is required, up to 100 names of 1 to
255 characters, and the whole list is validated before any alarm
changes. The evaluator reads the alarm's current setting before it
dispatches, so a disabled alarm sends nothing.

SDK, validation, notification and IAM tests cover both operations, and
the alarm action, composite alarm, DescribeAlarms filter and alarm
history tests share CloudWatchTestRequests for their Query and JSON
requests.

Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 21:13:43 -04:00
Jackson PriceandAndre Kurait 029f6d1a61 fix(cloudfront): route origin access control updates through config (#8382)
UpdateOriginAccessControl was routed without the /config suffix, so the
SDK's PUT /2020-05-31/origin-access-control/{Id}/config answered 405
before reaching configuration validation. It now takes that route,
authorized through the generated CloudFront metadata.

SDK and IAM integration tests cover the configuration readback, a missing
If-Match, a scoped grant and another control's denial, encoded
identifiers and misleading action hints, and share
CloudFrontOriginAccessControlFixtures for the configuration and the
ETag-aware delete.

Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 21:03:04 -04:00
Vũ Thế Huy 2d85e4ea3b feat(redshift): restore a single table from a snapshot (#8290)
Add RestoreTableFromClusterSnapshot and DescribeTableRestoreStatus for
provisioned clusters, and RestoreTableFromSnapshot, GetTableRestoreStatus
and ListTableRestoreStatus for Redshift Serverless. The table's CREATE TABLE
statement and rows are lifted out of the snapshot dump, renamed, and
replayed in one transaction. The restore runs inside the request, so a
described request is already SUCCEEDED or FAILED.

The name checks, script, pending copy, replay and status of a table restore
live once in RedshiftTableRestorer, and both services keep only their
lookups and storage. ListTableRestoreStatus answers a bad nextToken with
InvalidPaginationException. A Docker backed integration test writes rows,
snapshots, restores under a new name and reads them back, connecting through
RedshiftConnections, and the Redshift compatibility tests share one
TestFixtures.awaitRedshiftConnection.

Closes #7806
2026-11-14 20:43:18 -04:00
Priamo Germosen d65e76b7ea fix(emr-serverless): hold an emr-spark release's BATCH timeout to 7 days (#8390)
From release 7.11.0 a BATCH run's executionTimeoutMinutes is 1 to 10080,
"from this release onwards" as its release notes say, but Floci only
read emr-x.y labels, so an application on the AWS runtime for Apache
Spark (emr-spark-8.0.0 and on, emr-spark-8.0-preview) took 0 and
anything up to 1,000,000. The release list puts those releases after
EMR Serverless 7.14.0, so their BATCH runs are now held to the same
1 to 10080 minutes; a STREAMING run keeps 0 as no timeout.
2026-11-14 20:25:48 -04:00
Priamo Germosen ddb6680704 fix(iam): refuse a resource value that is no string on the way in (#8375)
The values a statement's resource elements name were gathered from the entries
that were already text, so "Resource": 123 and "Resource": [123] were stored
while "Resource": "123" was refused with Resource 123 must be in ARN format or
"*". One text, two answers, depending on whether it was written in quotes. A
value that is no string names the text of that value now, which is how the
Version and the Effect are already read, so both spellings of the same text are
refused alike. An element carrying null still names nothing, which is the
element's own sentence rather than a value to check.

The policy grammar writes a resource as a <resource_string>, and AWS reports a
value whose JSON type is not the expected one as an error of its own,
DATA_TYPE_MISMATCH, "The text does not match the expected JSON data type". The
two other clauses that can carry a non-string are recorded: a Version of
20121017 and an Effect of true are each refused with that clause's own sentence
rather than read past.

The second half is which sentence that effect clause gets. A statement
declaring an effect the language does not define was answered The policy failed
legacy parsing whichever write was handed the document, where the inline
validator words it that way and the managed one Syntax errors in policy, both
recorded. The sentence follows the validator that read it now, so CreatePolicy
and CreatePolicyVersion answer the managed wording while PutUserPolicy,
PutGroupPolicy and PutRolePolicy keep theirs.

No code and no status moves: every refusal here is MalformedPolicyDocument at
400, as it was. The version and resource sentences are worded alike by both
validators and stay that way, and condition values are not read by either.
2026-11-14 19:59:20 -04:00
Priamo Germosen 15a632e446 feat(codeartifact): support the cargo (crates.io) registry format (#8370)
CodeArtifact's Rust/Cargo repositories had no native support at all: no sidecar,
no wire protocol, no external connection. Adds it following the same shape as
the existing Maven/npm/pypi/NuGet container-backed formats.

KellnrSidecarManager/KellnrSidecarClient run a real Kellnr container per
cargo-enabled repository and speak its native HTTP API for publish, download,
and the sparse index. CodeArtifactCargoController implements the real `cargo`
sparse-registry wire protocol (publish, download, sparse index lookup,
config.json) and forwards Kellnr's own publish rejections (e.g. republishing an
existing version, which the Cargo Book documents as permanently disallowed)
verbatim rather than swallowing them into an opaque error.

Adds the `public:crates-io` external connection via CargoExternalConnectionClient
(real index.crates.io/static.crates.io wire calls) and
CodeArtifactCargoExternalConnectionImporter, reusing the existing
claim/fence/retention-origin machinery the same way NuGet's own importer does.
Cargo's sparse index covers every version of a crate name in one file and a
real cargo client always consults it first, so unlike the other formats'
importers this one also merges real upstream-only version lines into the local
index response (mergeExternalVersions), a read-only proxy step with no
retention write of its own, so an upstream-only crate is actually visible to a
client's dependency resolution before anything is retained.

Fixes against the live Kellnr/crates.io protocols found while addressing
review: KellnrSidecarClient now implements listPackages (its absence made
every ListPackages call 500 once cargo joined the container-backed formats);
sparse-index bucket paths are lowercased per the Cargo Book's own spec
(crates.io's own index is case-sensitive about this even though a crate's
real name isn't); the admin account behind Kellnr's internal publish token is
given a fresh random password per container rather than Kellnr's own shared
default; a stale cached publish token (e.g. after a silent container restart)
is retried once rather than 401ing forever; both publish-body parsing and the
external sparse-index fetch are now bounded against an oversized allocation;
a renamed dependency's alias and real name are mapped correctly between the
index and publish shapes, and features2/links/rust_version now survive a
retained crate's synthesized metadata; the Kellnr image is pinned to the
exact version this was built and tested against rather than a floating major
tag.

Known gaps, called out in docs/services/codeartifact.md: no repository-to-repository
upstream importer yet for cargo (every other native format already has one), and
no yank/owner/search routes.
2026-11-14 19:51:17 -04:00
Priamo Germosen 1b14d10b1f fix(secretsmanager): check Secrets Manager requests from the generated request resources (#8365)
Secrets Manager was built by hand in ResourceArnBuilder. It now moves out of
HAND_BUILT into NAMESPACES, so every operation's resources come from
iam-request-resources.json, and the hand builder and the enforcement filter's
routing to it are gone.

The six characters Secrets Manager mints after a secret's name come from
botocore, which documents CreateSecret's Name: "Secrets Manager automatically
adds a hyphen and six random characters after the secret name at the end of
the ARN". A new rule records them as mintedSuffixes ("-??????") and has the
create name the secret it makes by Name. The reader appends them open to a
secret Secrets Manager does not hold. An ARN given for a secret, a partial
one included, is checked on the ARN of the secret the operations read it as,
alone: SecretsManagerService resolves it through resolveStoredArn to the
caller's secret in the ARN's Region, else to the one the ARN's account holds
under that full ARN, reading only.

ARNs the table renders, and the resource a create makes that its tags are
checked on, take the request's partition for every namespace, as the
Secrets Manager builder did, so a Region Floci does not know keeps the
partition of the request.
2026-11-14 19:50:46 -04:00
soreavis 6de963848b fix(config): check requests against the modeled constraints (#8363)
The Config handler read each member with asText, asInt or path and
checked only some of them by hand, so an empty or over-long Arn on the
two recorder Describe calls answered
NoSuchConfigurationRecorderException, and an empty ResourceArn on the
three tag operations was accepted, as was an over-long one that isn't
a Config resource's ARN.

tools/aws/regen_config_shapes.py now vendors every Config operation's
request constraints from botocore, kept in sync by make aws-data-check,
and RequestConstraintCheck checks each served operation's request
before it runs. A violation is a ValidationException, which the model
documents for missing required fields and input that fails validation,
and a Limit out of range answers the InvalidLimitException its
operation models.

The hand-written checks the table covers are gone, putConfigRule's
included: ConfigCfnProvisioner now checks the rule it builds as a
PutConfigRule request before storing it, so a template property outside
the constraints fails the resource. A rule without a ConfigRuleName
keeps its InvalidParameterValueException, since the model doesn't
require the member.

The loop that drops blob and timestamp members moves into
request_shapes as drop_blob_and_timestamp_members, used by both the
Config and Kinesis generators. Both vendored files are unchanged.
2026-11-14 19:35:00 -04:00
luiseterc 16745c3804 fix(ec2): resolve interface identity for tag authorization (#8352)
* fix(ec2): resolve interface identity for tag authorization
* fix(ec2): read resource condition keys through the generated table
* fix(ec2): look up a tag batch's interfaces in one pass
2026-11-14 18:42:23 -04:00
Oleksandr Nikolaichuk 4de81e8370 fix(cloudformation): keep an ECS service's desired count when an update leaves it out (#8279)
An AWS::ECS::Service update that left DesiredCount out set the service
back to 1. AWS omits it from the update ("For existing services, if a
desired count is not specified, it is omitted from the operation"), so a
count set through UpdateService now stays. A new service without it
still starts at 1, and a rollback puts the count back only when the
update sent one.
2026-11-14 17:46:51 -04:00
Jackson PriceandAndre Kurait da23f42d11 fix(cloudformation): delete published Lambda versions with their stacks (#8371)
An AWS::Lambda::Version resource reported its deletion but left the
version published. CloudFormation now deletes the version through
Lambda's qualified DeleteFunction when the stack is deleted, the
resource leaves the template, or its creation rolls back, unless its
DeletionPolicy retains it. $LATEST and other versions stay, an
already-missing version counts as deleted, and an alias still pointing
at the version fails the delete until it is removed. A placeholder,
unqualified or alias identity is never turned into a whole-function
delete.

The SDK regressions use the shared CfnStackWaits, now with an SDK
deleteStack that follows the stack id, and AwsSdkErrors for their error
checks.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 17:30:23 -04:00
Priamo Germosen d5e831bd54 fix(emr-serverless): answer UpdateApplication with the updated application (#8369)
UpdateApplication answered {applicationId, arn, name}, while the model's
UpdateApplicationResponse is {application}, required: "Information about
the updated application". A client reading it found no application: a
KeyError in boto3, a null in the Java SDK. It now answers with the
application as GetApplication reports it, without the clientToken
storage keeps for CreateApplication's retries.
2026-11-14 17:22:54 -04:00
Niels Kootstra 0a8b6396ac test(ssm): check CreateAssociation on the document it runs (#8230)
Under IAM enforcement, CreateAssociation is checked on the document its
Name gives as well as the association it makes, which the generated
request-resource table has done since #8203. An enforcement test now
shows a user allowed on one document can associate it and is refused
for another, and a request-resource test shows a shared document given
by its ARN is checked on that ARN. The SSM docs note the check.
2026-11-14 17:22:41 -04:00
Priamo Germosen 6305250206 fix(ecs): check ECS requests on the resources they name, from the generated request resources (#8341)
ECS was not read by the request-resources generator, so under IAM enforcement
every ECS request was checked on *: a grant scoped to a cluster, service or
task definition was refused, and a deny scoped to one never applied. ecs now
moves into NAMESPACES, and where the rules misread it the rule is fixed:

- a member whose documentation spells a type of two variables as its format
  does ("(family:revision)" for a task definition) is found by its service,
  each element of a list, rather than read as an ARN alone;
- a member documented as naming its service's default when left out ("If you
  do not specify a cluster, the default cluster is assumed") names it
  (defaults), rather than naming nothing;
- a member documented as a name or an ARN of another type, in either order or
  naming the type before them, reads that type's ARN (arnOf), as a pattern
  taking one does;
- a list element's id field beside an enum field holding the target's type,
  whose one value is the action's type, fills that type's last variable
  (PutAttributes' attributes[].targetId).

The reader fills a defaults member from the default the service gives, finds
each value of one list member, and names a resource given by its own full ARN
for a type of several variables too, also giving the variable that ARN's value
beside the request's other members, as a handler may read either. EcsService
answers the lookups, reading only: the revision a reference the table finds
resolves to, and the default cluster. It now mints a service's deployments
and revisions under the service, as AWS does.

The ECS task arms of Step Functions now take the action from
IamAuthorizedActions and the resources from RequestResources.ofBody, as the
EMR arm does, so a service, cluster or task definition ECS does not have is
checked on the ARN the request names, as the direct call is.
2026-11-14 16:01:34 -04:00
Priamo Germosen e286aef015 fix(codeartifact): resolve upstreams in AWS's order, through their external connections (#8356)
Three ways a read through upstream repositories differed from the User
Guide:

- Upstreams were searched breadth-first. "If an upstream repository has
  its own upstream repositories, the same logic is used to find a package
  version before moving to the next upstream repository": the guide's
  own example, my_repo with upstreams A and B, A with C and D and D with
  E, is searched my_repo, A, C, D, E, B. The walk is depth-first in each
  repository's listed order now.
- A version an upstream had itself retained named that upstream as its
  origin, and one the upstream got from public:npmjs came back INTERNAL.
  A version's DomainEntryPoint is where it "originally entered" the
  domain, so a retained version now carries its upstream's own entry
  point: the external connection, EXTERNAL, or the repository it was
  published to, however many upstreams it came through. It is read
  again when the version's claim is confirmed, so a copy made while the
  upstream's own fetch is still finishing gets that fetch's connection.
- An upstream's external connection was never consulted, so a version no
  upstream had fetched yet was a 404. AWS fetches it through the
  upstream's connection and retains it there and in the repository the
  request was made to. A miss at every upstream now tries the external
  connections of the upstreams in the same order, for npm, Maven, PyPI
  and NuGet, and a packument, Simple index or maven-metadata.xml read
  through such an upstream offers what its connection has. That fetch
  skips a version Archived or Disposed at the upstream, or here in the
  Simple index, reads this repository's fences before it starts, so a
  deletion during it is not undone, and passes on an npm client's ask
  for the full packument. The four formats share it in
  UpstreamExternalConnectionFetch.
2026-11-14 15:42:29 -04:00
Jimmy Liu Jia 045ecc4eeb fix(ec2): keep guest port 80 available with IMDS (#8225)
The in-guest IMDS relay listened on 169.254.169.254:80, so Apache and
other wildcard port-80 listeners could not start in an EC2 guest. The
relay now listens on its own port, 42169, and an iptables or nft NAT
rule routes local link-local port-80 traffic to it. The guest's own nft
rules are kept, and only Floci's relay rule is added or removed. With no
working NAT backend, the older port-80 listener keeps IMDS available.

A protected instance's restart retires a retained older listener before
the workload starts, and a failed start rolls back the IMDS registration
it made. The network helper image now includes iptables.

Closes #7937
2026-11-14 15:23:23 -04:00
Priamo Germosen 63607e899d fix(codeartifact): give every domain its root package group /* (#8355)
The User Guide: "Every domain in CodeArtifact automatically contains a
root package group", /*, which "can be modified, but cannot be deleted".
CreateDomain created no group, so on a fresh domain ListPackageGroups was
empty, DescribePackageGroup and GetAssociatedPackageGroup answered
ResourceNotFoundException for /*, a package no group reached had no group
at all, and DeletePackageGroup /* succeeded on a group a caller had made.

CreateDomain creates the root with the domain now. Its description is
"Default root package group" and each of its restrictions is ALLOW, as
recorded against AWS, so a group under it inherits from it rather than
from nothing. CreatePackageGroup /* is refused as the group it is, and
DeletePackageGroup /* with ValidationException "The root package group,
'/*', cannot be deleted.", AWS's own sentence. A domain stored before
this gets its root once storage is loaded at startup.
2026-11-14 15:20:00 -04:00
Priamo Germosen c99d8ee5ea fix(emr): list each instance fleet's InstanceTypeSpecifications (#8354)
ListInstanceFleets wrote no InstanceTypeSpecifications: the fleet kept
only the names of the instance types it was created with. The Terraform
AWS provider reads instance_type_configs back from that member, a
ForceNew set in both aws_emr_cluster and aws_emr_instance_fleet, so a
fleet cluster read back empty after apply and every later plan replaced
it.

A fleet keeps the InstanceTypeConfigs it was given, from RunJobFlow and
AddInstanceFleet, and ListInstanceFleets returns each as the
InstanceTypeSpecification it describes: its type, bid price, custom AMI,
priority and configurations as given, a WeightedCapacity of 1 where it
sets none and a BidPriceAsPercentageOfOnDemandPrice of 100 where it sets
neither bid price, the defaults the API reference gives for both, and its
EbsConfiguration as one EbsBlockDevice per volume. The reference names no
devices, so they are /dev/sdb, /dev/sdc and on. A fleet stored before
this has its instance types alone, with the same defaults.
2026-11-14 15:19:19 -04:00
Priamo Germosen 7981cadc7c fix(emr): keep a cancelled running step's place until its driver is gone (#8351)
CancelSteps on a RUNNING step stopped its driver and started the next
PENDING step at once, but stopping a driver only asks for it: with a
step concurrency level of 1 the next step's driver could start beside
the cancelled one's. The Management Guide's "Cancel steps": "Canceling
a running step does not allow a pending step to start running, assuming
no change to stepConcurrencyLevel", and CancelSteps "is idempotent but
asynchronous".

In the docker runner mode a cancelled RUNNING step is now CANCEL_PENDING
while its driver stops, with the guide's step event for that state ("was
cancelled at Time and is pending cancellation", WARN), and keeps its
place among the running steps. Once its driver is gone, however it
ended, the step is CANCELLED, takes no ActionOnFailure, and the next
PENDING step starts. A second cancel answers SUBMITTED. A driver Floci's
own teardown stops leaves the step CANCEL_PENDING, as it leaves a
RUNNING one, and a restart cancels it, in either runner mode;
TerminateJobFlows cancels it at once. Until it is gone it also counts as
running for a failed step's CANCEL_AND_WAIT. In the immediate mode
nothing runs, so a cancelled step is still CANCELLED at once.
2026-11-14 15:18:49 -04:00
Priamo Germosen bbcc58f03b fix(iam): read a policy value that is no string as naming nothing (#8313)
An action, a resource and a principal are written as strings: the policy grammar
spells each one out, as an <action_string>, a <resource_string> and a
<principal_id_string>. The evaluator read an element that was no string as
naming no value when it stood on its own and as the text of that value when it
sat in a list, so "Resource": 123 named no resource while "Resource": [123]
named the pattern 123.

A list is read like the bare element now, and an entry that is no string names
nothing. It tells where the element carves an exception out, since a statement
matches on whichever of the two elements it names: a NotAction or a NotResource
whose only entry was a number excluded that one text and so covered every action
or every resource there is, which made an Allow a grant over everything and a
Deny a refusal of everything. Naming no value leaves the statement matching
neither.

Condition values keep the reading they had. The grammar's JSON rules say
quotation marks "are optional for numeric and Boolean values", a lone number or
boolean was read as the text of the value already, and a list of them is read
that way still, so the two readings sit under names that say which is which.

Naming no value is a shape the access report had to learn as well.
deniesEveryRequest read a Deny that names no resource as one that bites on
every request, where matchesResource reads the same statement as matching
nothing, so an allow-everything beside a Deny whose Resource carries only a
number took the service off the Organizations access report although every
request still reached it. The report reads a statement the way the decision
does now: a Deny covers every request only when its Resource names *.
2026-11-14 15:18:10 -04:00
soreavis 66bec3b89b fix(ec2): keep IPAM pool and allocation tags (#8158) 2026-11-14 15:16:29 -04:00
Priamo Germosen 9cd601fea9 fix(iam): read a trust policy the same on every path that assumes the role (#8346)
AssumeRolePolicyEvaluator refuses a trust policy with a statement that
names no valid Effect, or whose Condition is not an object of non-empty
operator objects: IAM refuses such a document when it is written, and
Floci stores it as given, so the whole document is refused when it is
read. The two federated evaluators read the same stored document another
way. WebIdentityTrustPolicyEvaluator defaulted a missing Effect to Allow
and SAMLTrustPolicyEvaluator allowed on anything that was not a Deny, so
a statement naming a federated principal and no effect let
AssumeRoleWithWebIdentity and AssumeRoleWithSAML assume a role that
AssumeRole refused. An Effect spelled "allow" or "Permit" granted the
same way, and an empty Condition, or one whose operator was empty, was
read as no condition at all.

The reading moves into TrustPolicyStatements, and all three evaluators
use it, so one stored trust policy answers the same on each path: a
document carrying such a statement lets no one assume the role.
2026-11-14 15:13:28 -04:00
Priamo Germosen 0816789e30 feat(cloudformation): provision AWS::ElasticLoadBalancingV2::ListenerCertificate (#8353)
CDK's ApplicationListener.addCertificates puts the first certificate on
the listener and emits one ListenerCertificate for each extra one. Floci
had no provisioner for the type, so it was stubbed as CREATE_COMPLETE and
did nothing; since the default certificate is held apart from the
listener's certificate list, such a listener came up with an empty list
and served none of its SNI certificates.

ElbV2CfnProvisioner serves the type now. Create adds the declared
certificates to the listener's list, as AddListenerCertificates does, and
delete removes the ones the resource added, recorded per physical id
because the id alone cannot carry them. Certificates updates in place, as
the resource reference says: the certificates the template gains are
added, then the ones it drops removed, and a failed update puts both back.
ListenerArn is create-only, so a change replaces the resource: the
certificates go onto the new listener, and come off the old one once the
update commits.

CloudFormation publishes no format for the resource's identifier, so Ref
returns <ListenerArn>|<suffix>.

AWS's published resource schemas have moved since the vendored tables
were last synced: AWS::Lambda::Function gained AcceleratorConfig and
RuntimeConfig, and AWS::ECS::TaskDefinition TrustedExecutionConfiguration.
That fails the online check of those tables, which this change runs, so
cfn-property-types.json and schema-surface.tsv are synced from AWS here,
and the three new properties are recorded as accepted and ignored.
2026-11-14 15:02:33 -04:00
mrfelek acd884a739 fix(eks): keep a cluster's API server port when its container is recreated (#8343)
* fix(eks): keep a cluster's API server port when its container is recreated
* fix(eks): leave a network-mode endpoint's port out of the restored port
* fix(eks): free an unadoptable survivor's port first, and tell a taken port from an error
2026-11-14 14:56:51 -04:00
luiseterc 259a0737e7 fix(eks): populate cluster request IAM conditions (#8336)
* fix(eks): populate cluster request IAM conditions
* fix(eks): read cluster conditions through the generated table and refuse mistyped flags
2026-11-14 14:21:48 -04:00
Priamo Germosen aa2adac677 fix(iam): look the user up before the service name on a credential request (#8314)
CreateServiceSpecificCredential resolved the service name first, so a request
that named a user who does not exist and a service that is not supported was
answered for the service. AWS answers for the user: a recording validated
against a real account asks for a credential as a user that was never created,
once with CodeCommit and once with a service name nothing supports, and both
come back NoSuchEntity with "The user with name <name> cannot be found."

The user is confirmed before the service name is read now, under the lock it was
already taken under. ListServiceSpecificCredentials had the same shape, with its
ServiceName filter resolved ahead of the user it lists for, and reads the two the
same way round. Under AllUsers there is no user to look up, so an unsupported
filter still answers for itself.

What the bounds of CredentialAgeDays say is settled ahead of both by the
constraints every request is held to, so only the question that needs the service
is left behind it: whether this service takes the member at all. The in-operation
bounds stay where they are as the backstop they became.
2026-11-14 13:44:43 -04:00
luiseterc a138f88094 fix(iam): resolve EC2 network resources and ownership tags (#8288)
EC2 network operations with resource-scoped policies were checked against
`*`, and stored ownership conditions were missing. Every EC2 request is
now read by the generated request-resource rules, its EC2 Query list
names from botocore, so a resource-scoped policy applies to each EC2
operation whose request names a resource. A list a type's ARN variable
names is the request's targets only when the request names nothing
else, and the sg-, acl-, rtb- and eni- id prefixes come from botocore's
examples.

Each target is evaluated with its own stored tags, under every EC2
type's Service Reference resource-tag keys, and tags on creation are
authorized separately. A forged SDK spelling cannot replace an EC2 wire
value. ENI creation tags are kept in the regional tag index and stay in
sync with CreateTags and DeleteTags.

Closes #8286
Closes #8287
Closes #8291
Closes #8295
Closes #8300
Closes #8306
2026-11-14 13:38:41 -04:00
Aniket Shukla 4649d6c683 fix(ecs): stop siblings when an essential container exits (#8321) 2026-11-14 13:33:40 -04:00
Vũ Thế Huy d08c241d98 feat(redshift): scheduled actions that pause and resume provisioned clusters (#8260) 2026-11-14 13:28:06 -04:00
Jackson PriceandAndre Kurait 5df26c5135 fix(s3): preserve configured endpoint roots (#8323)
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 12:47:02 -04:00
Priamo Germosen f665d5f5e7 feat(emr-serverless): update a started application's capacity and images (#8316)
UpdateApplication now takes a STARTED application's maximumCapacity and
custom images (imageConfiguration, workerTypeSpecifications), as the
User Guide's "Updating Running Applications" describes: "You can update
key application configurations such as maximum capacity, and custom
image settings - without stopping and restarting the application."
Every other setting still needs a CREATED or STOPPED application, as the
API reference's "An application has to be in a stopped or created state
in order to be updated" says, and an image change on an application with
initial capacity is refused: "Custom image updates on running
applications are not supported on applications with pre-initialized
capacity configured."

A run already going keeps the image and maximum capacity it was launched
with, and a new run, or a new attempt of one, takes the application's
current ones, as each run already reads them when it is launched.
2026-11-14 12:44:35 -04:00
Priamo Germosen 97fcbf21d0 fix(stepfunctions): check EMR Serverless tasks as the same request made directly (#8322)
The EMR Serverless task arm wrote its action ("emr-serverless:" plus the API
name) and its ARNs (/applications/<id>, /jobruns/<id>) by hand, and skipped
the checks a direct request gets beside its own action: iam:PassRole on
StartJobRun's execution role, and emr-serverless:TagResource on the tags
CreateApplication and StartJobRun send.

A new RequestChecks reads a JSON request as the enforcement filter reads the
same request made directly: the action from IamAuthorizedActions, its
resources from RequestResources.ofBody, the request's tags on the action where
the tag-on-create table says it takes them, iam:PassRole on each role the
passed-roles table reads with iam:PassedToService, and the tagging action on
what a create makes. PassedRoles, TagOnCreate and RequestResources.created
gain a body form for it. The arm now hands RequestChecks the request the
integration sends EMR Serverless, so a regeneration of any of those tables
moves the task and the direct call together.
2026-11-14 12:42:27 -04:00
luiseterc e2712cf344 fix(route53): populate record change IAM conditions (#8297)
* fix(route53): populate record change IAM conditions
* fix(route53): align DNS identity and preserve XML validation errors
* fix(route53): read record change conditions from the generated table
2026-11-14 12:13:47 -04:00
Aniket Shukla d5b7a11f89 feat(appsync): execute HTTP data sources and signed local AWS requests (#7609) 2026-11-14 12:07:22 -04:00
Jackson PriceandAndre Kurait c97f913f5e fix(ssm): normalize names across parameter operations (#8278)
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 11:44:37 -04:00
Yang Hao 3e4d867de3 fix(account): check alternate contact requests against the model (#8312) 2026-11-14 11:29:06 -04:00
Jackson PriceandAndre Kurait ae62fe04bc fix(ec2): keep security group rule description updates consistent (#8277)
Signed-off-by: Akash Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 11:21:20 -04:00