Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.13 KB

File metadata and controls

50 lines (33 loc) · 1.13 KB

terraform-mirror

Demonstration of Terraform provider mirror setup in a docker image, with support for multiple versions of individual providers.

Sections

Sample App

Prerequisits

AWS Account & Credentials

Setup

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

Reproduction:

source secrets.env
make init
make build
make destroy

Build Images

Related Terraform Documentation