Terraform Tutorial on AWS - Getting Started¶
- Mentorship/On-the-Job Support/Consulting - Calendar or me@antonputra.com
- Source Code: GitHub Repo.
Commands from the Tutorial¶
Note
If you find a mistake or the instructions are outdated, please send me an email.
- Initialize Terraform and download providers.
- Create a plan with changes Terraform would perform.
- Create a local AWS profile.
- Retrieve the current user from AWS and verify authentication.
- Add a local AWS profile.
- Verify that the user can assume the IAM role.
aws sts assume-role \
--role-arn arn:aws:iam::424432388155:role/terraform-admin \
--role-session-name terraform \
--profile my-user
- Apply infrastructure changes to your AWS account.
- Automatically apply changes, used mostly in CI/CD.
- Apply changes specific to a single resource.
- Import infrastructure component to Terraform.
- Remove infrastructure component from Terraform management.
Success
If you find it useful, subscribe to my YouTube Channel.