Skip to content

simon-q/ec2-file-copy-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EC2 deploy via SSH

Script that deploys contents of a source folder into a destination folder on a single EC2 instance or across all EC2 instances in an auto scaling group.

Requirements

python -m venv venv
source venv/bin/activate
  • Install Python dependencies
pip install -r requirements.txt

How to run

  • Edit config.py and change values so that it matches your environment
    • EC2_IP_ADDRESS or ASG_NAME - specify target EC2 instance or auto scaling group
    • SSH_USER and SSH_KEY - user and SSH key needed for SSH connection
    • SOURCE - source folder on your local machine
    • TARGET - destination folder on your EC2 instances
    • EXCLUDES - list of paths to exclude
  • Run the script
python main.py

Other links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages