Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Cox-Automotive/terradocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

terradocker

coxauto/terradocker

Run Terraform in Docker with the ALKS Provider installed.

Terragrunt is also available.

Running

Terraform

To run Terraform, use the Terraform CLI call just like you normally would do:

docker run -it -v $(PWD):/work \
    -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
    -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
    -e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
    coxauto/terradocker version

Terragrunt

To run Terragrunt you would do:

docker run -it -v $(PWD):/work \
    -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
    -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
    -e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
    --entrypoint terragrunt \
    coxauto/terradocker --version