https://github.com/rixrix/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
https://github.com/rixrix/terraform-acloudguru-csa
aws terraform training-materials
Last synced: 4 months ago
JSON representation
Terraform version of ACloudGuru's Certifified Solutions Architect training, more info here: https://medium.com/@mindginative/acloudgurus-aws-csaa-labs-terraform-version-c1028f36cb93
- Host: GitHub
- URL: https://github.com/rixrix/terraform-acloudguru-csa
- Owner: rixrix
- Created: 2018-09-23T01:24:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T06:10:33.000Z (over 7 years ago)
- Last Synced: 2025-01-23T05:15:17.353Z (about 1 year ago)
- Topics: aws, terraform, training-materials
- Language: HCL
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ACloudGuru's CSAA Course - Terraform Version
> Infrastructure as a Code
# Requirements
- Install Terraform https://www.terraform.io/
- AWS Account https://aws.amazon.com
- ACloudGuru account/subscription http://acloud.guru/
# 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](https://aws.amazon.com/organizations/) 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="" -out vpc-plan.tfstate
```
- Apply the current Terraform plan
```
$> terraform apply -var 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
- Provision VPC on Terraform https://github.com/devops-recipes/prov_aws_vpc_terraform
- Amazon Linux AMI https://aws.amazon.com/amazon-linux-ami/