Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 857 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 857 Bytes

micropost-formation

Core components

  • AWS VPC
  • AWS ECS with ALB and AutoScaling
  • AWS RDS
  • Cloudflare DNS and CDN

Dependencies

  • Terraform
  • AWS CLI
  • direnv

Getting started

Configure settings.

$ cp .envrc.example .envrc
$ vi .envrc
$ direnv allow

Init

$ export ENV=stg
$ source ./scripts/switch-role.sh
$ terraform init
$ terraform get
$ terraform workspace select ${ENV}

Plan and Apply

$ ./terraform-env.sh stg plan
$ ./terraform-env.sh stg apply

Related Projects