Based on the internal version by:
In order to run the integration test that works against AWS you need to setup the following envars so the test can pick up the right resources to execute correctly:
CONCORD_TMP_DIR = /tmp/concord
AWS_ACCESS_KEY_ID = [your_aws_access_key]
AWS_SECRET_ACCESS_KEY = [your_aws_secret_key]
TF_TEST_FILE = /path/to/your/main.tf
PRIVATE_KEY_PATH = /path/to/your/<aws_pem_file>
Alternatively, you can setup the following:
- Create an
~/.aws/credentials
file with aconcord-integration-tests
stanza. The access key id and secret key will be taken from theconcord-integration-tests
stanza:
[default]
aws_access_key_id=xxx
aws_secret_access_key=xxx
[concord-integration-tests]
aws_access_key_id=xxx
aws_secret_access_key=xxx
If you do have the standard AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
envars set they will be used as a fallback if the ~/.aws/credentials
file doesn't exist.
- Create a keypair in AWS called
concord-integration-tests
and place the downloaded PEM file here:~/.aws/concord-integration-tests.pem
. This will be used as the private key for the integration test.
The Terraform file used for the test will default the src/test/terraform/main.tf
and the value for the CONCORD_TMP_DIR
envar will be set for you if it is not present.