Created
September 21, 2017 10:04
-
-
Save diasjorge/f77093bdcc008d9f24db6e8bf45f24f0 to your computer and use it in GitHub Desktop.
deploy-backups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'yaml' | |
config = YAML.load(DATA.read) | |
config.each do |name, env_config| | |
puts "setup #{name}" | |
puts %{roly exec -- #{env_config['profile']} env DYNAMODB_BACKUPS_TABLES=#{env_config['tables'].join(',')} serverless deploy --stage #{env_config['stage']}} | |
end | |
__END__ | |
security-dev: | |
profile: security-dev | |
stage: dev | |
tables: | |
- keymaker-configuration | |
- monitoring | |
security-pre: | |
profile: security-pre | |
stage: pro | |
tables: | |
- keymaker-configuration | |
- monitoring | |
security-pro: | |
profile: security-pro | |
stage: pro | |
tables: | |
- keymaker-configuration | |
- monitoring | |
heimdall-dev: | |
profile: heimdall-dev | |
stage: pro | |
tables: | |
- heimdall-availcheck-configuration | |
- heimdall-configuration | |
- heimdall-sg-update | |
- heimdall-testsrv-configuration | |
- heimdall-vpnnode-configuration | |
- monitoring | |
heimdall-pre: | |
profile: heimdall-pre | |
stage: pro | |
tables: | |
- heimdall-availcheck-configuration | |
- heimdall-configuration | |
- heimdall-sg-update | |
- heimdall-testsrv-configuration | |
- heimdall-vpnnode-configuration | |
- monitoring | |
heimdall-pro: | |
profile: heimdall-pro | |
stage: pro | |
tables: | |
- heimdall-availcheck-configuration | |
- heimdall-configuration | |
- heimdall-sg-update | |
- heimdall-testsrv-configuration | |
- heimdall-vpnnode-configuration | |
- monitoring |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment