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

wantedly/dockerfile-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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