Read ImageScanningConfiguration.ScanOnPush in EcrCfnProvisioner and pass it to createRepository, and call putImageScanningConfiguration on an in-place update when the template declares it. An update that drops the property leaves the stored setting in place, as the ECR resource handler does. AWS::ECR::Repository ImageScanningConfiguration leaves the writable-property gap list.
Closes#9198
CreateDBCluster and ModifyDBCluster dropped MonitoringInterval,
MonitoringRoleArn, EnablePerformanceInsights,
PerformanceInsightsRetentionPeriod and DatabaseInsightsMode, and
DescribeDBClusters left them out, so the Terraform AWS provider planned
the same change on every run for a cluster that sets them. DbCluster now
keeps them, with the checks a DB instance gets plus advanced Database
Insights needing Performance Insights with at least 465 days of retention.
CreateDBCluster and ModifyDBCluster also check VpcSecurityGroupIds
against EC2 as CreateDBInstance does. A modify runs these checks before
any of its changes is stored, and a refused create leaves no cluster.
An Aurora member reports its cluster's groups, and a cluster automated
backup reports its cluster's backup window.
Add SesV1Requests next to SesV2Requests: AUTH (us-east-1, email scope),
authFor(region), and query(action) / query(authorization, action), which
build the form-encoded request with the Authorization header and the
Action parameter.
Replace the per-class email-scope Authorization constants, the inline
headers and the local query, req and authorization helpers with it.
Classes that also send v2 requests reference SesV1Requests qualified;
v1-only classes import it statically. Every request keeps the same
header, content type and Action. Headers signed for another account, and
the one v1 request that checks the ses scope, are left as they are.
A docker job run with a retryPolicyConfiguration failed at its driver's
first error, and every run showed its policy, even one that disables
retries.
- With a maxAttempts above 1, a driver that exits with an error is
started again, "restarted automatically if it fails", until the run
has made maxAttempts attempts, after "an exponential retry interval of
(10 seconds, 20 seconds, 40 seconds ...) which is capped at 6 minutes"
(EMR on EKS Development Guide, "Using job retry policies").
- Between its attempts the run is SUBMITTED and keeps its running slot,
each new attempt raises its retryPolicyExecution's currentAttemptCount,
and CancelJobRun cancels it at once. One Floci stopped in between waits
out the rest of its backoff once it is read again. A driver that cannot
start, or that Floci stopped, is not retried.
- With retries enabled, its driver pod's name has a suffix of each
attempt's own, spark-<job id>-driver-<random-suffix>, so each attempt's
logs go to a folder and streams of their own, under the run's one Spark
application id.
- A maxAttempts outside 1 to 2,147,483,647 is refused with "Retry policy
configuration's parameter value of maxAttempts is invalid", and one of
1 shows neither the policy nor its execution: "These fields will not
be visible when retry policy is disabled in the job".
- Floci sends no EMR on EKS events, so the docs note that there is no
"EMR Job Run New Driver Attempt" event.
IAM names exactly one blocking dependent and words each class with its own
wholly fixed sentence, no entity name and no count, because a cleanup loop
reads the sentence to choose its next step. Four of those recordings bear on
this package and three of them diverged.
- DeleteRole read a role's attached and inline policies together and answered
the detach sentence for both, so an inline policy was told to detach
something. The two are reported apart now: "Cannot delete entity, must
detach all policies first." for a managed attachment and "Cannot delete
entity, must delete policies first." for an embedded policy, which is the
remedy that clears what is there. DeleteGroup conflated them the same way
and selects the same two sentences now; DeleteUser already did and is the
model both follow.
- DeleteRole never looked at instance profiles, so a role a profile held was
deleted and left the profile naming nothing. A role an instance profile
holds is "Cannot delete entity, must remove roles from instance profile
first." and the profile has to let go of it first, as on AWS. The profile
is reported ahead of an attached policy, which is recorded for a role that
is both held and carrying attachments, and is what a cleanup loop needs,
since detaching changes nothing while the pairing is there.
- DeleteInstanceProfile wording its own refusal now carries that same
sentence, which is AWS's for both ends of the pairing.
The new membership check and the emptiness check it joins are both
check-then-act, so AddRoleToInstanceProfile takes the lock the deletes decide
under, outside the profile's own monitor as every path here already does: one
order throughout, and no pairing can land between a delete's read and what it
does with it.
Nothing takes a role out of a profile on the caller's behalf, on AWS or here.
The CloudFormation role provisioner keeps clearing the policies its stack owns
and lets the conflict reach the stack, with a provisioner case for it; a stack
owning both resources deletes the profile first, since dependents go before
what they depend on. The test fixture that tears a role down removes it from
any profile first, ahead of its policies, so teardown asks for the remedies in
the order the refusals name. The tolerance behind RemoveRoleFromInstanceProfile
stays for state reached another way, and the test that reached it by deleting
the role first now asserts the refusal and clears the pairing before the role.
Which profiles hold a role is kept as an index beside the profiles themselves,
written in the same two places a pairing is and read only under that lock, so
the check costs a lookup rather than a read of every profile in the account
while the lock is held. A scope is filled from storage the first time it is
asked about, so a pairing a restart inherited is in it before the first answer.
The two callers that delete a role of their own clear its policies first, so
each asks about the profile before it clears anything: otherwise a role that
turns out not to be deletable would be left in place with its permissions
stripped by a delete that could not finish.
Every running Lambda container held a /wait stream, a streaming connection and a thread, only to notice its runtime exiting. With floci.docker.events-exit-detection on (off by default), DockerExitEvents watches them all through one events subscription filtered to container die events, as the AWS ECS agent does. Because events are edge-triggered, a container is registered before it starts and the first subscription is confirmed before the registration returns; after the stream drops, it subscribes again and inspects every watched container, reporting the ones that exited or died in the gap and never one still being created. The exit code comes from an inspect, with the event's exitCode attribute as the fallback, and each exit is reported once, on a virtual thread. With the flag off, LambdaExitWatcher runs as before.
A dropped or unconfirmed stream marks a sweep that the next subscription to start runs, whoever opened it. An inspect in the sweep that fails with anything but NotFound is tried again on a doubling delay, and only a subscription Docker confirms resets the reconnect backoff.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
With security-group enforcement on, revoking the last world-open ingress rule closes the relay's host listener at once and keeps the connections it already accepted, as AWS keeps tracked connections. When the instance's egress allows TCP to every address and port in the family the relay uses to reach the guest, AWS does not track those flows, so the revoke removes the relay and closes them immediately. A listener that cannot be closed falls back to removing the relay, one instance's failure no longer skips the group's other instances, and stop or terminate removes any draining relay. Ec2PublishedConnectionNightlyIntegrationTest covers both cases.
A CopyObject whose request names no encryption now takes the destination bucket's default
encryption, as the CopyObject reference says, not the source object's encryption. An explicit
encryption header on the copy request and an SSE-C destination key keep their precedence, and an
explicit aws:kms:dsse copy keeps its key id. S3IntegrationTest.copyObjectPreservesServerSideEncryption
is renamed and changed to match.
A docker job run's driver output went to Floci's log only, whatever its
monitoringConfiguration asked for.
- With an s3MonitoringConfiguration, the driver's stdout.gz and
stderr.gz go to "/logUri/virtual-cluster-id/jobs/job-id/containers/
spark-application-id/spark-job-id-driver/" once the run ends, as the
development guide's "Configure a job run to use Amazon S3 logs" lays
out a driver's logs.
- With a cloudWatchMonitoringConfiguration, its standard output and
standard error go, as it writes them, to the streams
"logStreamPrefix/virtual-cluster-id/jobs/job-id/containers/
spark-application-id/spark-job-id-driver/(stderr/stdout)" in its
logGroupName, the group and streams created if they do not exist.
- The spark-application-id has the form a Spark application on
Kubernetes gets, spark- and 32 hexadecimal digits, and is Floci's own.
- A job template's configurationOverrides, whose parametric model need
not name a destination's log group or log URI, are held to
StartJobRun's ConfigurationOverrides, as a request's own are.
- The runner gzips a driver's output into temporary files rather than
memory, and the per-stream CloudWatch forwarding EMR Serverless shares
sends each line as written, but for an empty one, which CloudWatch
Logs refuses, and each stream's lines of one emission in one call.
API Gateway leaves ResourceArnBuilder's own branch, and the enforcement filter's call that went around the
table for it: its requests are matched on their botocore routes and checked on the resources the
request-resources table reads. API Gateway authorizes a management call as the HTTP method of the request, on
the resource its path names, which its developer guide says and neither botocore nor the Service Reference
does. fetch_apigateway_arn_formats.py copies the guide's IAM page (the action and resource format sentences)
and its ARN reference tables unchanged into tools/aws/sources/apigateway-arn-formats.json, which
regen_iam_request_resources.py reads: a route authorized as its method is checked on the resource whose
published format is its own path, a Service Reference type before the guide's REST row, the /v2 of HTTP and
WebSocket API paths left out, and a path neither gives a row on the guide's ARN format with that path as its
resource path. The formats the reference does not give are recorded under pathFormats.
RequestResourceMembers reads pathFormats beside arnFormats and takes a hyphen in a path label;
RequestResources URL-encodes a value filling a UrlEncoded variable, so a tagging route acts on
/tags/<URL-encoded ARN> however it sends the ARN, and escapes % and / in a value filling a path-shaped format,
so one label cannot pass for several segments.
Carry FinishedCrawl.errorMessage through WorkflowCrawl and include ErrorMessage on CrawlerDetails.Crawls entries in the workflow run graph when present.
Follow-up to #9195.
An EMR on EKS job run ran nothing: it was COMPLETED at once, or RUNNING
on a timer and then COMPLETED, whatever its Spark job would have done.
- With floci.services.emrcontainers.runner-mode set to docker, a run
runs its Spark job in a container of its release's EMR on EKS base
image on Amazon ECR Public, or of its custom image: a
sparkSubmitJobDriver's spark-submit, or a sparkSqlJobDriver's
spark-sql with its entry point as the file it runs, with the
spark-defaults of its configurationOverrides and its execution role's
credentials, on Floci's S3.
- The release label names the image's repository and tag, as the
development guide's release notes give each release's "Container
image tag": emr-7.2.0-20240610 runs emr-7.2.0:20240610. The base
image's spark-defaults.conf runs a driver in Kubernetes' cluster
mode, so the driver runs in client mode, its executors with it.
- A run is SUBMITTED while its container starts, RUNNING once its
driver runs, and COMPLETED or FAILED as the driver exits, a failed
driver with AWS's USER_ERROR and "Jobrun failed. Main Spark container
terminated with errors. ...". A container that cannot start, a job
driver without an entry point, and a run a restart left running fail
with the development guide's INTERNAL_ERROR and VALIDATION_ERROR
answers.
- CancelJobRun makes a running run CANCEL_PENDING until its driver is
stopped, then CANCELLED.
- A run holds its virtual cluster's running slot from its submission
until its driver ends, counting as concurrent, not queued, and the
slot then goes to the queue. A run that cannot be handed to a thread
fails and frees its slot, and a leftover driver of a run found failed
is removed.
- The immediate runner mode, the default, is unchanged.
The registry data plane and the catalog reconcile run outside any request, so the
account-aware repository store read and wrote them as the default account. A repository
another account created was not found: its IMMUTABLE tags were not enforced, and the
reconcile recreated it in the default account's partition. The data plane's lookups now
read the repository in the account its registry host names, and the reconcile reads and
writes each entry in the account it belongs to, the configured default account for a
pre-proxy namespace even when a request of another account started the registry.
A push or pull for a repository nobody created fell back to the default namespace, so
registry:2 stored it and the next start adopted it. Once the catalog has been read, such a
name now answers 404 NAME_UNKNOWN before any byte reaches the registry, once it has been
checked against the registry running now: a recovered registry's catalog is read again.
Until then it answers unavailable, since its images may be in the registry: the start's
catalog read is strict now, so a failed read no longer counts as an empty catalog, and the
data plane retries it, at most every 30 seconds. A client that leaves while the catalog is
read gives its write admission back at once, and a lookup that fails after the read is
answered with a 500 rather than left waiting.
The EKS registry-hosts and ECR TLS data-plane tests create their repository before pushing.
Closes#6101Closes#6140
Co-authored-by: Yi-111-a <153097222+Yi-111-a@users.noreply.github.com>
* feat(dynamodb): return attributes and map keys in a random order where AWS does
* perf(dynamodb): presize the maps of a shuffled item
* refactor(dynamodb): read the attribute order setting when the handler is built
* docs(dynamodb): say the attribute order setting works with the native backend only
* test(dynamodb): share the attribute order test helpers and delete each test table
* test(dynamodb): check the attribute order setting in a unit test instead of a test profile
* docs(dynamodb): say reads return the same order on every call
Resolve Fn::Sub (both the string and the [template, variableMap] forms) and Ref in an AWS::Include Location against the stack's pseudo parameters, template parameters, mappings and exports before parsing the S3 URI. An unreadable AWS::SSM::Parameter::Value<String> parameter is left out of what the include sees, so only a Location that uses it is rejected, and DescribeChangeSet still succeeds otherwise.
Closes#8667
Move KarapaceManager and the Kafka REST Proxy v2 client out of the package-private services/pipes into core/common/kafka so other services can consume Kafka topics. Pipes behavior, the floci.services.pipes.kafka-rest-bridge.* config keys and the container naming and labels are unchanged.
Extend the client with the operations Redshift streaming ingestion needs: topic partition discovery (a missing topic raises KafkaTopicNotFoundException, distinct from broker or proxy failures), manual partition assignment, and explicit per-partition offset seeking. Partitions are listed through GET /topics/{topic}/partitions, where Karapace answers a missing topic with error_code 40401.
Part of #7814
* feat(docker): read long-lived service containers' logs on a timer
* test(memorydb): verify the polled log attach
* fix(docker): bound polled log reads, flush on a failed close read, and read Redshift's log before its removal
* fix(docker): hold a polled log record cut inside its timestamp
* fix(docker): read a polled log record's stamp only in the runtimes' nine-digit layout
* fix(docker): open a polled log record only where a frame can begin
Co-authored-by: Priamo <pgermosen@gmail.com>
EventBridgeService.buildEventEnvelope added an extra top-level event-bus-name field that real AWS EventBridge envelopes do not include.
Remove event-bus-name from the delivered envelope, update existing EventBridge and SES integration tests to assert it is omitted, and add a unit test verifying the exact set of AWS envelope fields on custom buses.
Closes#9188
A PostgreSQL backend started with the master user as POSTGRES_USER, so the master was the bootstrap superuser and owned the system catalog: REASSIGN OWNED BY <master> failed with "required by the database system", and rds_superuser did not exist.
A new backend is now initialized as rdsadmin, as RDS initializes one. A first-boot script creates the master as LOGIN NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION VALID UNTIL 'infinity' in rds_superuser (RDS User Guide, "Understanding the rds_superuser role"). The master owns postgres, template1 and the instance's database. rds_superuser holds rds_password, rds_replication and the predefined pg_* roles RDS grants it, with ADMIN OPTION, and ADMIN OPTION alone on rds_iam on PostgreSQL 16 and later, so the master can grant rds_iam without becoming an IAM-only member. The rdsadmin database is closed to PUBLIC.
rdsadmin gets a random password on every start, which only the auth proxy uses: an IAM session for a role other than the master is opened as rdsadmin and handed over, since only a superuser can SET SESSION AUTHORIZATION. No client may log in as rdsadmin. The proxy's rds_iam walk skips grants of ADMIN OPTION alone, such as the one PostgreSQL 16 gives the master on each role it creates. Snapshots, restores, exports and database renames run as rdsadmin; a restore applies the RDS roles and ownership again and gives rdsadmin back its password.
A data volume first initialized by an earlier Floci keeps its master as the bootstrap superuser, and a master named rdsadmin stays one. Two tests leaned on a superuser master: the IAM replication test now turns logical replication on through rds.logical_replication in a parameter group instead of ALTER SYSTEM, and the startup-parameters test stores its superuser-only role defaults as rdsadmin and gives app_user its schema with GRANT USAGE.
Closes#5885
StartJobRun kept a run's executionIamPolicy only to give it back: its
credentials had every permission of its execution role, and the policy
was stored as sent, members it does not have included.
- A run's inline policy now scopes the session its containers get, as an
assumed role's session policy does, so with IAM enforcement on "The
resulting job IAM role permissions will be an intersection of this
policy and the policy associated with your job execution role". Its
policyArns are kept and given back but not applied, as Floci's IAM
applies no managed session policy, an assumed role's included.
- The policy keeps only its two members. An inline policy outside 1 to
2,048 characters, more than 10 policy ARNs, or one outside 20 to
2,048 characters is refused with the framework's ValidationException,
and either member of another JSON type with SerializationException.
GetJobRun gave an ended run no totalResourceUtilization or
billedResourceUtilization, which a cost or usage report reads.
- An ended Spark run gives both, reckoned from the workers it asks for:
its driver and the executors it starts with, sized as the user
guide's supported worker configurations size them. A worker has the
vCPUs its cores ask for, and memory for its Spark memory and its 10%
overhead, at least 384 MB, rounded up to the sizes its vCPUs allow.
Unset, a worker has 4 vCPUs, 14G and 20G of disk, and a run starts 3
executors, as the Spark job properties give them; spark-submit's
sizing options set over --conf, as Spark takes them. Sizes are read
as the executors' capacity reads them, which a size too large for a
long no longer breaks.
- The total covers the time "from the time the job starts to execute,
until the time the job terminates, rounded up to the nearest second";
the billed figure includes "a 1-minute minimum usage for workers,
plus additional storage over 20 GB per worker".
- Its driver's worker counts for the whole attempt. Executors with
containers of their own count for the time each container ran, as
they come and go with Spark's target; otherwise the executors it
starts with count for the whole attempt.
- Each attempt gives its own, and one that never started used nothing.
A Hive run gives none, its Tez tasks coming and going with its query.
A Spark run stored before this gets its workers as it ends.
CancelJobRun ignored its shutdownGracePeriodInSeconds and stopped a
run's driver at once, StartJobRun dropped flexExecution, and
CreateApplication and UpdateApplication took any architecture.
- From emr-7.9.0 a RUNNING run in the docker mode gets the grace
period it is cancelled with, "during which the job can perform
cleanup operations prior to final termination". Its driver gets
SIGTERM through an init process, the run is CANCELLING until the
driver ends, and a driver still running when the period ends is
stopped. A batch run has none by default and a streaming run 120
seconds; a run not yet RUNNING, or on an earlier release, is stopped
at once, and a value other than 0 or 15 to 1800 is refused with
ValidationException, in Floci's words. Step Functions' cancelJobRun
passes its ShutdownGracePeriodInSeconds on, read in either case.
- A run keeps its flexExecution's one member, enabled, which GetJobRun,
ListJobRuns and ListJobRunAttempts give back; an enabled that is not
a boolean is refused with SerializationException.
- An architecture other than ARM64 or X86_64 is refused with the
framework's ValidationException, from the one list CloudFormation's
application provisioner checks too.
RunJobFlow dropped the cluster's KerberosAttributes, OSReleaseLabel,
EbsRootVolumeIops, EbsRootVolumeThroughput, PlacementGroupConfigs,
LogEncryptionKmsKeyId, RepoUpgradeOnBoot and MonitoringConfiguration,
so DescribeCluster gave back none of them.
- DescribeCluster gives each back as it was asked for, the placement
group configs as its PlacementGroups.
- OSReleaseLabel is the one asked for, else the latest Amazon Linux
release DescribeReleaseLabel lists for the cluster's release, as "If
no Amazon Linux release was specified, the default Amazon Linux
release is shown in the response".
- RepoUpgradeOnBoot is SECURITY for a cluster with a custom AMI that
names none, as "If omitted, the default is SECURITY".
- Of KerberosAttributes only the Realm is kept and given back, never a
password, and a cluster without them answers an empty structure, as
AWS does.
- A member the model requires, or a value outside its enum, is refused
with the framework's ValidationException. So are two placement groups
for one instance role, and one for the primary nodes of a cluster
without three of them (three on-demand and no spot for a fleet), in
the words AWS answers them with.
- As only the primary nodes take a placement group, with SPREAD or NONE,
another role or strategy is refused, in Floci's words, and a group
without a strategy gets SPREAD, as the Management Guide says.
- AWS::EMR::Cluster passes these properties to RunJobFlow rather than
warning that they are not stored.
ChangePassword answered 400 InvalidUserType to every caller with no
stored user behind the signing key, reading the CLI reference's sentence
for account root credentials. An assumed-role session is not that
caller: recorded against a real account on 2026-10-29, it is answered
NoSuchEntity 404, a code this operation's model declares alongside
InvalidUserType, so the two are not one case and that session was being
given root's error.
The recording is the whole of the change. That session answers the
missing key, with the message this package already gives wherever a
signing key resolves to no user, which keeps one situation to one
wording rather than minting a second. Every other caller keeps
InvalidUserType: a session AssumeRoot minted acts as the account root,
which is what that error is published for however root signs, and what
AWS answers the remaining session kinds is not recorded.
A pipe with an SQS queue target ignored SqsQueueParameters, so a FIFO queue target failed every
delivery for want of a group id. MessageGroupId and MessageDeduplicationId now reach SendMessage,
each a literal or a JSON path read off the event before the InputTemplate renders, as the event bus
target already does for Source and DetailType. A number becomes its text and an object its compact
JSON, and a path that names nothing fails the delivery.
CreatePipe and UpdatePipe check them as AWS does: a target whose queue name ends in .fifo needs
SqsQueueParameters and a MessageGroupId, MessageDeduplicationId is refused on a standard queue, and
a value that starts with $. but is not a valid JSON path is refused. The errors are reported
together, in AWS's order, as a ValidationException with fieldList; UpdatePipe checks against the
stored target when the request leaves it out.
Part of #7481.
With floci.services.dynamodb.transaction-conflicts-enabled on, a
TransactWriteItems keeps its items busy from the moment its conditions
hold until 10 ms after it commits, and answers when that time is up.
While an item is busy, a PutItem, UpdateItem, DeleteItem or single-item
PartiQL write on it fails with TransactionConflictException, and another
TransactWriteItems or a TransactGetItems that reaches it is cancelled
with the reason TransactionConflict, as the developer guide describes.
GetItem, Query, Scan and BatchWriteItem are unaffected, and a
transaction that is cancelled holds nothing.
The busy mark is a deadline kept beside the item, so no item lock is
held during the wait. Off, the default, transactions keep serializing on
their item locks as before. The switch is refused at startup on the
local backend.
Closes#4523
DescribeCluster's Ec2InstanceAttributes kept only the key name, subnet,
zone and managed security groups. The JobFlowRole, the instance fleets'
Ec2SubnetIds and Placement.AvailabilityZones, and the additional master
and slave security groups that RunJobFlow took were dropped, so a client
reading the cluster back, as Terraform's aws_emr_cluster does, saw none
of them.
- IamInstanceProfile is the JobFlowRole, "The IAM role that was
specified when the cluster was launched".
- RequestedEc2SubnetIds and RequestedEc2AvailabilityZones are the ones
requested, an empty list when none was, as AWS gives them. The subnet
is the one Ec2SubnetId names, else the first of Ec2SubnetIds, and the
zone the one Placement names, else the first of its AvailabilityZones.
- A request naming both subnets and zones is refused with
ValidationException, as "RequestedEc2SubnetIDs and
RequestedEc2AvailabilityZones cannot be specified together".
- AdditionalMasterSecurityGroups and AdditionalSlaveSecurityGroups are
the ones given, and a list member of another JSON type is refused
with SerializationException.
- AWS::EMR::Cluster no longer warns that Instances' Ec2SubnetIds and
additional security groups are not stored.
docker-java read every stream (a log follow, a container wait, an exec's output, the events stream)
on a platform thread of its own, so the threads grew with the containers. Floci now builds its
DockerClients with FlociDockerCmdExecFactory, adapted from docker-java 3.7.1's
DefaultDockerCmdExecFactory, DefaultInvocationBuilder and FramedInputStreamConsumer (Apache License
2.0), whose one change runs each stream on a virtual thread. Closing a stream still interrupts its
thread and closes the response, and the client is still built over the launch bulkhead, the circuit
breaker and the retry layer.
The pool gauge's stream-thread count, which listed threads by name and cannot see virtual ones, now
counts the running stream callbacks.
CREATE [OR REPLACE] EXTERNAL FUNCTION and DROP FUNCTION are now handled on Redshift clusters.
Each function's Lambda name, IAM role, volatility and batch options are kept in
ExternalFunctionRegistry, and a plpgsql stub of the same signature is created in the backend, so
name clashes, overloads, ownership and OR REPLACE return-type rules come from PostgreSQL. OR REPLACE
replaces only a function the registry made. Calling the function raises 0A000 until the evaluator
lands.
IMMUTABLE, IAM_ROLE default and types outside the documented Lambda UDF list are refused with
0A000, malformed clauses with 42601 and out-of-range options with 22023; the clause defaults and
bounds follow the CREATE EXTERNAL FUNCTION reference. A DROP FUNCTION of a function Floci does not
track is left to PostgreSQL. Both statements fail with 25001 inside a transaction block, and an
unqualified name is created in public.
Part of #7815.
Bedrock leaves ResourceArnBuilder's own branch and the registry's three resource-policy rules: its
requests are matched on their botocore routes and checked on the resources the request-resources table
reads. regen_rest_routes.py vendors the bedrock, bedrock-agent and bedrock-runtime models, all signed
for the bedrock scope; bedrock-agent's are needed because its PutResourcePolicy carries resourceArn in
its path where bedrock's carries it in its body, a member the two clients locate apart.
regen_iam_request_resources.py reads bedrock instead of leaving it to the builder, so a guardrail
request is checked on the guardrail its path names and a resource-policy request on the ARN it carries.
The generator's reader of an ARN pattern's type words also reads one whose account is optional, so the
tag actions are checked on the guardrail or application inference profile ARN they carry, and
regen_iam_tag_on_create.py reads bedrock, so a create carrying tags also needs bedrock:TagResource.
BedrockStoredResourceArns gives IAM the tags Bedrock holds on a guardrail or an application inference
profile, for aws:ResourceTag, read in place and matched on the whole ARN; a guardrail's untag now
replaces its tag map rather than editing it, so a reader never sees half of one, and both models keep
their tags volatile.
An instance fleet dropped the LaunchSpecifications, ResizeSpecifications
and Context that RunJobFlow and AddInstanceFleet gave it, and
ModifyInstanceFleet changed its target capacities alone, ignoring the
ResizeSpecifications, InstanceTypeConfigs and Context it took.
- A fleet keeps its LaunchSpecifications, ResizeSpecifications and
Context, and ListInstanceFleets gives them back.
- ModifyInstanceFleet changes the ResizeSpecifications, InstanceTypeConfigs
and Context it gives. The configs replace the fleet's own, as the
Management Guide warns that "Not including fields can result in
overwriting specifications you declared at launch", and must name
every instance type the fleet has, as "You must include all instance
types that are part of your instance fleet in the modify request". A
request that leaves one out is refused with InvalidRequestException.
Its configs are checked as AddInstanceFleet checks them, and on both
calls specifications that are not an object, or a Context that is not
a string, are refused with SerializationException.
- AWS::EMR::Cluster no longer warns that a fleet's launch and resize
specifications are not stored, and AWS::EMR::InstanceFleetConfig now
applies a change to InstanceTypeConfigs or ResizeSpecifications in
place rather than warning. A rollback puts them back, but not an
instance type the update added, which every later request must
include, nor resize specifications where the fleet had none, which no
request can clear. The update is checked as ModifyInstanceFleet checks
its request, before anything changes, and dropped configs or resize
specifications are kept.
A generated presigned URL's credential is scoped to one object and action, and the filter compared
that scope with an S3 request's object read again from the wire path, a branch of its own. Since
#9155 the request's resources already name that object as S3 reads its key, the slashes it was sent
with kept (RequestPathLabels), so the filter compares the scope with them, as for any request, and
the S3 branch goes.
Every write that stores a password composed one sentence listing every
rule the password broke, "Password does not conform to the account
password policy. It must contain: ...", which AWS writes nowhere. AWS
answers one fixed sentence naming one rule, and two of the five are
recorded against a real account on CreateLoginProfile, both 400
PasswordPolicyViolation with a sender fault and neither ending in a
period: 'Password should have a minimum length of 24', the policy's own
minimum substituted, and 'Password should have at least one symbol',
where this package enumerated a symbol set AWS does not put in the
message.
The three character classes left carry no recording and take the same
shape, as does the order a refusal picks a rule in, no recording covering
a password that breaks more than one: the length first, then the
character classes in the order the policy declares them.
The reuse window keeps a sentence of its own. AWS publishes no wording
for a reused password and nothing records one, so that one site is left
as it was and the page says why.
A template declaring AWS::VerifiedPermissions::PolicyStore, PolicyTemplate or Policy failed its stack
as unsupported, although Floci serves the API behind them. VerifiedPermissionsCfnProvisioner now
provisions the three over VerifiedPermissionsService.
A policy store answers Ref with its id and sets Arn, PolicyStoreId and EncryptionState; its schema is
put once the store stands, and deletion protection is turned on only after that, so a store whose
schema the Cedar sidecar refuses is still removed. A template answers Ref with
PolicyStoreId|PolicyTemplateId and a policy with its id alone, as the Template Reference documents
each; a policy's store is found from its id, and Cloud Control names a policy
PolicyId|PolicyStoreId. PolicyStoreId is create-only on both, and a template or a policy is replaced
in the new store when the engine says the update replaces it. A schema, Description,
DeletionProtection or Name the template drops is cleared, what the stack never declared is left as
the service has it, and a create leaves out an optional field the template does not give. An update
of a stack from before this provisioner, which holds the dispatcher's stub, creates the entity.
An in-place change of a store, a template or a static policy is snapshotted first, so a step that
fails is undone and a later resource failing the update puts it back. A store's settings are
written before its schema, its tags are reconciled only over the keys the stack owns, and a change
of its EncryptionSettings is refused, since Verified Permissions sets encryption at create. Cloud
Control's model names a store by PolicyStoreId and a template by PolicyTemplateId.
Co-authored-by: Chuck Swanberg <cswanberg@mad-swan.com>
The registry matched an S3 request's route on the path as sent and every other scope's on the path
the router dispatched on. S3 needs no exception: S3SlashOnlyKeyFilter rewrites a key of slashes alone
escaped (PUT /bucket// is /bucket/%2F), which the routed path keeps as the filter wrote it, and the
object a request names comes from S3's own reading of its key (RequestPathLabels), which keeps the
slashes it was sent with. The routed path is also the one the router dispatched on, so a path it
normalizes, such as /bucket/.., is checked as the operation that runs. A new integration test checks
a key of slashes alone under IAM enforcement.
An instance group dropped the EbsConfiguration and CustomAmiId that
RunJobFlow and AddInstanceGroups gave it, and ModifyInstanceGroups its
ShrinkPolicy, and ListInstances gave no instance an EbsVolumes or a
PublicIpAddress.
- A group keeps its EbsConfiguration and CustomAmiId, and
ListInstanceGroups gives them back as its EbsBlockDevices, one per
volume named /dev/sdb on as a fleet's are, its EbsOptimized and its
CustomAmiId, under the same limit of 25 volumes per instance.
- ModifyInstanceGroups keeps a group's ShrinkPolicy, which
ListInstanceGroups gives back, and a shrink it comes with follows its
InstanceResizePolicy: the instances it names to terminate end first,
then the group's last instances, passing the protected ones. They end
as EC2InstanceIdsToTerminate ends them, so their ids are not taken
again, and a later entry for the same group counts from what an
earlier one leaves. An id to terminate that is not a running instance
of the group is refused, as EC2InstanceIdsToTerminate refuses it, and
so is a shrink the protected instances leave short.
- ListInstances gives each instance the PublicIpAddress its
PublicDnsName names, in 203.0.113.0/24 for a cluster's first 254
instances and in 100.64.0.0/10 past them, and an EbsVolumes entry for
each device its group or instance type config gives it, with volume
ids that differ between clusters. A group's instances' EC2
descriptions give its CustomAmiId as their image.
- AWS::EMR::Cluster no longer warns that a group's EbsConfiguration and
CustomAmiId are not stored.