* fix(msk): populate currentBrokerSoftwareInfo in cluster describe response
* fix(msk): map provisioned.kafkaVersion in CreateClusterV2
Addresses review feedback: V2 create requests carry kafkaVersion under
provisioned, not at the top level, so it was always falling back to the
default. Adds integration test coverage for the V1 path, V2 with
provisioned.kafkaVersion, and V2 default fallback.
* fix(msk): update RedpandaManagerTest for MskCluster 3-arg constructor
* chore(fixtures): capture AWS Cognito auth flow fixtures for contract tests
Captures 7 wire-format fixtures against wirebit stg pool for use as ground truth
in floci compatibility tests. Includes capture script with PII sanitization and
best-effort user cleanup.
Empirical findings vs spec:
- No client-side rate-limit observed on back-to-back ResendConfirmationCode
- PreventUserExistenceErrors=LEGACY in wirebit prod/stg (older pools)
- Email Destination masking is aggressive: f***@e***
* feat(cognito): add verification code store, message dispatcher and SNS inspection
Introduces the foundation for full Cognito auth flow emulation:
- VerificationCodeService: 6-digit codes hashed with per-code salt, persisted
via StorageFactory with TTL + 30s rate-limit + 5-attempt invalidation.
- VerificationCode model: serializable to disk for filesystem storage mode.
- CognitoMessageDispatcher: renders VerificationMessageTemplate ({####}
placeholder + failsafe), dispatches via SesService (email) or SnsService
(SMS) honoring DeliveryMediums.
- SnsService: now persists every phone publish() as a SentSms record and
exposes getSentMessages()/clearSentMessages().
- SnsInspectionController: GET/DELETE /_aws/sns mirroring SesInspectionController.
- FixtureLoader + 7 AWS Cognito fixtures captured against wirebit-stg pool
(sign-up, confirm-signup error, resend, forgot-password unknown-user, SRP
unknown-user). Relocated from compatibility-tests/ to src/test/resources/
so JUnit can load them via classpath.
Not yet wired to any flow — that's PR #2-5 in a stacked series.
Tests: 22 new (9 VerificationCodeService + 6 dispatcher + 4 SNS inspection +
3 FixtureLoader). Full suite 4336 passing (was 4314), ElastiCacheIntegrationTest
excluded due to local port-6379 collision.
* feat(ses): SesInspectionController supports ?email= filter
Symmetric to SnsInspectionController.?phone= (added in the verification
code store commit). Lets test helpers retrieve the latest email sent to
a specific recipient without filtering client-side over the full message
list.
GET /_aws/ses?email=user@example.com → only messages where the address
is in ToAddresses.
* fix(cognito): align verification dispatcher with AWS and current SES API
Adapt the adopted verification-code foundation to current main and AWS:
- update CognitoMessageDispatcher to the 12-arg SesService.sendEmail signature
- source the MFA SMS message from the user pool's top-level SmsAuthenticationMessage
(it is not part of VerificationMessageTemplate, which only holds SmsMessage)
- match AWS's out-of-the-box default verification message text
- document the 30s resend window and 5-attempt cap as emulation heuristics (not
AWS-published constants) and add TODOs for DefaultEmailOption, medium preference,
and per-purpose TTL that the auth-flow wiring must honour
Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>
* refactor(cognito): drop dead code flagged by static analysis
- remove no-op ctorRequest local in scripts/aws-fixtures-capture.mjs
- drop the unused purpose parameter from emailTemplateKey() and its call site
Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>
* chore(cognito): remove the one-off AWS fixture-capture dev script
The captured aws-cognito/*.json fixtures remain (FixtureLoader uses those); the Node capture tool is not needed in the repo.
---------
Co-authored-by: Ricardo Medina <34877263+ricardomedina98@users.noreply.github.com>
* feat(athena): support DeleteWorkGroup action
* feat(athena): validate WorkGroup name and block deletion of primary workgroup
* fix: validate WorkGroup name pattern in DeleteWorkGroup per AWS constraints
---------
Co-authored-by: mansiverma897993 <vmansi756@gmaail.com>
* fix(msk): poll correct Redpanda admin readiness endpoint
* test(msk): pin RedpandaManager.isReady() to the /v1/status/ready admin path
isReady() resolves an admin URL and polls it for a 200 to decide whether
the Redpanda container is ready, but nothing asserted which path it hits.
Add RedpandaManagerTest.isReadyPollsTheCorrectAdminReadinessPathInNativeMode:
a local HTTP server stands in for Redpanda's admin API (200 on
/v1/status/ready, 404 on /ready — the previously-polled path that always
404s), the Docker container-inspect chain is mocked to resolve the admin
port binding to that server, and isReady() is asserted to report ready.
Reverting ADMIN_READY_PATH to /ready makes the assertion fail, pinning
the fix as a regression guard.
* fix(lambda): normalize backslash ZIP path separators on extraction
PowerShell's Compress-Archive writes ZIP entry names with '\' separators,
violating the ZIP spec (APPNOTE.TXT 4.4.17 mandates '/'). On Linux '\' is a
literal filename character, so a .NET/Blazor publish archive extracted to a
single flat file named "wwwroot\app.css" instead of nested directories,
breaking static-file lookups under /var/task.
Normalize '\' -> '/' before any path handling so such archives extract to the
correct nested paths, matching how real AWS Lambda unpacks them. A trailing
separator is also treated as a directory entry, since the backslash form would
otherwise slip past ZipEntry.isDirectory(). The path-traversal guard now runs
on the normalized name, so "..\..\evil" is still rejected.
Closes#1198
* fix(lambda): warn on backslash ZIP separators instead of normalizing
Real AWS Lambda does NOT normalize '\' to '/' in ZIP entry names — a
PowerShell Compress-Archive entry extracts as a literal-named file. The
previous normalization made Floci more forgiving than AWS, letting broken
packages pass locally and fail on deploy.
Replace the normalization with a clear warning that tells the developer
why the backslash entry is problematic and how to repackage correctly
(tar, pwsh, or dotnet lambda CLI). The traversal guard and containment
check stay as-is.
CloudMapService held a static final SecureRandom, which GraalVM evaluates
at build time and bakes into the image heap with a cached seed, failing the
native build (DisallowedImageHeapObjects). Make it a non-static instance field
on the @ApplicationScoped bean so it is created at runtime instead, matching
how other services (msk, opensearch, rds) construct SecureRandom locally.
Also remove the stray src/main/resources/application.yml.bak that triggered an
"Unrecognized configuration file" warning during the native build.
* feat(eks): support managed node groups (create/describe/list/delete)
aws eks create-nodegroup returned a 400 S3 error ("POST requires ?uploads
parameter") because EksController declared no route for
/clusters/{name}/node-groups, so the request fell through to S3's path-style
catch-all. Add the nodegroup REST routes (which outrank S3's templated path)
plus management-plane node group CRUD.
Node groups are emulated as catalog records that become ACTIVE immediately,
mirroring mock-mode cluster creation; no real worker nodes are provisioned
(k3s schedules pods on its built-in node in real mode).
Closes#1137
* refactor(eks): drop unused nextToken/maxResults params from listNodegroups
CloudFormationResourceProvisioner previously had no case for
AWS::StepFunctions::StateMachine, so stacks containing one fell through
to the default branch that stubs a placeholder ARN and reports
CREATE_COMPLETE without invoking StepFunctionsService. Downstream
EventBridge Pipes that target the state machine then fail at runtime
with "State machine does not exist".
Add a provisioner that:
- Resolves StateMachineName (auto-generating from logical id when absent)
- Resolves DefinitionString and applies DefinitionSubstitutions
(the same ${Var} replacement CloudFormation performs server-side)
- Resolves RoleArn, StateMachineType, and Tags
- Delegates to the existing StepFunctionsService.createStateMachine
- Sets PhysicalId to the canonical ARN (matching AWS Ref semantics)
and exposes the Arn and Name attributes for Fn::GetAtt
Also wire deletion through StepFunctionsService.deleteStateMachine.
Adds an integration test that creates a stack with substitutions,
asserts the resolved definition is stored, asserts CFN outputs return
the canonical ARN and name, and asserts deletion removes the resource.
* feat(ses): publish events to Firehose, EventBridge, and CloudWatch destinations
Extend SES V2 configuration set event publishing so destinations beyond
SnsDestination actually deliver. Previously KinesisFirehoseDestination,
EventBridgeDestination, and CloudWatchDestination were stored but the
publisher logged a warning and skipped. PinpointDestination still skips.
- KinesisFirehoseDestination → single Firehose PutRecord per event;
S3-backed streams flush accumulated records as NDJSON once the default
count threshold is reached.
- EventBridgeDestination → PutEvents entry with Source=aws.ses,
DetailType="Email <EventTypeLabel>", payload as Detail. Region is
stamped on the entry (so matchesPattern + envelope agree on a
non-default region) and Resources is always present (empty when
sourceArn is null — matchesPattern's resources-filter branch casts
entry.get("Resources") unconditionally).
- CloudWatchDestination → MetricDatum to AWS/SES with Unit=Count.
Dimensions resolved from DimensionConfigurations against EmailTags
(MESSAGE_TAG / messageTag), email headers (EMAIL_HEADER / emailHeader),
or ses:configuration-set, falling back to DefaultDimensionValue.
Timestamp left to putMetricData's epoch-seconds default.
Tests
- SesEventPublishingV2IntegrationTest @Order 14-28: per-destination
setup → send → assert, plus a cross-region (eu-west-1) EventBridge
case pinning region propagation end-to-end.
- SesEventPublisherTest (Mockito ArgumentCaptor): the EB PutEvents
entry always carries Resources as an ArrayNode — integration tests
cannot pin this because EventBridgeService.buildEventEnvelope
defaults a missing key via getOrDefault.
Docs
- docs/services/ses.md: replace the SNS-only claim with the four
supported destination types.
* fix(ses): use AWS past-tense detail-type for EventBridge SES events
The EventBridge publisher was emitting "Email Send", "Email Delivery",
etc — derived from the SNS notification eventType vocabulary by
prepending "Email ". AWS uses a separate past-tense vocabulary on
EventBridge: "Email Sent", "Email Delivered", "Email Bounced", "Email
Complaint Received", "Email Rejected", "Email Opened", "Email Clicked",
"Email Rendering Failed", "Email Delivery Delayed", "Email Subscribed"
(see https://docs.aws.amazon.com/eventbridge/latest/ref/events-ref-ses.html).
A customer rule pattern keyed on the AWS value
({"source":["aws.ses"],"detail-type":["Email Delivered"]}) would
silently fail to match Floci events.
Changes:
- Add SesEventPayload.eventBridgeDetailType returning the past-tense
EventBridge vocabulary. Kept separate from eventTypeLabel (which
remains correct for SNS notifications and CloudWatch metric names).
- SesEventPublisher.publishEventBridge uses the new mapping.
Tests
- SesEventPayloadTest.eventBridgeDetailType_matchesAwsPastTenseVocabulary:
pins all 10 mappings against AWS docs.
- SesEventPublishingV2IntegrationTest @Order 29
(eventBridge_detailTypePattern_keyedOnAwsSentValue_matches):
structural pin — creates a rule with EventPattern
{"source":["aws.ses"],"detail-type":["Email Sent"]} and asserts the
SQS target receives the SEND envelope. A regression to "Email Send"
would cause the rule to silently drop the event, failing the test
without relying on any hard-coded assertion string.
- Existing tests updated to assert the AWS values:
SesEventPublishingV2IntegrationTest 4 assertions; sdk-test-java
SesEventPublishingTest 3 assertions.
* fix(ses): emit CloudWatch metric name "RenderingFailure" without space
AWS CloudWatch metric publishing for SES uses "RenderingFailure" (no
space) for the RENDERING_FAILURE event type — verified against real
AWS by configuring a CW event destination on a configuration set,
sending a templated email with a missing TemplateData key to trigger
the rendering failure path, and capturing the new metric name from
`aws cloudwatch list-metrics --namespace AWS/SES`.
Floci's publisher was previously sourcing the CW MetricName from
SesEventPayload.eventTypeLabel, which returns "Rendering Failure" (with
space). That spelling is correct for the SNS notification's eventType
field but wrong for CloudWatch — customer dashboards / alarms keyed on
the AWS-correct "RenderingFailure" never see Floci's metric.
Changes:
- Add SesEventPayload.cloudWatchMetricName returning the CW spelling.
Mirrors eventTypeLabel for every other case so the two stay aligned
in shape; only RENDERING_FAILURE differs.
- SesEventPublisher.publishCloudWatch uses the new mapping.
- SesEventPayloadTest.cloudWatchMetricName_matchesAwsCwSpelling pins
all 10 mappings; RENDERING_FAILURE expectation comes from the live
AWS capture rather than an AWS docs guess.
DELIVERY_DELAY remains as "DeliveryDelay" in this commit — it could
not be triggered conveniently from the SES sandbox (needs genuine SES
backoff), so leaving the existing value rather than guessing. Flagged
in code comments as needing future verification.
The other simple metric names (Send, Delivery, Bounce, Complaint) were
also verified against the same AWS capture and match Floci's existing
spelling byte-for-byte — no change needed for those.
* feat(ec2): implement default security group and main route table creation for VPC
* fix(ec2): update route table association check to use boolean value
* test(ec2): update security group test to validate group name and VPC ID
* fix(ec2): update security group description in Ec2Service and corresponding tests
* test(ec2): fix integration test failures
* fix(ec2): fix integration test error
* feat(ec2): update description
* fix(ec2): fix SG id to use 17 character hex code
* feat(cloudmap): add AWS Cloud Map (servicediscovery) management API
Implements the Route53AutoNaming_v20170314 JSON 1.1 service: namespace
management (HTTP/public-DNS/private-DNS), services, instance register/
deregister, async operation tracking, DiscoverInstances/DiscoverInstancesRevision
(honouring the data- host prefix), instance health status, and tags.
Dispatched via AwsJson11Controller; storage through StorageFactory; config in
EmulatorConfig + application.yml. Covered by an in-repo RestAssured integration
test and an AWS SDK v2 ServiceDiscoveryClient compatibility test.
* refactor(cloudmap): drop unused prefix variable in scanInstances
EKS cluster creation and managed node groups attach a set of AWS managed
policies that floci did not seed, so GetPolicy / AttachRolePolicy failed with
NoSuchEntity (e.g. AmazonEKSClusterPolicy, AmazonEKSVPCResourceController),
breaking the terraform-aws-modules/eks module and the EKS console flow.
Add the standard set to the seeded catalog (all path "/"):
AmazonEKSClusterPolicy, AmazonEKSServicePolicy, AmazonEKSVPCResourceController,
AmazonEKSWorkerNodePolicy, AmazonEKS_CNI_Policy. Documented in the IAM managed
policy catalog (docs/services/iam.md).
Closes#1092
* build: add graphql-java dependency
* feat(appsync): add and extend data models for Phase 2
- Add AdditionalAuthenticationProvider, DomainName, ChannelNamespace, ApiAssociation models
- Add 14 fields to GraphqlApi (apiType, visibility, owner, etc.)
- Change additionalAuthenticationProviders from raw maps to typed list
- Add 6 fields to Resolver (resolverArn, cachingConfig, maxBatchSize, etc.)
- Add dataSourceArn to DataSource
- Rename FunctionConfiguration.arn to functionArn
* feat(appsync): add service and controller changes for Phase 2
* feat(appsync): add service and controller changes for Phase 2
* test(appsync): add Phase 2 integration tests
Add ~60 new tests for:
- Model completeness (new fields, ARNs, functionArn rename)
- Domain names CRUDL + associate/disassociate
- Channel namespaces CRUDL + update
- Merged API associations CRUDL
- Enhanced metrics
- Schema registry parsing with AWS scalars and extensions
- Directive registration (aws_api_key, aws_subscribe, deprecated, unknown)
- Edge cases (null auth providers, maxBatchSize 0, cleanup on delete)
* test(appsync): add AWS scalar unit tests
Test all 17 AWS scalars:
- All registered in AppSyncScalarRegistry
- AWSDateTime, AWSJSON, AWSEmail parse valid/invalid values
- AWSTimestamp and AWSShort range validation
- AWSURL and AWSPhone format validation
* test(appsync): add SDK compatibility tests for Phase 2
Validate that the AWS SDK Java v2 can read:
- dataSourceArn() on CreateDataSource response
- resolverArn() on CreateResolver response
- functionArn() on CreateFunction response
- BadRequestException on invalid schema creation
* docs(appsync): add Phase 2 operations, schema registry, and AWS scalars documentation
- Add Domain Names, Channel Namespaces, Merged API Associations, Enhanced Metrics
- Document AWS scalar types (17 scalars with validation rules)
- Document AppSync directives (8 directives with locations)
- Update Not Implemented section with future phase references
- Add CLI examples for domain names and channel namespaces
- Update cascade delete to include channel namespaces and domain associations
* docs: add AppSync to service tables, env vars, storage config, and SDK README
- README.md: add AppSync to category table, detailed notes, and architecture diagram
- docs/index.md: add AppSync to supported services table, fix count to 52
- docs/configuration/environment-variables.md: add FLOCI_SERVICES_APPSYNC_ENABLED
- docs/configuration/advanced/application-yml.md: add appsync config block
- docs/configuration/storage.md: add AppSync per-service storage override
- compatibility-tests/sdk-test-java/README.md: add AppSyncTest to services table
* fix(appsync): reuse ObjectMapper and fix AWSJSON serialize for non-string values
AWSJSON scalar was creating a new ObjectMapper on every parseValue() call. serialize() used toString() which produces invalid JSON for Map/JsonNode results.
* fix(appsync): strip string literals and comments before unknown directive validation
The regex @(\w+) incorrectly flagged @ mentions inside GraphQL string literals and comments as unknown directives.
* fix(appsync): prevent silent overwrite on creates, validate required fields and input values
- Add existence checks on createDataSource, createResolver, createType,
createChannelNamespace, createMergedApiAssociation (→ ConflictException 409)
- Validate authenticationType is required on createGraphqlApi
- Validate typeName is required on createResolver
- Validate dataSourceName exists on createResolver and createFunction
- Prevent associateApi from silently overwriting existing association
- Enforce API key limit (max 2 per API)
- Fix expires parsing to accept ISO 8601 strings, throw on invalid values
- Fix castInt overflow detection
- Fix updateApiKey expires validation (was silently swallowing errors)
- Change InvalidNextTokenException to BadRequestException (AWS standard)
- Fix maxResults=0 to return empty page
- Fix getIntrospectionSchema to throw 404 instead of returning null
- Fix tags with null values (was producing literal string "null")
* test(appsync): fix cascade delete test to create data source before function, align with new validation
* refactor(appsync): remove dead code and unused hasSchema()
- Delete AppSyncDirectiveRegistry.java (100 lines, never used)
- Delete DirectiveValidator.java (45 lines, never called)
- Remove hasSchema() from SchemaRegistry (never called)
* fix(appsync): scalar null-safety, type validation, and DNS resolution
- Add null checks to 5 serialize() methods (AWS_TIMESTAMP, AWS_LONG,
AWS_INTEGER, AWS_BOOLEAN, AWS_FLOAT) to prevent NPE
- Fix AWS_TIMESTAMP parseValue() ClassCastException on String input
- Replace InetAddress.getByName() with regex in AWS IPAddress to
prevent DNS resolution (SSRF concern)
- AWSBoolean now rejects non-boolean values (matches AppSync behavior)
* refactor(appsync): centralize directive definitions in AppSyncDirective enum
- Add AppSyncDirective enum as single source of truth for directive
names and SDL definitions
- Update AppSyncSchemaParser to use enum instead of duplicated strings
- Eliminates 3 sources of truth (validateNoUnknownDirectives Set,
injectDirectiveDefinitions SDL, and formerly AppSyncDirectiveRegistry)
* perf(appsync): cache scalarMap in AppSyncScalarRegistry
- Initialize scalarMap once in constructor as unmodifiableMap
- Avoids recreating HashMap on every call (was called twice per
schema parse)
* test(appsync): add tests for scalar fixes and behavior changes
- Add tests for null-safety in serialize() (5 scalars)
- Add test for AWSTimestamp parseValue with String input
- Add tests for AWSIPAddress regex validation (IPv4, IPv6, invalid)
- Add tests for AWSBoolean rejecting non-boolean values
- Add test for scalarMap caching
* test(sdk): add AWS scalars schema creation test
Verifies that schemas with AWS scalar types (AWSDateTime, AWSJSON,
AWSIPAddress, AWSBoolean) parse correctly via the SDK.
* fix(appsync): correct API paths to match AWS documentation
- Channel namespaces: /v1/ → /v2/, channelnamespaces → channelNamespaces
- Domain association: /apis → /apiassociation
- Remove ListApiAssociations (not a real AppSync operation)
- Remove GetEnhancedMetricsConfig (not a real AppSync operation)
- Rename Merged API Association to Source API Association with correct paths:
- AssociateSourceGraphqlApi: POST /v1/mergedApis/{id}/sourceApiAssociations
- GetSourceApiAssociation: GET /v1/mergedApis/{id}/sourceApiAssociations/{id}
- ListSourceApiAssociations: GET /v1/apis/{apiId}/sourceApiAssociations
- DisassociateSourceGraphqlApi: DELETE /v1/mergedApis/{id}/sourceApiAssociations/{id}
* feat(appsync): add SourceApiAssociation models
Add SourceApiAssociation, SourceApiAssociationConfig, and
SourceApiAssociationSummary models to support merged/source API
association operations per AWS AppSync API Reference.
* feat(appsync): add ChannelNamespace support models
Add AuthMode, HandlerConfig, HandlerConfigs, Integration, and
LambdaConfig models for ChannelNamespace handler configuration
per AWS AppSync API Reference.
* fix(appsync): fix ApiAssociation and ChannelNamespace models
ApiAssociation: remove source/merged API fields, keep only domain
association fields (apiId, associationStatus, deploymentDetail,
domainName) per AWS AppSync API Reference.
ChannelNamespace: add missing fields (channelNamespaceArn,
codeHandlers, created, handlerConfigs, lastModified,
publishAuthModes, subscribeAuthModes, tags) per AWS docs.
* feat(appsync): add missing service methods and fix response models
- associateApi now returns full ApiAssociation object
- createMergedApiAssociation returns SourceApiAssociation
- createSourceApiAssociation returns SourceApiAssociation
- getSourceApiAssociation validates mergedApiId
- listSourceApiAssociations returns SourceApiAssociationSummary
- Add updateSourceApiAssociation method
- Add deleteMergedApiAssociation method
- ChannelNamespace: populate arn, timestamps on create/update
* feat(appsync): fix response formats and add missing endpoints
- associateMergedGraphqlApi: response key apiAssociation → sourceApiAssociation
- disassociateSourceGraphqlApi: returns 200 + body (not 204)
- associateApi: returns full ApiAssociation from service
- Add POST /v1/mergedApis/{id}/sourceApiAssociations/{assocId} (UpdateSourceApiAssociation)
- Add DELETE /v1/sourceApis/{id}/mergedApiAssociations/{assocId} (DisassociateMergedGraphqlApi)
* test(appsync): fix and add integration tests for new endpoints
- Fix associateSourceGraphqlApi: use mergedApiId and sourceApiAssociationStatus
- Fix deleteSourceApiAssociation: expect 200 with body (not 204)
- Add updateDomainName test
- Add associateMergedGraphqlApi test
- Add updateSourceApiAssociation test
- Add disassociateMergedGraphqlApi test
* test(appsync): add SDK tests for missing operations
- Add updateDomainName test
- Add associateMergedGraphqlApi test
- Add updateSourceApiAssociation test
- Add disassociateMergedGraphqlApi test
- Fix test ordering for new domain tests
DescribeLogStreams, PutLogEvents, GetLogEvents, and FilterLogEvents now
accept either logGroupName or logGroupIdentifier. When an ARN is provided,
the log-group name is extracted from the :log-group: segment (with
trailing :* tolerated). Log-stream identifiers are similarly stripped of
the :log-stream: prefix so SDK responses can round-trip cleanly.
DescribeLogStreams responses also include a per-stream arn field.
Closes#1164
* fix(ecs): retain inactive services for terraform draining and recreation with correct idempotency
* fix(ecs): enforce strict aws compliance for service lifecycles and idempotency
- retain inactive services
- added status filters to listServices and listServicesByNamespace
- wrote a shared extractServiceName helper
* feat(ecs): honour task-def volumes + container mountPoints
Implements EC2-launch-type ECS host-bind semantics: a task definition may
declare task-level volumes ({name, host.sourcePath}) and each container
definition may reference them via mountPoints ({sourceVolume, containerPath,
readOnly}). At RunTask launch, each mountPoint resolves its source volume to
the host source path and bind-mounts it into the container (read-only via
withReadOnlyBind, read-write via withBind); unresolved volume references are
skipped with a warning.
This lets stock images be launched with per-task config bind-mounted at a
fixed container path, instead of baking config into per-image wrappers.
- model: Volume, MountPoint records; volumes on TaskDefinition, mountPoints on
ContainerDefinition
- EcsJsonHandler: parse + serialize round-trip for both
- EcsContainerManager.startTask: resolve volumes and wire binds
- tests: JSON wire-path round-trip + bind-by-access-mode (Docker-free)
* fix(ecs): fail loudly when a task definition resolves zero container definitions
RunTask/StartTask on a task definition with no container definitions used to
launch zero containers silently: the per-container loop was a no-op, the task
still transitioned through PENDING towards RUNNING, and callers polling
DescribeTasks waited forever on a task with nothing behind it.
Validate up front in launchTasks (covers RunTask and StartTask, docker and
mock mode alike): WARN and throw a ClientException (HTTP 400) before any task
is created, consistent with how unresolved task definitions fail.
* fix(cloudwatch): tag rpc-v2-cbor timestamp lists so GetMetricData decodes
GetMetricData responses encode MetricDataResults[].Timestamps as a list, but
the rpc-v2-cbor serializer only tagged scalar fields named "Timestamp". The
untagged list elements caused aws-sdk-go-v2 (and the OpenTelemetry Collector
awscloudwatch metrics receiver) to fail decoding with "unexpected value type
cbor.Uint".
Carry timestamp context into array elements and match timestamp members by
their "Timestamp"/"Timestamps" suffix, so every element of a timestamp list is
emitted as a CBOR tag(1) value (epoch seconds, RFC 8949 3.4.2) with integer-ness
preserved. Scalar timestamp handling is unchanged.
Tests:
- AwsJsonCborSerializerTest: asserts tag(1) bytes for scalar and list timestamps,
integer preservation, and that non-timestamp numbers stay untagged.
- Go SDK compatibility suite: a GetMetricData case that exercises the real
aws-sdk-go-v2 CBOR client end to end.
* apply copilot suggestions to tests
Add UpdateConfigurationSetSendingEnabled (SES v1 Query) and
PutConfigurationSetSendingOptions (SES v2 REST, PUT
/v2/email/configuration-sets/{name}/sending) to toggle email sending
on a single configuration set, complementing the existing
account-level UpdateAccountSendingEnabled / PutAccountSendingAttributes
toggle. The two APIs share state: both write
`ConfigurationSet.sendingEnabled` (Boolean, null/true = enabled).
Enforcement is centralized in SesService.validateConfigurationSet,
which is called by SendEmail, SendRawEmail, and SendBulkTemplatedEmail
(v1 and v2 paths). When the CS's sendingEnabled is false, the send is
rejected with SendingPausedException + "Sending is paused for
configuration set <name>" — matching the exact wire shape AWS returns
in production (verified via `aws sesv2 send-email` against an AWS
account with a disabled CS; both ErrorCode and Message reproduce as-is).
Read-back paths:
- v2 GetConfigurationSet returns SendingOptions: {SendingEnabled}
- v1 DescribeConfigurationSet with `reputationOptions` attribute
returns ReputationOptions/SendingEnabled (matches the AWS v1 wire
contract where SendingEnabled lives under ReputationOptions)
The v1 action is also added to AwsQueryController.SES_ACTIONS so that
action-name-based service routing recognizes it.
Tests
- SesConfigurationSetSendingOptionsV2IntegrationTest (13 cases): toggle
via both APIs, cross-API state sharing, SendEmail rejection with
SendingPausedException when disabled, read-back via Get/Describe,
bad-request validation, unknown CS returns 404 via v2.
- SesConfigurationSetSendingTest (SDK compat, 9 cases): AWS Java SDK
v2 marshalling of both APIs, with sendEmail rejection asserted as
`SendingPausedException` (the AWS SDK class corresponding to the
matched server-side error code).
Docs
- docs/services/ses.md: list both APIs in their respective tables.