Asshad / terraform-acloudguru-csa

Terraform version of ACloudGuru's Certifified Solutions Architect training, more info here: https://medium.com/@mindginative/acloudgurus-aws-csaa-labs-terraform-version-c1028f36cb93

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ACloudGuru's CSAA Course - Terraform Version

Infrastructure as a Code

Requirements

Tips on AWS Policy

In production environment a simple mistake could wreck your production environment especially when you're still trying out Terraform.

AWS Organization

Setup a AWS Organization on top of your current account for testing purpose. This is a lot easier

IAM Permissions

I am using "AWS Organization" for Terraform testing, and I created a special user called rix@terraform with a policy of SystemAdministrator.

HowTo

Each directory is independent from other directory. They maintain their own state

Initialise, Plan it out and Apply

  • Go to a folder

    $> cd ./chapter-8-vpc-part-1
    
  • On initialise your Terraform project

    $> terraform init
    
  • Run "plan" and generate your .tfstate file

    $> terraform plan -var aws_profile="<your aws profile>" -out vpc-plan.tfstate
    
  • Apply the current Terraform plan

    $> terraform apply -var aws_profile="<your aws profile>"
    

Chapter 1 - 7

TBA

Chapter 8

Part 1

  • VPC
    • Internet Gateway
    • 2 Route Tables
    • Private and Public Subnet
    • 2 EC2 assigned to public and private subnet
    • Remote provisioner for inline Bash command eg. install Apache

ToDo

  • Setup a customise policy file for each chapter/example, rather than using SystemAdministrator
  • Add more chapter

Resources

About

Terraform version of ACloudGuru's Certifified Solutions Architect training, more info here: https://medium.com/@mindginative/acloudgurus-aws-csaa-labs-terraform-version-c1028f36cb93


Languages

Language:HCL 100.0%