Load environment variables from AWS S3.
Create a bucket and, put a dotenv format file.
Optionally, you can use base64 encoded file.
$ cat dotenv
# This is a comment
ENABLE_DEBUG_MODE=y # comment
ENABLE_TEST_MODE=${ENABLE_DEBUG_MODE}"
$ cat dotenv | base64 | aws s3 cp - s3://your-bucket-name/dotenv # Upload to s3
Set below environment variables, and aws credential environment variables.
S3ENV_BASE64ENCODE=y
S3ENV_BUCKET_NAME=your-bucket-name
S3ENV_KEY_NAME=dotenv
$ source <(s3env show --export)
$ echo $ENABLE_DEBUG_MODE
y
$ s3env run irb
irb(main):001:0> ENV["ENABLE_DEBUG_MODE"]
=> "y"