Skip to content

Backup your legacy Hashicorp Atlas Terraform environments prior to May 31st

Notifications You must be signed in to change notification settings

josephgimenez/LegacyAtlasBackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LegacyAtlasBackup

Backup your legacy Hashicorp Atlas environment prior to May 31st

This script takes three parameters:

-c: cookie value pulled from your browser after successfully authenticating against atlas.hashicorp.com In Chrome, you can look at the dev tools, and look at the header for potentially any response from Atlas and pull the _atlas_session_data cookie value, stopping at the first ';'.

-p: path to parent folder where session states will be stored

-o: organization name (when going to atlas.hashicorp.com, this will show as ?username=xyz in the url)

How to run

go run main.go -c "ZktQRWF2aUIyM1MrZ0lyUSs3bTIvNS90WUUvQU9rVWFn[...];" -p "/tmp" -o "OrgName"

This will iterate through all environments for your organization and grab the latest state and save to path specified by '-p'.

About

Backup your legacy Hashicorp Atlas Terraform environments prior to May 31st

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages