Prerequisites:
AWS Account IAM User with Access Key & Secret Key AWS CLI (Download) Terraform (Download)
- Configure local machine:
Install AWS CLI
Open terminal(linux/mac)/command prompt(windows)
Run aws configure
Provide the access key, secret key and region as requested
2. Setup 2-tier Infrastructure:
Unzip downloaded terraform file
Add terraform executable file to your environment variable (Optional)
Download all the files leaving .gitignore and README.md files. Note: You must generate your own private & public key
Open terminal(linux)/command prompt(windows)
Run terraform init command
Run terraform apply command. Provide yes as input when asked and hit enter
Hurray!! Your infrastructure is now ready.