= AWS ECS tests

By default the tests run in WireMock playback mode using pre-recorded mappings from `src/test/resources/mappings/`.

NOTE: Amazon ECS is not supported by Floci, so the `Aws2TestEnvCustomizer` SPI (used by other AWS modules to start a Floci container) cannot be used here. WireMock is used instead to simulate the ECS API in the default (non-real AWS) test mode.

NOTE: WireMock recording mode is not supported for AWS services. When WireMock acts as an HTTPS reverse proxy (required for endpoint override), it modifies request headers which breaks AWS SigV4 signature validation.

== Running against real AWS

Refer to the xref:../README.adoc[AWS 2 integration tests README] for general instructions on how to set up AWS credentials.

The AWS credentials must have the following IAM permissions:

* `ecs:ListClusters`
* `ecs:DescribeClusters`
* `ecs:CreateCluster`
* `ecs:DeleteCluster`

=== Running tests directly against real AWS

[source,shell]
----
export AWS_ACCESS_KEY=<your-access-key-id>
export AWS_SECRET_KEY=<your-secret-access-key>
export AWS_REGION=us-east-1
export CAMEL_QUARKUS_START_MOCK_BACKEND=false
----
