Check discussions
- Install terraform
- Create IAM user with all ec2 permissions
- Install aws sdk and login with that IAM user
- Create a ssh key (follow some aws or terraform tutorial for instructions)
- Update
public_key
in script with your ssh key (this should be in a variable later on) - Now you should be able to work with terraform