This is my project to learn and explore terraform (in AWS to start).
Follow the instructions here: https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/aws-get-started
$ brew tap hashicorp/tap
$ brew install hashicorp/tap/terraform
To update
$ brew upgrade hashicorp/tap/terraform
If not already done, create an IAM User.
Go to https://console.aws.amazon.com/iam/ and add a new User. Create access key.
Follow the instructions here: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
https://formulae.brew.sh/formula/awscli
brew install awscli
- Configure the AWS CLI with credentials, so it can access the API
aws configure
- get the AWS Access Key ID and AWS Secret Access Key for the IAM user from the formerly created IAM user
- choose an appropriate supported region
- (https://docs.aws.amazon.com/general/latest/gr/rande.html)
- I use Europe (Frankfurt), so use eu-central-1
- use default output format json
Here are the Terraform examples.