Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 643 Bytes

File metadata and controls

17 lines (14 loc) · 643 Bytes

Create SSH keys

  1. run ssh-keygen
  2. Save SSH keys under ~/.ssh/aws_key

Run Terraform

  1. Download and install Terraform
  2. Authenticate with AWS as described here
  3. Cd into the tf directory: cd tf
  4. Run terraform apply
  5. Copy the public_dns that is in the outputs after the apply finishes

SSH into instance and run the script

  1. Run ssh -i ~/.ssh/aws_key ec2-user@<public_dns> where you paste in the public_dns
  2. On the instance, run python3 backup.py

Destroy instances

  1. When finished, run terraform destroy