Skip to content

A step by step guide for using the package aws-ssm-copy in a virtural env to execute commands

Notifications You must be signed in to change notification settings

Fmacmak/aws-ssm-copy-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps to copy from '/dev' to '/beta' in SSM using credentials from saml2aws and aws-ssm-copy. For more info see https://github.com/binxio/aws-ssm-copy
NOTE: >python == v.3.6 is needed to use aws-ssm-copy
This is a sample dry run command = "aws-ssm-copy -r --dry-run --target-path /destination /source"

Steps.

1. Login with saml2aws. replace profile with your saml2aws profile.
$ saml2aws login -a <profile> --mfa Auto

2. Create a .env file and populate with credentials using
$ saml2aws script

3. Modify the command you intend to run with aws credentials on Line 8 of command.py.

4. Create a virtual environment .venv
$ python3 -m venv .venv
$ source .venv/bin/activate

5. Or activate the virtual env using 
$ source .venv/bin/activate

6. Install the required packages in the requirements.txt
$(.venv) pip install -r requirements.txt

7. Execute the intended command using
$(.venv) python3 command.py


About

A step by step guide for using the package aws-ssm-copy in a virtural env to execute commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages