- run
ssh-keygen - Save SSH keys under
~/.ssh/aws_key
- Download and install Terraform
- Authenticate with AWS as described here
- Cd into the tf directory:
cd tf - Run
terraform apply - Copy the public_dns that is in the outputs after the apply finishes
- Run
ssh -i ~/.ssh/aws_key ec2-user@<public_dns>where you paste in the public_dns - On the instance, run
python3 backup.py
- When finished, run
terraform destroy