mirror of
https://github.com/sidpalas/devops-directive-terraform-course.git
synced 2025-12-10 12:51:14 +00:00
Update readmes for modules 1-3
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
## 02 - Overview + Setup
|
||||
|
||||
## Install Terraform
|
||||
1) install terraform
|
||||
|
||||
Official installation instructions from HashiCorp: https://learn.hashicorp.com/tutorials/terraform/install-cli
|
||||
|
||||
## AWS Account Setup
|
||||
2) create non-root AWS user
|
||||
3) Add AmazonEC2FullAccess
|
||||
4) Save Access key + secret key (or use AWS CLI `aws configure` -- https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html)
|
||||
|
||||
AWS Terraform provider documentation: https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication
|
||||
|
||||
1) create non-root AWS user
|
||||
2) Add the necessary IAM roles (e.g. AmazonEC2FullAccess)
|
||||
3) Save Access key + secret key (or use AWS CLI `aws configure` -- https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html)
|
||||
|
||||
## Hello World
|
||||
|
||||
`./main.tf` contains minimal configuration to provision an EC2 instance.
|
||||
|
||||
1) `aws configure`
|
||||
2) `terraform init`
|
||||
3) `terraform plan`
|
||||
4) `terraform apply`
|
||||
|
||||
Reference in New Issue
Block a user