= AWS EC2 tests

By default, the integration tests run against a Floci container.

== 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:

* `ec2:RunInstances`
* `ec2:DescribeInstances`
* `ec2:StartInstances`
* `ec2:StopInstances`
* `ec2:TerminateInstances`

=== 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
----

NOTE: EC2 instance operations are relatively fast. The tests create, describe, start, stop, and terminate instances in sequence.
