Hoverhuang-er / terraform-starter-repo

Sample of How to use Terraform managed Cloud Infrastructure as stack code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-starter-repo

Sample of How to use Terraform managed Cloud Infrastructure as stack code

How to verify AWS Credentionals and Session

aws sts get-caller-identity

Create EC2 by Terraform

  • Initilze Terraform AWS Provider
cd compute/ec2 && terraform init
  • Show out EC2 resource when it want to build
cd compute/ec2 && terraform plan
  • Approval to Create AWS EC2
cd compute/ec2 && terraform apply

Create CodeDeploy with Blue/Green Deploy by Terraform

  • Initilze Terraform AWS Provider
cd developer-tools/codedeploy && terraform init
  • Show out EC2 resource when it want to build
cd developer-tools/codedeploy && terraform plan
  • Approval to Create AWS EC2
cd developer-tools/codedeploy && terraform apply

About

Sample of How to use Terraform managed Cloud Infrastructure as stack code

License:BSD 2-Clause "Simplified" License


Languages

Language:HCL 100.0%