- Use
brew install terraformto install terraform for mac
- Add a profile to
~/.aws/credentialsor~/.aws/config - Create a new keypair inside the AWS region where the instance should be deployed
- Enter
terraform planto verify the output andterraform applyto apply the changes - You will be prompted to enter the
aws_profile,aws_region,amiandkey_name. Once apply is complete, verify if you can ssh to the instance - Use
terraform destroyto delete the instance setup in AWS