Demonstration of Terraform provider mirror setup in a docker image, with support for multiple versions of individual providers.
AWS Account & Credentials
Create secrets.env
file with commands to establish AWS credentials. We use keyconjurer so my secrets.env
file looks like:
$(keyconjurer get dev-account --role=GL-PowerUser)
but a more traditional secrets.env
file might look like:
export AWS_ACCESS_KEY_ID=<key id goes here>
export AWS_SECRET_ACCESS_KEY=<access key goes here>
export TF_VAR_access_key=$AWS_ACCESS_KEY_ID
export TF_VAR_secret_key=$AWS_SECRET_ACCESS_KEY
source secrets.env
make init
make build
make destroy