Setup Terraform Use brew install terraform to install terraform for mac Basic Setup Add a profile to ~/.aws/credentials or ~/.aws/config Create a new keypair inside the AWS region where the instance should be deployed Enter terraform plan to verify the output and terraform apply to apply the changes You will be prompted to enter the aws_profile, aws_region, ami and key_name. Once apply is complete, verify if you can ssh to the instance Use terraform destroy to delete the instance setup in AWS