AWS config video tutorial
- Install AWS-CLI: (https://docs.aws.amazon.com/cli/v1/userguide/install-windows.html)
- Configure AWS:
aws configure
- Check configure user:
aws sts get-caller-identity
Terraform config video tutorial
- Install terraform: Dowload from Install Terraform. Unzip to
C:/terraform
- Config environment variable:
C:/terraform
- Check cmd:
terraform -v
- Export AWS Access Key:
export AWS_ACCESS_KEY_ID={your access key here}
- Export AWS Secret Access Key:
export AWS_SECRET_ACCESS_KEY={your secret access key here}
- Extension VS Code: Terraform, HashiCorp Terraform
- AWS Docs: https://registry.terraform.io/providers/hashicorp/aws/latest
- Create a new folder or
cd
to one - Run
terraform init
- Format code
terraform fmt -recursive
- Plan to see if anything prepare to run:
terraform plan
- Apply to run in the cloud
terraform apply
- (Optional) If you want to tear down the infrastructure created by Terraform when you completed, use
terraform destroy
- CLI command (https://www.terraform.io/cli/commands)
- Systax create resources (https://www.terraform.io/language/resources/syntax)
- Variable and Data (https://www.terraform.io/language/data-sources https://www.terraform.io/language/values/variables)
- Module (https://www.terraform.io/language/modules/syntax)
- AWS Terraform Docs: https://registry.terraform.io/providers/hashicorp/aws/latest/docs
- What is Terraform : https://community.aws/content/2ZCXPWGhX0arg0VsEz4DLa5bqXQ
- Using Terraform to create AWS IoT Things : https://community.aws/content/2iJVs17s7drNneJiB9GdYrNszWw/using-terraform-to-create-aws-iot-things
- S3 Bucket AWS from terraform: https://kodekloud.com/blog/how-to-create-aws-s3-bucket-using-terraform/