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

Latest commit

 

History

History
48 lines (38 loc) · 1.36 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.36 KB

Terraform Docker Image

Build Status Docker Repository on Quay.io

Docker Image for Terraform. Please see official document for more information about Terraform.

SUPPORTED TAGS

  • latest
  • Terraform 0.8.7

HOW TO USE

# Get the Docker image
$ docker pull quay.io/wantedly/terraform:latest

# Prepare .tf files
$ ls terraform
aws.tf s3.tf rds.tf

# Run `terraform plan`
$ docker run \
    --rm \
    -it \
    -e AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXX \
    -e AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxx \
    -e AWS_DEFAULT_REGION=ap-northeast-1 \
    -v /path/to/terraform:/terraform \
    quay.io/wantedly/terraform:latest \
    terraform plan

# Run `terraform apply`
$ docker run \
    --rm \
    -it \
    -e AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXX \
    -e AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxx \
    -e AWS_DEFAULT_REGION=ap-northeast-1 \
    -v /path/to/terraform:/terraform \
    quay.io/wantedly/terraform:latest \
    terraform apply

LICENSE

MIT License