Commit Graph
3995 Commits
Author SHA1 Message Date
Niels Kootstra d44e96eab8 fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt (#7335)
* fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt

GetParameter, GetParameters, GetParametersByPath and GetParameterHistory
returned a SecureString's plaintext whether or not the request set
WithDecryption. AWS encrypts the value with KMS on PutParameter, under the
parameter's key with the PARAMETER_ARN encryption context, and returns
that ciphertext unless the read asks for decryption.

PutParameter now encrypts a SecureString with Floci's KMS and stores the
ciphertext with the version, so every read of a version returns the same
value and KMS Decrypt with the parameter's ARN as context returns the
plaintext. A key KMS cannot use, a value over KMS's 4096-byte limit, and
a version stored before this change are still returned unencrypted.

* fix(ssm): log a SecureString stored without a ciphertext and keep the at-rest note

* fix(ssm): say how AWS encrypts Advanced SecureStrings and reuse the shared test client
2026-11-02 15:07:34 -04:00
Allen Sanborn cb093f87cb fix(elb): assign the VPC default security group to a Classic load balancer created without one (#7100) 2026-11-02 14:50:12 -04:00
Charles Swanberg fccc81b61d fix(s3): place the encryption condition keys on a put, and on a part from its upload (#7050)
* fix(s3): place the encryption condition keys on a put, and on a part from its upload

A policy on s3:x-amz-server-side-encryption or
s3:x-amz-server-side-encryption-aws-kms-key-id read neither key, so a Deny under a
negated operator refused every put, encrypted or not.

A PutObject, CopyObject or CreateMultipartUpload now carries both from its headers, each
value as sent, in the enforcement filter and in S3's own bucket policy check. A part or a
completion sends neither header and carries what its upload recorded when it was created.
A part naming an upload not held answers NoSuchUpload, as S3 does under such a policy.

* fix(s3): check as an object write a PUT or POST naming an upload but not routed as a part

The enforcement filter let through a request naming an upload not held, and judged one
naming a held upload by that upload's encryption, on uploadId alone. A PUT with no
partNumber, or a POST asking for a new upload, creates an object or an upload whatever
that parameter says, so it skipped IAM or read the wrong encryption. Both now match the
routes S3Controller takes as a part or a completion. A part copy naming an upload not held
stays checked, since it names a source.

* test(s3): put the multipart encryption cases beside kmsOnlyBucket

The multipart cases copied S3BucketPolicyEnforcementIntegrationTest's two-statement KMS-only policy
and BUCKET_KEY. They now sit beside kmsOnlyBucket and reuse it, with the policy written once
(putKmsOnlyPolicy). The two cases whose upload is opened before the policy stands use a bucket with
no default encryption, as before: S3 records the bucket's default on an upload that asks for none,
where Floci records only what the request asks for.
2026-11-02 14:46:31 -04:00
Jimmy Liu Jia 1b4f99cb8a fix(rds): retain incomplete cleanup for retry (#7339)
* fix(rds): retain incomplete cleanup for retry

* fix(rds): reuse retained backup dump on delete retry

* refactor(rds): simplify retry ownership and test isolation
2026-11-02 14:34:06 -04:00
Andre Kurait cffad85ac1 fix(autoscaling): settle refresh before removing replacements (#7338)
Settle completed replacements under the group lock after validation and successful detach cleanup. Retain the active refresh reference so ownership is released even after completion. Preserve pending work, capacity bounds and empty detach behavior.

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-02 13:47:14 -04:00
Vũ Thế Huy 432fa4177e feat(redshift): load empty fields of non-character columns as NULL in COPY (#7324) 2026-11-02 13:40:17 -04:00
Vũ Thế Huy d4eeada135 feat(redshift): support MAXERROR in COPY (#7291)
* feat(redshift): support MAXERROR in COPY

MAXERROR n of 2 or more now asks the backend to skip records it cannot convert
(ON_ERROR ignore) and to fail the COPY at the n-th one (REJECT_LIMIT n - 1),
which needs a PostgreSQL 18 backend. A MAXERROR of 0 or 1 fails at the first
error, as without the option.

* test(redshift): add PostgreSQL 18 MAXERROR integration test

* test(redshift): use shared DockerAvailability and RedshiftConnections in PostgreSQL 18 IT

Address review feedback on PR #7291:
- Call testing.DockerAvailability.isAvailable() instead of carrying a private copy of the probe.
- Use RedshiftConnections.waitForConnection(cluster) instead of duplicating the JDBC connection wait helper.
2026-11-02 11:58:15 -04:00
Andre Kurait 6a390496eb fix(autoscaling): settle completed refresh work before standby (#7333)
* fix(autoscaling): settle completed refresh work before standby

Record already settled replacement progress before standby changes member lifecycle. Reuse the owning completion helper after request validation under the existing group lock. Preserve pending replacements and unrelated group/region refreshes.

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

* fix(autoscaling): preserve refreshes on empty standby requests

Settle completed refresh work only when standby will move a member. Reuse the group resolved under the existing lock and retain invalid-lifecycle rejection before refresh mutation.

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

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-02 11:57:39 -04:00
Ovidiu (Ovi) bb5e692b87 feat(dynamodb): emulate Contributor Insights on tables and global secondary indexes (#7326) 2026-11-02 11:30:29 -04:00
Andre Kurait bbe23ed550 fix(stepfunctions): authorize task callbacks against their resource (#7277)
* fix(stepfunctions): authorize callbacks with generated resource lookups

Preserve measured callback resource authorization, token ownership and closed-token behavior. Use explicit generated member lookups, retaining ordinary name resolution and invalid-token precedence. Preserve current main Redshift session-through lookups, generator type validation and payment alias consumers.

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

* test(stepfunctions): reuse the SQS callback queue fixture

Create callback queues through SqsTestQueue and await token JSON with the shared in-process helper. Retain the existing callback authorization matrix, token error precedence and cleanup registration.

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

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-02 11:29:30 -04:00
Andre Kurait 67b408aa22 perf(elbv2): drive TCP fixture health probes explicitly (#7328) 2026-11-02 11:08:19 -04:00
Allen Sanborn cc0cb5a3a3 fix(iam): return a SAML provider's metadata document as uploaded (#7270) 2026-11-02 10:51:05 -04:00
TATSUNO “Taz” Yasuhiro 6c0336b251 fix(dynamodb): check a deeply nested transaction's expressions before its items and name the refused value (#7325) 2026-11-02 10:50:40 -04:00
Abhigya ebd2b70b32 fix(apigatewayv2): send HTTP_PROXY backends the client address in Forwarded (#7281) 2026-11-02 10:46:57 -04:00
Allen Sanborn 4438e3df49 fix(redshift): keep tags, VPC and subnet detail on cluster subnet groups (#7211)
* fix(redshift): keep tags, VPC and subnet detail on cluster subnet groups

CreateClusterSubnetGroup dropped Tags and passed a null VPC, so
DescribeClusterSubnetGroups returned no Tags, VpcId, SubnetGroupStatus or
SubnetAvailabilityZone and the Terraform provider saw drift on every plan.

Tags are now parsed (Tags.member.N and Tags.Tag.N) and stored on the group,
where DescribeTags/CreateTags already find them under the subnetgroup ARN.
The VPC and each subnet's zone are resolved from EC2 on create and modify;
subnets EC2 does not know are kept unresolved, as before. Groups persisted
earlier load unchanged (the new zone map is nullable).

* fix(redshift): inject Ec2Service through the constructor

Replace the Ec2Service field injection with a constructor parameter held
in a final field. The previous @Inject signature stays as a package-private
delegating constructor passing null, so hand-built test services still
skip subnet resolution.

* test(redshift): build the EC2 setup requests with Ec2Requests

ec2Id now only extracts the id from the response; the auth header and
Action come from the shared Ec2Requests.ec2 helper.

* test(redshift): make ec2Id a plain path extraction

Call sites build the EC2 request with Ec2Requests.ec2 and pass it in;
the account and region are named constants.
2026-11-02 10:09:50 -04:00
Andre Kurait 3963e03797 fix(pipes): stop Karapace before Docker client disposal (#7293) 2026-11-02 10:03:24 -04:00
Niels Kootstra 9b3943691a fix(sqs): move a message to the dead-letter queue only once (#7321)
A receive that found a message over its maxReceiveCount left it in the
source queue and removed it in a separate step after the claim. A second
receive in between selected the same message again, so both copied it
into the dead-letter queue.

The claim now takes dead-letter candidates out of the source queue in
the same critical section that selects them. A redrive policy whose
target does not resolve to an SQS queue no longer selects candidates.
2026-11-02 10:02:37 -04:00
Priamo Germosen c84e9249c9 fix(iam): check a Redshift Data statement in a session on the target the session runs on (#7300)
Under IAM enforcement, an ExecuteStatement or BatchExecuteStatement
naming only its SessionId was checked on `*`. A policy allowing one
cluster's or workgroup's ARN let a statement open a session there and
refused the next statement in it, and a deny on that ARN under an
allow on `*` let every statement after the first through.

A session runs on the cluster or serverless workgroup it was opened
on: ListSessions filters sessions "by session status, compute target
(cluster or serverless workgroup), or database", and the SessionId
"can then be used in subsequent ExecuteStatement and
BatchExecuteStatement operations". The Service Reference gives a
session no resource type, so the generator's new THROUGH names the
members a request names a resource through, with the types that
resource may be of: redshift-data:SessionId, on a cluster or a
workgroup. Each operation whose request has the member, and whose
action acts on one of those types, gets a generated
`{"types": [...], "through": "SessionId"}` entry, so there are no hand
corrections. The generator's validation and the Java loader reject a
`through` that is not one top-level member, or that sits beside any
other reading key.

For such an entry the reader asks the namespace's StoredResourceArns
through(member, value, region) for the ARN of the caller's resource
at the other end, and keeps it when it matches one of the types. When
there is none, as for a session that is closed, expired or another
caller's, it names nothing and the request stays on `*`; the Data API
then refuses it. RedshiftDataService now implements StoredResourceArns
for redshift-data, since it owns the sessions and builds their owner
scope: through gives the target ARN of the caller's open session,
through RedshiftDataSessions.targetArn, which find now shares; find
still gives the workgroup a name or an ARN finds, through the
resolver.

ExecuteStatement and BatchExecuteStatement gain the entry (1095
operations over 27 namespaces, unchanged). ListSessions takes a
SessionId too, but the Service Reference gives it no resource type,
so it stays on `*`. iam.md's sentence on EventBridge V2, which said
Floci does not serve it, now says how its requests are read.
2026-11-02 07:53:36 -06:00
Priamo Germosen db3efe8186 feat(emr): run a custom JAR's MapReduce and apply Hadoop classifications (#7294)
In the docker runner mode a custom JAR step whose main class starts a
MapReduce job, such as the Management Guide's wordcount of Hadoop's
examples JAR, never ended: its spark-submit read the image's
mapred-site.xml, which names YARN, and the job kept retrying a
ResourceManager at 0.0.0.0:8032. A Jar of
/usr/lib/hadoop-mapreduce/hadoop-streaming.jar, where EMR has it, named
a file the image lacks. And a cluster's mapred-site, hadoop-log4j and
hadoop-env classifications reached none of its steps.

Now, on a cluster:

- a custom JAR or Spark step's spark-submit runs after the Hadoop setup
  a command gets, so its HADOOP_CONF_DIR is the copy with Floci's S3,
  the cluster's HDFS and MapReduce in local mode, which spark-submit
  puts on its class path; a MapReduce job its main class starts runs in
  the driver's JVM.
- a Jar of /usr/lib/hadoop-mapreduce/hadoop-streaming.jar runs the
  image's /usr/lib/hadoop/hadoop-streaming.jar.
- mapred-site, which will "Change values in the MapReduce application's
  mapred-site.xml file", goes in the copied mapred-site.xml ahead of
  Floci's local mode and staging folder, which win.
- hadoop-log4j, which will "Change values in Hadoop's log4j.properties
  file", follows the copied log4j.properties, a later key winning.
- hadoop-env's export classification starts the copied hadoop-env.sh,
  which the hadoop command reads, each value as given, single-quoted,
  as spark-env's exports are set without shell expansion; a name a
  shell cannot export is left out. The image's own lines come after
  and add to HADOOP_CLASSPATH rather than set it, so the Release
  Guide's HADOOP_CLASSPATH of /path/to/my.jar keeps the LZO codec the
  image's core-site.xml names, without which every job fails.
- a jar the MapReduce home links that the image lacks is named on the
  step's standard error, as a job that needs it fails later, on its
  class path, and emr.md says which releases this has run on (emr-7.5.0
  and emr-7.10.0).

An EMR Serverless run still starts spark-submit as it is. A custom JAR
step's spark-submit reads neither hadoop-env.sh nor Hadoop's
log4j.properties, so those two do not reach it.
2026-11-02 07:53:24 -06:00
Priamo Germosen b4c539d009 fix(iam): read a status and a service principal from the model (#7265)
Two members were held back from the vendored shapes because this service was
read as answering them in a wording of its own. Captures from a real account,
posted on issue #6042, answer both, and neither reading holds.

`statusType` is shared by `UpdateAccessKey`, `UpdateSigningCertificate`,
`UpdateSSHPublicKey` and `UpdateServiceSpecificCredential`. One hand-written
check answered all four, naming neither the offending value nor the permitted
set, which is what a 2025 recording of one of them carries. AWS names the set,
`Member must satisfy enum value set: [Expired, Active, Inactive]`, and answers
an omitted status as the required member it is rather than as a value outside
the set, which one check reading a null as a bad value could not tell apart.
Both are the model's own wording, so all four read it through the Query front
door and the check comes out.

The set is listed in the order AWS lists it, which is not the order botocore
declares. The values are the model's and the generator holds them to it: only
their order is read from the capture.

`AWSServiceName` on `CreateServiceLinkedRole` answered `InvalidInput` with a
sentence about its own bounds, where AWS answers a constraint violation naming
the declared pattern. A principal that satisfies the pattern and names no
service AWS has is still `InvalidInput`, so the layering the capture leaves in
place is the shape first and then whether the service exists.

The required-member message loses the word that stood where the value would
go. IAM names a member and leaves its value out everywhere, and the one
message carrying `Value null at` did so for want of a capture either way; the
capture answers `Value at 'status'`. The form moves in the one object that
decides it, so the eight refusals this package writes by hand move with the
walk, and the services that do quote their values keep the word.

The message quotes the pattern AWS quotes, which is not the one the shape
declares. botocore aliases that member to the shape it gives a group name,
`[\w+=,.@-]+` at 1 to 128 characters, where AWS's message gives
`[\w+=.@-]*`: the comma is gone and a `*` stands where the minimum is 1.
Only the message is in hand rather than the shape, so the generator records
AWS's text beside the model's and one object decides which text any
violation quotes, the way the enum order is read from the capture while the
values stay the model's. A comma is still admitted and an empty principal
still refused, and an empty one now breaks the minimum and the pattern at
once, as every other string member here does. The comma is what a second
capture would settle, and the difference is recorded in
`docs/services/iam.md`.
2026-11-02 07:53:11 -06:00
Miroslav Pokrovskii 9fc5be5ceb fix(s3): return the part checksum from UploadPartCopy (#7292) 2026-11-02 09:50:56 -04:00
Vũ Thế Huy 2be776aa4f feat(firehose): authorize the roles of a Redshift destination (#7296)
* feat(firehose): authorize the roles of a Redshift destination

With IAM enforcement on, check the role of the intermediate S3Configuration
(trust firehose.amazonaws.com, s3:PutObject) before a batch is staged, and
the destination RoleARN (same trust, s3:GetObject) before the COPY runs.
A refused staging keeps the records buffered; a refused load retries against
the object already staged, so a batch is never staged twice.

The COPY still carries no credentials; minting them and authenticating the
proxy's S3 read come in follow-up changes.

* fix(firehose): guard transform error writes and validate staging roles

Check staging role permissions on Lambda transformation error output before writing to S3 so rejected writes keep batches buffered. Validate S3 destination role ARNs during destination creation/update and ensure empty roles are not exempt from authorization checks when IAM enforcement is active.

* fix(firehose): keep ordinary S3 streams on 4-arg transform overload

Avoid calling the 5-arg transform overload for ordinary S3 streams so existing 4-arg mocks (such as in FirehoseDataFormatConversionTest) continue to match.
2026-11-02 09:43:36 -04:00
TATSUNO “Taz” Yasuhiro b821dcd718 fix(dynamodb): refuse empty or unused transaction expressions and an unknown ReturnValuesOnConditionCheckFailure (#7319) 2026-11-02 09:42:00 -04:00
Francisco Javier Barón c79db010ea fix(organizations): store the tags passed to CreateAccount (#7302)
CreateAccount validated Tags and then dropped them, so ListTagsForResource on a new account was empty and Terraform reported tag drift on every account it created. Store them like CreateOrganizationalUnit does.

Closes #7301
2026-11-02 09:39:33 -04:00
Ovidiu (Ovi) 33e12b3cf7 fix(lambda): persist ParallelizationFactor on stream event source mappings (#7299)
* fix(lambda): persist ParallelizationFactor on stream event source mappings

CreateEventSourceMapping and UpdateEventSourceMapping dropped ParallelizationFactor, and
the responses never returned it. A Terraform aws_lambda_event_source_mapping with
parallelization_factor set therefore showed a change on every plan.

The field is now validated (an integer from 1 to 10, Kinesis and DynamoDB Streams sources
only), stored, and returned on every stream mapping, 1 when none was set, as AWS does.
SQS mappings still omit it. The pollers still process one batch per shard at a time; the
docs say so.

* fix(lambda): keep ParallelizationFactor on a null update and reject values beyond long

An UpdateEventSourceMapping with "ParallelizationFactor": null cleared the stored factor,
so a mapping set to 10 read back as 1. A JSON null is an absent member, as
FunctionResponseTypes already treats it, and now leaves the factor unchanged.

The range check ran after narrowing to long, so 18446744073709551617 wrapped to 1 and was
accepted. The value is now range-checked before it is narrowed.

* fix(lambda): share one range check across the event source mapping integers

MaximumBatchingWindowInSeconds, MaximumRetryAttempts, MaximumRecordAgeInSeconds,
ScalingConfig.MaximumConcurrency and ParallelizationFactor each repeated the same numeric,
whole-number and range check. One boundedInteger helper now serves all five, with the
error messages unchanged. It checks the range before narrowing, so a value beyond long
such as 18446744073709551617 no longer wraps to 1 and passes in the other four.
2026-11-02 09:36:25 -04:00
Ovidiu (Ovi) 7abba35051 fix(sfn): accept a decimal ToleratedFailurePercentage at execution (#7297)
* fix(sfn): accept a decimal ToleratedFailurePercentage at execution

ToleratedFailurePercentage is a number from 0 to 100, not an integer. Create-time
validation already treats it that way, so a definition declaring 100.0 or 12.5 was
accepted by CreateStateMachine and then failed every execution of its Distributed Map
with States.Runtime "ToleratedFailurePercentage must resolve to an integer of 0 or more".

The execution path now resolves the percentage as a decimal, through its literal, its
Path or a JSONata expression, rejects values outside 0 to 100, and absorbs
floor(itemCount * percentage / 100) failed items. DescribeMapRun reports the declared
value unrounded. ToleratedFailureCount is unchanged and stays an integer.

* fix(sfn): accept a decimal ToleratedFailurePercentage only as a literal

The guide asks for "a value between zero and 100" for the literal, but says the Path
"must resolve to a positive integer between 0 and 100 at runtime" and a JSONata
expression must evaluate to an integer. The Path and JSONata forms keep main's integer
check, and the shared resolveMapField refactor is reverted with them.
2026-11-02 09:36:11 -04:00
Vũ Thế Huy cd6e516929 feat(redshift): support FILLRECORD in COPY (#7269)
* feat(redshift): support FILLRECORD in COPY

A text or CSV record that stops short of the last columns is loaded with the
rest of them filled: a character column gets a zero-length string and any other
column NULL, as in Redshift. EMPTYASNULL and NULL AS '' make the character
columns NULL too. Without FILLRECORD nothing changes.

* fix(redshift): bound memory growth for FILLRECORD output

Count transformed output against COPY_TRANSFORM_MAX_OBJECT_BYTES and the shared COPY_TRANSFORM_HEAP_MIB budget as records are written, so short records expanded by FILLRECORD fail with the statement limit or memory budget error rather than exhausting the emulator heap.

* fix(redshift): load missing CHAR columns as NULL on FILLRECORD
2026-11-02 09:33:31 -04:00
galsuchetzky-act a69b3621a0 feat(bedrock): store resource-based policies on guardrail profiles (#7208)
AWS lets a system-defined guardrail profile carry a resource-based
policy as well as a guardrail, and a guardrail with cross-Region
inference is shared only once each destination-Region profile ARN
carries one. The policy is stored in the Region whose endpoint
received PutResourcePolicy, under the ARN passed, so GetResourcePolicy
on a profile ARN through an endpoint that stored nothing returns {}.
A profile policy may allow only bedrock:ApplyGuardrail:
https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-resource-based-policies.html

PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy now
accept a guardrail-profile ARN. Its policy is stored per calling Region
and profile ARN, GetResourcePolicy returns {} when that pair holds
none, and DeleteResourcePolicy clears only that pair. PutResourcePolicy
holds the policy to the guardrail language with bedrock:ApplyGuardrail
as the only action. A profile ARN of another account or partition, or
whose profile id is not of the form <prefix>.guardrail.v<N>:<M>, is
ResourceNotFoundException. Which destination Regions are valid for the
calling Region is not checked, and the policy is not evaluated against
callers.

Closes #6671
2026-11-02 09:01:14 -04:00
Hector VenturaandPriamo Germosen 0260a54ee2 chore: keep aws-cdk flags out of botocore-bump and tidy two follow-ups (#7271)
regen_partitions.py reads each region's optIn and s3WebsiteDashForm from the
aws-cdk checkout, so make botocore-bump could carry unrelated flag changes and
aws-data-check-botocore accepted them. Add --carry-region-flags, which keeps the
stored flags and refuses a region with none, and use it in the botocore-only
targets. aws-data-sync and aws-data-check still read aws-cdk.

Hold the ses-account lock in SesCustomVerificationEmailTemplateTest, which sends
and could overlap a test that turns account sending off.

Correct the lambdaTaggedArn Javadoc, which still described the MicroVM tag target
from before #7145.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-11-02 08:56:39 -04:00
Francisco Javier Barón 7f4f2377c0 fix(controltower): accept the landing zone id as landingZoneIdentifier (#7298)
The AWS Terraform provider stores the landing zone id (the last ARN segment) and sends it on read, update and delete. Floci only matched the full ARN, so every apply failed after a successful create.

Closes #7295
2026-11-02 08:40:40 -04:00
Simon Claessens b65755da3a feat(rds): export DB snapshots to S3 as Parquet (#7289) 2026-11-02 08:34:19 -04:00
Vũ Thế Huy b92340b243 fix(redshift): skip the header of every object in a COPY (#7266) 2026-11-02 08:30:02 -04:00
Jimmy Liu Jia 261072bf8a fix(codeartifact): keep Verdaccio alive through npm requests (#7274) 2026-11-02 08:26:46 -04:00
Murtuza Chhil 6906759c9a feat(paymentcryptography): the Payment Cryptography control plane (#7090) 2026-11-02 08:14:58 -04:00
Daniël van Ziel 9e270fbfe1 fix(appsync): report Lambda data source function errors as Lambda:<FunctionError> with the function's message (#7288)
* fix(appsync): report Lambda data source function errors as Lambda:<FunctionError> with the function's message

* fix(appsync): keep the raw payload when a Lambda error payload has trailing content
2026-11-02 08:13:22 -04:00
Niels Kootstra 10b1a1bf8d fix(cloudformation): refuse a DynamoDB TimeToLiveSpecification that is not an object (#7286)
A TimeToLiveSpecification given as a boolean, a string or a list was
read as an absent block. A create reached CREATE_COMPLETE without TTL,
and an update from a template that declared the block turned TTL off.
CloudFormation fails both before the table is touched: "Property
[TimeToLiveSpecification] expected type: JSONObject, found: String",
or "found: JSONArray" for a list. Ref AWS::NoValue still leaves the
property out.
2026-11-02 08:09:28 -04:00
TATSUNO “Taz” Yasuhiro f1c7098d9c feat(lambda-web): add a text/plain Content-Type to app responses that send none (#7285) 2026-11-02 07:47:05 -04:00
TATSUNO “Taz” Yasuhiro cf582c21be fix(dynamodb): refuse transaction requests whose members break their constraints (#7279) 2026-11-02 07:43:53 -04:00
Ovidiu (Ovi)andOvidiu 1b87483483 feat(appconfig): implement UpdateApplication (#7209)
* feat(appconfig): implement UpdateApplication

* fix: address AppConfig update review findings

* fix: incorporate AppConfig maintainer feedback

---------

Co-authored-by: Ovidiu (Ovi) <462561+ovidiubute@users.noreply.github.com>
2026-11-02 07:41:06 -04:00
Abhigya 5d8546a1ff fix(elbv2): add X-Forwarded headers to ALB requests as AWS does (#7278)
* fix(elbv2): add X-Forwarded headers to ALB requests as AWS does

An ALB forwarded client headers unchanged, so a target never learned the
client address and trusted whatever X-Forwarded-For the client sent. The
routing.http.xff_* attributes were stored but never read.

Apply routing.http.xff_header_processing.mode and
routing.http.xff_client_port.enabled on HTTP, WebSocket and Lambda targets,
and set X-Forwarded-Proto and X-Forwarded-Port from the listener connection.
ModifyLoadBalancerAttributes now rejects invalid values for both attributes.

Keep every line of a repeated request header when proxying, and use the last
value in a Lambda event's headers map, as the ALB guide describes.

Take the HTTP API $context.identity.sourceIp from the TCP connection instead
of the caller's X-Forwarded-For, which let a caller spoof it.

* docs(apigatewayv2): limit the X-Forwarded-For hop note to ALB listeners
2026-11-02 07:32:52 -04:00
Abhigya 72321539dd fix(elbv2): add X-Amzn-Trace-Id to requests forwarded to targets (#7280)
An ALB adds or updates X-Amzn-Trace-Id before it sends a request to a target,
but Floci passed through only what the client sent. Generate a Root field when
the header is absent, insert or update a Self field when it is present, keep
other fields, and rewrite to a new Root field above 7 KB of request headers.
2026-11-02 07:28:30 -04:00
Rashen Anupama 1aa1ac6005 fix(eventbridge): retry target dispatch scope failures (#7201) 2026-11-02 07:23:49 -04:00
Andre Kurait 699d472f20 fix(docker): dispose owned clients with their CDI beans (#7267)
Close control-plane and streaming Docker clients through qualifier-matched CDI disposers. Verify generated bean destruction releases its owned idle eviction thread while preserving another client pool. Close direct producer fixtures.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-02 07:04:46 -04:00
Priamo Germosen 048070e699 feat(emr): run hadoop-streaming and hadoop-lzo steps (#7264)
In the docker runner mode a command-runner.jar step running
hadoop-streaming, which "Submits an Hadoop streaming program. In the
console and some SDKs, this is a streaming step", or hadoop-lzo, the LZO
indexer, failed without running, as the image's hadoop had no MapReduce;
and a command's hadoop fs could not reach S3, its classpath having no
AWS SDK v2 and the image's EMRFS not being pointed at Floci.

Now a step's hadoop command, on its cluster:

- runs MapReduce in local mode: links to Spark's shaded Hadoop client,
  the image's only copy of MapReduce, and to the jar Spark's own S3A
  finds the AWS SDK in make up its MapReduce home, so they are on its
  class path whatever HADOOP_CLASSPATH a command sets, and a copy of its
  mapred-site.xml sets mapreduce.framework.name to local. The local job
  runner names a job's -files and -archives by their path alone, which
  the default file system, the cluster's HDFS, resolves, so its staging
  folder is a link to the same path in the HDFS folder.
- reaches Floci's S3 through S3A, with the settings its spark-submit
  gets, now one list for both, ahead of the cluster's HDFS and
  core-site.
- logs to standard error when its log4j.properties is empty, as the
  image's is, in the layout of the Management Guide's step log lines, so
  a failed job's reason is in the step's stderr.
- runs hadoop-streaming from the jar the image has, where the image's
  own hadoop-streaming names /usr/lib/hadoop-mapreduce, which it lacks.

hive-script and pig-script steps still fail without running.
2026-11-01 20:57:59 -06:00
Priamo Germosen 9bd90d6580 fix(iam): check Redshift Data API requests on the cluster or workgroup they name (#7234)
Under IAM enforcement, Redshift Data API requests were checked on `*`,
so a grant scoped to a cluster or a serverless workgroup was refused
and a deny scoped to one never applied.

The Service Reference gives ExecuteStatement, BatchExecuteStatement,
DescribeTable, ListDatabases, ListSchemas and ListTables two resource
types: Redshift's `cluster:${ClusterName}`, which ClusterIdentifier
fills, and Redshift Serverless's `workgroup/${WorkgroupId}`. A
workgroup's ARN ends in the id Redshift Serverless gives it (its
workgroupId, "The unique identifier of the workgroup"; botocore's
WorkgroupNameString takes an ARN ending in workgroup/<uuid>), while a
request names it by WorkgroupName, "The serverless workgroup name or
Amazon Resource Name (ARN)". So the workgroup is a FOUND_BY type,
found by WorkgroupName.

FOUND_BY named a type by its members only where the rule had derived
a fill for the type to replace, as ResourceId fills a scalable target's
${ResourceId}. No member fills ${WorkgroupId}, so FOUND_BY now names
every FOUND_BY type the action acts on whose members the request has,
as its docstring already said. The Application Auto Scaling entries
are unchanged.

RedshiftDataResourceResolver, which resolves the target a request
runs on, now implements StoredResourceArns for redshift-data: it
gives the ARN of the workgroup a name or an ARN finds, through
RedshiftServerlessService.findWorkgroupByNameOrArn, which the
service's own name-or-ARN lookup now uses as well.

Redshift Data joins the table (12 operations, 1048 over 26
namespaces). The six operations above are checked on the cluster's
ARN or on the stored workgroup's, and on `workgroup/*` for a workgroup
there is none of; their SecretArn names neither. A request naming only
its SessionId stays on `*`, and so do CancelStatement,
DescribeStatement, GetStatementResult, GetStatementResultV2,
ListSessions and ListStatements, which the Service Reference gives no
resource type.
2026-11-01 20:57:48 -06:00
Vũ Thế Huy 8c32e9f6ba feat(firehose): run the Lambda processor of a Redshift destination (#7230) 2026-11-01 22:27:39 -04:00
Jimmy Liu Jia 1cbf58a8ae fix(iam): match service-linked role name validation (#7235)
* fix(iam): match service-linked role name validation

Match the recorded AWS ValidationError for malformed AWSServiceName while preserving the documented length and character constraints.

Refs #6042 (item 1)

* fix(iam): align service-linked role validation
2026-11-01 22:24:43 -04:00
TATSUNO “Taz” Yasuhiro b7697f8148 feat(lambda-web): write the platform's own Date header on app responses in place of the app's (#7257)
* feat(lambda-web): write the platform's own Date header on app responses in place of the app's

* test(lambda-web): check the Date header in the headers test on its function
2026-11-01 22:03:46 -04:00
Andre Kurait 65e9522433 fix(timestream-influxdb): rediscover endpoints after reboot (#7259)
* fix(timestream-influxdb): rediscover endpoints after reboot

Resolve the current container endpoint after Docker restarts, then use it for readiness and instance/cluster persistence, including failed readiness. Preserve preferred-network selection and existing resource ownership.

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

* fix(timestream-influxdb): refresh all endpoints on member reboot

Publish the rediscovered shared-container endpoint through the owning cluster when RebootDbInstance addresses a cluster member. Preserve standalone instance updates and propagate success or readiness failure to the cluster and every member.

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

* test(timestream-influxdb): cover both reboot entrypoints in one matrix

Parameterize shared cluster/member reboot assertions over the entrypoint and readiness outcome. Add the missing unhealthy cluster reboot case while preserving endpoint and member-state assertions.

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

* fix(timestream-influxdb): retain effective network when restarting

Resolve the restart network through the same service, global and current-container fallback used at creation. Preserve aggregate endpoint propagation, readiness deadlines and host-mode port resolution.

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

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-01 22:02:25 -04:00
Vũ Thế Huy 105d6732f3 feat(redshift): support DATEFORMAT, TIMEFORMAT and ACCEPTANYDATE in COPY (#7263) 2026-11-01 21:55:35 -04:00