Commit Graph
3853 Commits
Author SHA1 Message Date
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
Vũ Thế Huy 3f53b2685d feat(elasticache): apply a changed access string to open sessions (#7101)
* feat(elasticache): apply a changed access string to open sessions

ModifyUser with AccessString or AppendAccessString was installed on the backend only at the user's next authentication, so a connection that was already open kept its old permissions. The service now asks the proxy of every replication group that holds the user to install the new rules on the backend user the open sessions run as, through a short administrator connection. Nothing is sent before the backend is set up or for a user nobody has authenticated as, and an access string with a selector is refused as it is at login.

* fix(elasticache): propagate live ACL updates to serverless and evaluate rules under lock
2026-10-31 13:35:56 -04:00
Vũ Thế Huy 4d99aa9639 feat(eventbridge): authorize the role of Redshift Data API targets (#7095) 2026-10-31 13:23:50 -04:00
Allen Sanborn e3cdb72171 fix(ec2): set the link-local IMDS endpoint up again when an instance starts (#6873) 2026-10-31 13:21:38 -04:00
Rashen Anupama 7569a9a8ec fix(cloudformation): transform SAM layer versions (#7062)
* fix(cloudformation): transform SAM layer versions

Map packaged layer content to Lambda layers, retain version-specific resource identities, and preserve references and retention behavior. Cover publication, replacement and deletion through CloudFormation.

* fix(cloudformation): preserve typed and inherited SAM layer references

Rewrite captured Globals references, retain typed list references for provisioning, and restrict dependency rewriting to resource attributes. Cover each case in unit regressions and stack creation/update.

* fix(cloudformation): keep Fn::Sub overlay variables out of parameter substitution

A variable map localizes names for the template engine, so resolving a
same-named stack parameter first consumed the placeholder and left the map
dead: Key: !Sub ['${Key}', {Key: 'layer.zip'}] published the parameter's
value instead of the layer package the author named.

* refactor(cloudformation): fold SAM logical-id hashing into one helper

The layer-version and function-version generated ids serialized their hash
input the same way - properties sorted, non-ASCII escaped, DEL escaped, then
the first ten hex digits of the SHA-1 - but as two copies. Extract samHashSuffix
so a generated id is its subject plus one shared suffix. Ids are unchanged.

* fix(cloudformation): deploy SAM layers from original content expressions

The transform resolved ContentUri parameters before copying them onto the
generated AWS::Lambda::LayerVersion, so a parameter value that itself held
a ${...} was published inside a Fn::Sub and CloudFormation substituted it a
second time at deploy. Deploy the bucket and key expressions as written and
let the template engine resolve them once; keep the resolved copy only as
the hash input, so a versioned package still yields a distinct logical id.

* fix(cloudformation): keep Fn::Sub local variables out of layer rewrites

The recursive layer-reference walk re-entered an Fn::Sub node through the
blanket children loop, so it treated a variable map as another expression.
With a local variable literally named Ref whose value was a layer's logical
id, the walk rewrote that literal into the generated id and changed what the
stack deployed. Rewrite only the map's values as intrinsic contexts and skip
the already-handled Fn::Sub node in the walk.

* fix(lambda): read a layer's pinned S3 object version

A SAM layer with a packaged ContentUri.Version, or an
AWS::Lambda::LayerVersion whose Content sets S3ObjectVersion, publishes that
pinned package, but the provisioner fetched the object with a null version
and so read the latest one. If the key changed after publishing, the layer
ended up with different code than the template requested. Pass
S3ObjectVersion through to the S3 read so a pinned package stays pinned.

* fix(cloudformation): resolve a whole ContentUri reference before splitting it

Keeping the original ContentUri expressions on the generated layer means a
ContentUri that is itself a parameter reference arrives as a Ref object with
no Bucket or Key, and the transform rejected the stack. Resolve such a
reference to the location it names and split that, while the object form
keeps its expressions for the template engine to resolve at deploy.
2026-10-31 13:20:11 -04:00
Jimmy Liu Jia 9e0bc1b43b test(servicecatalog): use an advanceable clock for termination records (#7102) 2026-10-31 13:15:32 -04:00
Jimmy Liu Jia 25b0f234f9 fix(transfer): omit pagination token on final page (#7081) 2026-10-31 13:13:29 -04:00
Mario Toffia 7cf516a14d fix(cloudformation): honor retained resources on stack deletion (#6723)
* fix(cloudformation): honor retained resources on stack deletion

* test(cloudformation): assert the unretained sibling bucket is removed

* fix(cloudformation): skip every retained resource, whatever its status

A DELETE_FAILED stack can hold a CREATE_FAILED resource that the delete
never touches, because floci only deletes a failed resource it owns for
rollback. Naming it in RetainResources was accepted but left it
CREATE_FAILED with no DELETE_SKIPPED event. AWS reports every retained
resource DELETE_SKIPPED, so the retain check now runs before the
deletability guard.

* test(cloudformation): build the retain integration test on the shared CFN helpers

Use CfnStackWaits.awaitStatus, which also fails at once on another
terminal status, instead of a private poll, and CfnRequests.cfn for the
Query requests.
2026-10-31 12:15:25 -04:00
Vinícius Ribeiro f0a1b11385 fix(cloudformation): keep SMS_MFA on a user pool update until MFA is turned off (#7088)
* fix(cloudformation): keep SMS_MFA on a user pool update until MFA is turned off

The AWS::Cognito::UserPool reference says that once SMS_MFA is enabled, only
MfaConfiguration OFF turns it off. An update that stopped listing SMS_MFA in
EnabledMfas cleared it. replaceUserPoolMfaConfig now keeps the pool's SMS
setting when none is given and the mode is not OFF.

Closes #7086

* fix(cognito): keep SMS MFA with the pool's current SMS settings

Keeping SMS MFA replayed the settings it was enabled with, so an update that
dropped SMS_MFA and changed SmsAuthenticationMessage or SmsConfiguration put
the old values back over the ones updateUserPool had just applied. The kept
SMS MFA now takes the pool's current message and SMS configuration.
2026-10-31 11:52:52 -04:00
TATSUNO “Taz” Yasuhiro 3acebc90fe fix(s3): leave a null delete marker when deleting from a suspended bucket (#7092) 2026-10-31 11:52:41 -04:00
Vũ Thế Huy dd423ee161 feat(redshift): copy cluster snapshots into the configured destination region (#7058)
* feat(redshift): copy cluster snapshots into the configured destination region

EnableSnapshotCopy used to only record the destination on the cluster. A background sweep now copies each available snapshot taken after copy was enabled into a per-Region copy store, with its own dump file, retention and KMS key from the copy grant. Describe, delete, restore and tagging use the copy when the request's Region has one.

* fix(redshift): harden snapshot copy expiry, rollback and same-region enable

Expiry re-reads the copy under the lock so a replaced copy is not deleted. A failed flush undoes the copy record and the source mark before the dump is removed. A sweep re-checks that copy is still enabled to the destination. EnableSnapshotCopy refuses the cluster's own Region, and CreateClusterSnapshot refuses an identifier a copy already holds in that Region.

* fix(redshift): harden snapshot copy and share the sweep scheduler base and dump copier

Snapshot copy: keep a retained copy when a source snapshot is recreated under the same name, flush the copy before marking the source, only apply the cluster's copy retention to copies of the same cluster generation, recheck the copy settings under the snapshot lock before each copy, and leave shadowed sources out of DescribeTags.

Refactor: the five SweepWorker scheduler wrappers now extend SweepScheduler, and both services copy dumps through SnapshotDumpCopier.

* docs(redshift): note the hybrid storage limit of snapshot copy

Hybrid storage does not report a failed flush, so a crash can leave a source snapshot marked as copied without its copy. Persistent and WAL storage report the failure before the source is marked.
2026-10-31 11:34:57 -04:00
Matheus OliveiraandPriamo Germosen f21b371c43 fix(msk): default EncryptionInTransit clientBroker to TLS (#7054)
CreateCluster that omit EncryptionInfo or clientBroker described
TLS_PLAINTEXT, but the MSK API and CloudFormation schema both name the
default as TLS. An explicitly supplied value still echoes as shipped.

Closes #6968

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-31 11:31:27 -04:00
Priamo Germosen 264513650c feat(emr): apply a cluster's spark-env and spark-hive-site to its steps (#7047)
In the docker runner mode a step's spark-submit got the spark-defaults
of the cluster's Configurations, and nothing else from them. The
Release Guide's other two Spark classifications that change what a job
does were ignored:

- spark-env "Sets values in the spark-env.sh file", through its nested
  export classification ("If any classification ends in env, use the
  export sub-classification"). It is how a cluster picks the Python
  PySpark runs (PYSPARK_PYTHON) or the JVM (JAVA_HOME). Its exports are
  now the step container's environment variables, replacing any of
  Floci's own with the same name. The image's spark-env.sh only
  defaults PYSPARK_PYTHON, PYSPARK_DRIVER_PYTHON, SPARK_HOME and
  HADOOP_CONF_DIR, so the exports win there.
- spark-hive-site "Sets values in the hive-site.xml for Spark", as the
  Management Guide uses it to put Spark's tables in the Glue Data
  Catalog (hive.metastore.client.factory.class). Its properties now
  reach spark-submit as spark.hadoop. settings, which Spark's Hive
  client reads as it would hive-site.xml; a spark.hadoop. setting in
  spark-defaults wins over them, as it would over hive-site.xml.

SparkJobRunner.Job carries the environment, which an EMR Serverless run
leaves empty. The exports are set as given, with no shell expansion,
and a command or script step sees them too; emr.md says so.

Separately, the pattern EcrRegistryManager reads an ECR image's Region
with, which EMR Serverless checks an application's custom image
against, now names the hosts it takes: AwsPartitions.dnsSuffixRegex()
for AWS's, as AWS_ECR_URI does, and localhost or localhost.floci.io
with a port for the repositoryUri Floci's ECR hands out. It took any
host after the Region before, so an image on a registry that only
looks like ECR's (<account>.dkr.ecr.<region>.registry.internal/...)
was refused for being in another Region.
2026-10-31 10:27:25 -05:00
Priamo Germosen bfd3bcbbce fix(athena): read and check a request naming no catalog as AwsDataCatalog (#7061)
Athena's GetDataCatalog, ListDatabases, ListTableMetadata and
GetTableMetadata handlers read the catalog name with has() and
asText(), so a JSON null became a catalog named `null`: GetDataCatalog
then answered InvalidRequestException rather than the AwsDataCatalog
it answers for a request naming none. They now read it through the
handler's text(), as GetWorkGroup and StartQueryExecution read
WorkGroup, so a JSON null names no catalog.

Under IAM enforcement, a GetDataCatalog naming no catalog was checked
on `*` though Floci answers AwsDataCatalog, so a grant on that catalog
was refused and a deny on it did not apply, and the three catalog
reads given a JSON null CatalogName were checked on `datacatalog/null`
as well as on AwsDataCatalog. The request-resources table now reads a
request naming none, or a JSON null, as naming AwsDataCatalog for all
four, as it reads Athena's primary workgroup.

The table's regeneration also takes up drift in AWS's Service
Reference since the last sync, which the online check of both IAM
tables fails on: AWS now lists cognito-idp:DescribeTermsByClient among
the actions it authorizes DescribeTermsByClient as, so the
authorized-actions map no longer maps it to DescribeTerms and the
request-resources table checks it as its own action, and the map
gains MediaConnect's new BatchGetDestinationEndpoint and
BatchGetSourceEndpoint. Floci serves none of these operations.
2026-10-31 10:27:14 -05:00
Kenshin Okinaka f40d784f66 fix(ses): check PutEmailIdentityDkimSigningAttributes against the SES v2 shapes (#7084)
A SigningAttributes member that is not a JSON object answered a
Floci-only BadRequestException. The operation now runs the shared
SES v2 shape check first, so a member of the wrong JSON type is a
SerializationException with AWS's deserializer message, ahead of the
origin check and the identity lookup, as AWS answers it. A missing
identity now answers AWS's "The specified email identity, <id>, does
not exist."
2026-10-31 11:19:49 -04:00
Oleksandr Nikolaichuk 5e9df931e3 fix(cloudformation): clear an AppSync property the new template drops on update (#6995)
* fix(cloudformation): clear an AppSync property the new template drops on update

An update whose template drops a property the previous template declared now clears it on the five AppSync types, and one the stack never declared keeps the value set outside it. ProvisionContext.droppedProperties names the dropped properties.

* test(cloudformation): move the AppSync removal case into AppSyncCfnIntegrationTest

The case reuses the class's helpers, now built on CfnRequests.cfn, instead of a second copy. Documents the AppSync update rule next to the AWS::NoValue section.
2026-10-31 10:22:30 -04:00
TATSUNO “Taz” Yasuhiro 32a47daee0 feat(lambda-web): move a revision to Failed once its code is gone (#7065) 2026-10-31 10:11:21 -04:00
Allen Sanborn 3b4a2ec14d fix(ec2): propagate transit gateway attachments to the default propagation route table (#7060)
* fix(ec2): propagate transit gateway attachments to the default propagation route table

* refactor(ec2): build transit gateway route table propagations in one helper

The default-propagation path in storeNewAttachment and
enableTransitGatewayRouteTablePropagation built the same propagation
record field for field. Both now call storePropagation.

* test(ec2): assert the resource id of a default-created propagation

The create-site VPC id argument to the propagation helper was not checked
by any test; only the resource type was.
2026-10-31 10:07:01 -04:00
Jimmy Liu Jia b3dad93daf fix(appconfigdata): consume configuration tokens only once (#7082) 2026-10-31 10:05:25 -04:00
Aniket Shukla 65b0881954 fix(cloudformation): preserve SES receipt rule update order (#7071)
* fix(cloudformation): preserve SES receipt rule update order

* fix(cloudformation): preserve unknown legacy SES anchors

* fix(cloudformation): simplify legacy SES rule ordering
2026-10-31 10:02:50 -04:00
Allen Sanborn 759b6d1f4b fix(ec2): apply DescribeIpamPools filters (#7039)
* fix(ec2): apply DescribeIpamPools filters

* fix(ec2): resolve DescribeIpamPools scope filters from the pool owner's IPAM

- ipam-scope-type, ipam-scope-arn, ipam-arn and ipam-region now resolve the
  scope through the pool's own IPAM across account partitions, so a
  RAM-shared pool described by id matches them.
- pool-depth stops at a deleted ancestor instead of failing the request
  with InvalidIpamPoolId.NotFound; an orphaned pool counts as top-level.
- The scope lookup runs only for filters that need it, once per scope per
  request, so pool-field filters no longer scan the IPAM store.

* fix(ec2): log the tolerated NotFound in IPAM pool scope and depth lookups

AGENTS.md requires a tolerated exception to be logged. Both catches can
only see InvalidIpamId.NotFound / InvalidIpamPoolId.NotFound (create
rejects a blank source id), so they stay unnarrowed and log at debug.

* refactor(ec2): reuse Ec2Service.matchesTagFilter for IPAM pool tag filters

matchesTagFilter holds no instance state, so make it static and
package-private and let matchesPoolFilter call it instead of repeating
the tag:<key> / tag-key branch. The shared helper also treats a null tag
list as no tags, so a pool restored with tags=null no longer fails
DescribeIpamPools with a NullPointerException.
2026-10-31 10:00:34 -04:00
Andre Kurait 01ecd4f8da fix(codeartifact): clear managed Reposilite state after teardown (#7078)
Clear managed endpoint and token state only after strict container removal succeeds. Retain ownership on failure for cleanup retry and preserve external endpoints.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-31 08:45:33 -04:00
Vũ Thế Huy 0de2b7fdd8 fix(redshift): discard the final snapshot when DeleteCluster fails (#7072)
* fix(redshift): discard the final snapshot when DeleteCluster fails

DeleteCluster took the final snapshot before tearing the cluster down. When the teardown then failed, the cluster survived but the snapshot stayed behind, so retrying with the same FinalClusterSnapshotIdentifier failed with ClusterSnapshotAlreadyExists. Remove the snapshot when the cluster is still present after a failed removal.

* fix(redshift): keep the final snapshot once container teardown has started

The cleanup added for failed DeleteCluster also ran when containerManager.stop threw. That call removes the container and its volumes before closing the log stream, so a late failure leaves the cluster record behind with the database already gone, and the cleanup then deleted the only remaining copy. Limit the cleanup to the proxy-stop failure, which happens before anything is torn down, and cover both the kept-snapshot and the suppressed-cleanup-failure paths.
2026-10-31 08:45:26 -04:00
Andre Kurait 3d0fbad532 fix(apigateway): keep execute-api independent of IoT enablement (#7076)
Resolve the shared signing scope to API Gateway when no explicit service route owns the request. Preserve IoT route ownership and custom-domain authentication across existing invocation paths.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-31 05:47:24 -04:00
Aniket Shukla 7f785fdc4c feat(route53): support reusable delegation sets (#7020)
* feat(route53): add reusable delegation set APIs

* feat(route53): associate reusable delegation sets with hosted zones

* fix(route53): preserve delegation ownership and assignments

* fix(route53): authorize delegation set operations by matched route

* fix(route53): filter hosted zones by reusable delegation set

* fix(iam): select REST XML denials from the service catalog

* perf(test): reuse Route53 IAM enforcement fixtures
2026-10-31 05:36:44 -04:00
TATSUNO “Taz” Yasuhiro a2e12ee004 fix(dynamodb): refuse a PartiQL statement that is one term as DynamoDB does (#7068) 2026-10-31 05:33:47 -04:00
Suja Shaj dcf8ec7430 fix(ec2): report NAT gateways as zonal and honor PrivateIpAddress (#7059)
* fix(ec2): report NAT gateways as zonal and honor PrivateIpAddress

The Terraform AWS provider reads network_interface_id, private_ip and
public_ip from a NAT gateway only when it is reported with
availabilityMode zonal. Floci never sent availabilityMode, so all three
stayed null. Every gateway Floci creates sits in one subnet, so the
responses now say zonal.

Floci has no regional NAT gateways. A regional request that named only
its VPC failed on the missing subnet, and one that also named a subnet
got a zonal gateway, through both CreateNatGateway and
AWS::EC2::NatGateway. Both now refuse AvailabilityMode regional with
UnsupportedOperation. Any other value except zonal, such as Regional,
fails with InvalidParameterValue instead of creating a zonal gateway.

Once Terraform reads private_ip back, the gateway has to hold the
address it was asked for. private_ip forces a new gateway, and
CreateNatGateway ignored PrivateIpAddress, so a config that set it
would plan a replacement on every run. CreateNatGateway and
AWS::EC2::NatGateway now give the gateway's interface the requested
address, checked by the same rules as RunInstances: inside the subnet,
not reserved and not in use. A changed PrivateIpAddress replaces the
CloudFormation resource, as it is createOnly. A gateway has its primary
address only, so SecondaryAllocationIds, SecondaryPrivateIpAddresses
and SecondaryPrivateIpAddressCount are refused with
UnsupportedOperation instead of being dropped.

AWS::EC2::NatGateway also sets EniId, the gateway's primary interface,
which Fn::GetAtt resolved to the literal "Nat.EniId" although the
gateway has had a real interface since #5622.

Closes #6767

* fix(ec2): take no VPC network lease for a NAT gateway's requested address

DeleteNatGateway never returns a lease, so the one CreateNatGateway took
for its PrivateIpAddress kept the address from automatic allocation
after the gateway was gone. Check that the address is free the way
CreateNetworkInterface does, without the lease; automatic allocation
already steps around addresses a stored NAT gateway holds.

Ec2NatGatewayAddressIntegrationTest now sends its requests through the
shared Ec2Requests.ec2 instead of its own copy.
2026-10-31 05:32:32 -04:00
Matheus OliveiraandPriamo Germosen 2ad35bba1d fix(applicationautoscaling): target-tracking alarms watch the real metric, not the policy type name (#6902)
* fix(applicationautoscaling): target-tracking alarms watch the real metric, not the policy type name

CustomizedMetricSpecification passes Namespace, MetricName, Dimensions,
Statistic and Unit onto the AlarmHigh and AlarmLow alarms as given, and
the ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization
and ALBRequestCountPerTarget predefined types map onto the documented
AWS/ECS and AWS/ApplicationELB metric identities, so the alarms see data
published the way AWS (or the caller) publishes it.

Closes #6853

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(applicationautoscaling): read ALB target-tracking alarms through Sum

RequestCountPerTarget data points already carry the per-minute average
across the target group, and CloudWatch names Sum as the only valid
statistic for the metric, so an Average alarm compares the target
against a second average and misses scale-outs (two samples of 600
read 600 instead of 1200 against a target of 1000). The statistic now
travels with each predefined metric mapping, keeping Average for the
ECS utilisation gauges.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-31 05:30:43 -04:00
Vũ Thế Huy 6d32605370 feat(eventbridge): support native Redshift Data API targets (#6900) 2026-10-31 05:30:15 -04:00
Jimmy Liu Jia 0eafa78bba fix(servicecatalog): return persisted record details from write actions (#7052)
* fix(servicecatalog): return persisted record details from write actions

* test(servicecatalog): remove update record timing delay
2026-10-31 05:23:52 -04:00
Vũ Thế Huy 76b7eed371 fix(s3): enforce the default Block Public Access on buckets nobody configured (#7036) 2026-10-31 05:20:19 -04:00
Vinícius Ribeiro ebdac90574 fix(cloudformation): apply EnabledMfas on AWS::Cognito::UserPool (#7046)
* fix(cloudformation): apply EnabledMfas on AWS::Cognito::UserPool

* docs(cloudformation): move the EnabledMfas note to the resource-type table source

* fix(cloudformation): drop the MFA factors EnabledMfas no longer lists on update

* fix(cognito): apply EnabledMfas mode and factors in one write

* fix(cloudformation): roll back EnabledMfas with the rest of the user pool

* fix(cognito): serialize whole-pool writes behind a per-pool lock

replaceUserPoolMfaConfig stores a copy of the pool, so a TagResource that
landed between the copy and the write was lost. Tag and untag locked the
pool instance, which the copy replaces, so they did not exclude it.

Every write that reads a pool and stores it back whole now holds a lock
keyed by the pool id and reads the pool inside it.
2026-10-31 05:15:29 -04:00
Andre Kurait e714fd9594 fix(autoscaling): scope target cleanup to group-owned instances (#7038)
* fix(autoscaling): preserve group-owned target cleanup across lifecycle paths

Preserve the reviewed strict shared cleanup, Classic load-balancer detach behavior, and failure ownership for retries. Reconcile current main test SDK dependencies without changing the reviewed Java sources.

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

* fix(autoscaling): share Classic cleanup and retain failed members

Use the same Classic load-balancer deregistration helper for detach and every reconciler cleanup path. Preserve members for retry on actual failures, tolerate deleted balancers, and move detach cases to the existing complete fixture.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-10-31 05:12:23 -04:00
Andre Kurait 9f0856c691 fix(appconfig): default omitted configuration profile type (#7037) 2026-10-31 05:09:39 -04:00
Vũ Thế HuyandPriamo Germosen 5e0e33e40f refactor(redshift-serverless): drop the per-snapshot dump loop from clear() (#7056)
Reset empties the snapshot store before clear() runs and deleteDumpTree() removes the whole dump directory, so the loop found nothing to delete.

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 23:16:29 -04:00
Allen SanbornandPriamo Germosen f41f794337 fix(cloudmap): create the Route 53 hosted zone behind a DNS namespace (#7042)
* fix(cloudmap): create the Route 53 hosted zone behind a DNS namespace

Private and public DNS namespaces reported a random HostedZoneId that no
Route 53 zone backed. They now create a real zone (private with the
namespace VPC and region, or public) via Route53Service, and DeleteNamespace
deletes it; a zone holding user records refuses with HostedZoneNotEmpty and
the namespace is kept.

A private zone now covers the namespace's names, and the Route 53 DNS source
answers NXDOMAIN for names it has no record for. EmbeddedDnsServer took the
first present answer across sources, so bean order could hide Cloud Map
instances. An NXDOMAIN from one source no longer wins over another source's
real answer.

Reset: zones and namespaces live in separate stores; Route53Service.clear()
only drops in-memory counters, so no Cloud Map reset hook was added.

* test(cloudmap): select the user's zone now that namespaces own a real one

A private DNS namespace now creates a real Route 53 hosted zone, as AWS
does, so the compat projects hold two zones named floci-compat.internal:
the namespace's private zone and the public aws_route53_zone. The bats
lookups took the first zone by name, which picked the namespace zone
whenever its id sorted first, so the record and tag assertions read the
wrong zone. They now select the public zone.

The CloudFormation test pinned the namespace HostedZoneId to 14
characters, the length of Cloud Map's old placeholder. The id now comes
from Route 53, which, like AWS, does not use a fixed length; the test
checks for a bare Z-prefixed id instead.

* fix(dns): let a record source with records win over another's NODATA

Two sources can own one zone (a Cloud Map namespace and its Route 53
zone). An empty NOERROR from the first consulted source was returned
before the other was asked, so a TXT record in the zone hid Cloud Map's
A record at the same name. Empty answers are now fallbacks, an existing
name preferred over NXDOMAIN.

* fix(cloudmap): log a namespace zone that was already deleted

* docs(cloudmap): describe the real hosted zone in the operations table

* test(dns): pin how record sources combine REFUSED and negative answers

Another source's records now beat a REFUSED, and REFUSED beats NXDOMAIN
in either source order; nothing pinned either, so returning REFUSED
immediately went unnoticed. Also pin, as current behaviour, that a plain
NODATA beats an NXDOMAIN carrying an SOA authority.

The packet test now deletes the TXT records it adds to the namespace's
hosted zone, so the zone is left deletable.

---------

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 23:14:37 -04:00
MosesWayCo b3d9f2f576 fix(apigateway): forward the request body on DELETE (#6868) 2026-10-30 23:13:16 -04:00
Matheus OliveiraandPriamo Germosen 4d21ea66cf fix(ecs): omit readOnly from mountPoints and volumesFrom that never sent it (#6933)
A mount point or volumes-from entry registered without readOnly described
back with readOnly=false, and the Terraform AWS provider then diffed the
shape and replaced aws_ecs_task_definition on every apply. readOnly is an
optional boxed boolean in the ECS model: absence stays absent, explicit
true and false echo as sent, and the container runtime still mounts
absence as read-write.

Closes #6909

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 23:10:01 -04:00
Jimmy Liu Jia 5f327da1c8 fix(cloudformation): resolve SAM AutoPublishAlias references (#7048) 2026-10-30 23:04:51 -04:00
jwoa95andPriamo Germosen d3543aca7e feat(ecs): stop service tasks off the reconciler thread so slow graceful stops don't serialize unrelated services (#6619) (#6972)
* feat(ecs): stop service tasks off the reconciler thread so slow graceful stops don't serialize unrelated services (#6619)

The service scheduler ran each task's Docker stop on the single
reconciler thread, holding the reconciliation pass lock and the task's
monitor. A stop waits out every container's stopTimeout, up to two
minutes a container, so one slow task held up every other task and
service, and several stopped one after another.

The reconciler still marks the task STOPPING and deregisters it at once,
then hands the Docker stop to a bounded task stopper: eight daemon
threads named ecs-task-stopper-N, created only while there is something
to stop. When Docker is done the stop lands the task STOPPED under its
monitor, with the same exit codes, finish times, network release,
cluster count and event ladder as before, and in the task's own account;
a failed stop leaves it STOPPING for a later tick to retry, as it always
has. A per-task registry keeps the ticks in between from submitting the
same stop again. Grace periods are unchanged. Rollouts count only
RUNNING tasks, so a task that stays STOPPING longer starts no extra
replacement, and a DAEMON replacement still waits for STOPPED.

StopTask keeps its synchronous contract. On a task the scheduler is
already stopping it waits, outside the task's monitor, for that stop to
land instead of stopping the same containers a second time. A container
teardown lets the stopper drain before it claims the remaining handles,
and afterReset() replaces the stopper along with the reconciler.

Stopper threads now change a cluster's running task count while the
reconciler launches tasks, so the count is read and written under the
cluster's monitor.

With real Docker and three services whose containers ignore SIGTERM
(stopTimeout 10 seconds), stopping the three old tasks took one 31 second
tick, one task after another, before this change, and 13 seconds with
all three stopping side by side after it.

* fix(ecs): make StopTask wait for a tick's retry of a background stop that failed

A background stop that failed can be retried by a reconcile tick before the
waiting StopTask takes the task monitor back. StopTask now rechecks for a
running stop in a loop, waiting outside the monitor each time, so it never
returns STOPPING while Docker is still stopping the task.

The background-stop integration test now reads STOPPED under the task
monitor, so it also sees the exit codes and cluster count the stop lands.

* test(ecs): use the shared InMemoryStorageFactory in the graceful-stop concurrency test

---------

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 22:58:47 -04:00
TATSUNO “Taz” YasuhiroandPriamo Germosen 6e2b51a324 fix(dynamodb): refuse a PartiQL table alias as DynamoDB does (#7014)
* fix(dynamodb): refuse a PartiQL table alias as DynamoDB does

* fix(dynamodb): check the PartiQL DELETE returning clause after the whole statement parses

---------

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 22:41:36 -04:00
DavidandPriamo Germosen 6db78b8ef4 feat(glue): data quality rulesets (#7035)
* feat(glue): data quality rulesets

CreateDataQualityRuleset, GetDataQualityRuleset, UpdateDataQualityRuleset
and DeleteDataQualityRuleset answered InvalidAction, and
ListDataQualityRulesets always returned an empty list, so Terraform's
aws_glue_data_quality_ruleset failed at its first apply.

Rulesets are now stored per account and Region by name, with their
description, DQDL text, target table, security configuration and created
and last modified times, and tagged through the shared tag store by their
dataQualityRuleset ARN. Update replaces only the members the request sets.
List returns them in name order with RuleCount, filtered by name,
description, target table, created and last modified times and tags, and
paged by MaxResults and NextToken. Errors follow the model:
AlreadyExistsException for a duplicate, EntityNotFoundException for an
unknown name, InvalidInputException for a missing or oversized member.

Rulesets are stored, not evaluated.

Closes #6830

* fix(glue): match a ruleset's catalog and take its store from the caller

The ListDataQualityRulesets target table filter compared only TableName and
DatabaseName, so filtering for one catalog also returned a ruleset on the
same table in another. A CatalogId in the filter now has to match too, with
a target table that names no catalog in the account's own.

The package-private GlueService constructor built the ruleset store itself;
it now takes it as an argument, as it does every other store.

* fix(glue): reuse hasTags and AwsJsonTimestamp for ruleset listing

The ruleset tag filter now goes through hasTags, as jobs, crawlers and
triggers do, and the list filter's timestamps through
AwsJsonTimestamp.epochSeconds, so a timestamp sent as a string is refused
with InvalidInputException as the SDKs never send one.

---------

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-30 22:36:13 -04:00
Allen Sanborn 2a4f57321c fix(ec2): CreateNetworkInterface honours the PrivateIpAddresses entry marked Primary (#7031)
* fix(ec2): CreateNetworkInterface honours the PrivateIpAddresses entry marked Primary

The Terraform AWS provider sends private_ips as PrivateIpAddresses.N.PrivateIpAddress
plus Primary=true. The handler dropped the Primary flag, so the ENI got an
auto-allocated primary and the requested address became a secondary. The entry
marked Primary is now the primary (checked and reserved like PrivateIpAddress),
other entries are secondaries and are refused with InvalidIPAddress.InUse when
held. PrivateIpAddress together with a Primary entry is InvalidParameterCombination.

* test(ec2): cover duplicate Primary entries and secondaries equal to the primary in CreateNetworkInterface

* fix(ec2): check CreateNetworkInterface secondaries in canonical form before allocating the primary

A refused secondary no longer leaves the auto-assigned primary leased on the
VPC network, and a zero-padded secondary can no longer slip past the in-use
and duplicate checks or be stored padded.

* test(ec2): cover an auto-assigned primary that equals a requested secondary
2026-10-30 21:57:10 -04:00
Jimmy Liu Jia 1945117bfe refactor(servicecatalog): share provisioned product record builder (#7041) 2026-10-30 18:38:11 -04:00
Jimmy Liu Jia e2562377bf fix(ecs): honor running task filters for container instances (#7032) 2026-10-30 18:23:44 -04:00