Skip to content

Scalr/scalr-state-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install dependencies

pip3 install -r requirements.txt

Download all state files

download_state_files.py --host example.scalr.io --token xxx --output-dir /tmp/scalr-state-files

Environment variables

Instead of providing the host and token on the command line, you can set the following environment variables:

export SCALR_HOST=example.scalr.io
export SCALR_TOKEN=xxx

Automatically upload state file to s3 bucket

Put the following in the "POST-APPLY" hook:

aws s3 cp <(terraform show) s3://my-bucket/my-state.json

Make sure to set the following environment variables in your workspace:

AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages