Skip to content

Instantly share code, notes, and snippets.

View garystafford's full-sized avatar
💭
Happily Coding!

Gary A. Stafford garystafford

💭
Happily Coding!
View GitHub Profile
#!/usr/bin/env ruby
require 'aws-sdk'
# reference: https://www.promptworks.com/blog/handling-environment-secrets-in-docker-on-the-aws-container-service
########## CHANGE THESE VARIABLES ##########
file_to_encrypt = '.env'
file_path = "../../../fav-color-private-stuff/#{file_to_encrypt}"
key_alias = 'demo-key'
#!/usr/bin/env ruby
require 'aws-sdk'
# reference: https://www.promptworks.com/blog/handling-environment-secrets-in-docker-on-the-aws-container-service
# usage: `ruby get_env_from_s3.rb`
########## CHANGE THESE VARIABLES ##########
file_to_decrypt = '.env'
key_alias = 'demo-key'
curl -X POST --data-binary @payload.yaml -H "Content-type: text/x-yaml" http://localhost:4200/some-url/1024