Skip to content

zero-hack-org/iac-aws

Repository files navigation

Static Badge Static Badge
GitHub code size in bytes GitHub repo size
License
Twitter Follow

iac-aws-common

IaC for AWS commons resource

Environment Settings

Key Description
AWS_ACCESS_KEY_ID Your aws access key id
AWS_SECRET_ACCESS_KEY Your aws secret access key
AWS_DEFAULT_REGION ap-northeast-1

Terraform Reference

Sample env file

  1. Create aws.env file

    • $ touch .env/aws.env
  2. Edit aws.env for docker bind mount

     // aws.env
     AWS_ACCESS_KEY_ID=1234567890
     AWS_SECRET_ACCESS_KEY=1234567890
     AWS_DEFAULT_REGION=ap-northeast-1

Docker image arguments for version

ArgumentName Description
AWSCLI_VERSION AWS Cli (Release)
TERRAFORM_VERSION Terraform (Release)
TERRAGRUNT_VERSION Terragrunt (Release)

Terragrunt plan or apply ...command

How execute terragrunt command

1. Docker build and run container

# Or docker-compose up --build
$ make b_u

2. Exec terragrunt container

# Or docker-compose exec {container-name} /bin/bash
$ make e

3. Execute terragrunt command

$ cd /app

# Or terragrunt run-all plan
$ sh scripts/all_plan.sh

# Or terragrunt run-all apply
$ sh scripts/all_apply.sh