Open captn3m0 opened 7 years ago
input.yml
SECRET_VAR_1: HELLO
secret2: world
And then if you try to render:
input.j2.py
super_secret = "{{file('secret2') || lookup('secret_fallback'}}"
export ENV=prod
alohomora cast input.j2.py --env $ENV --app hooli --file $ENV.input.yml
Basically allow this:
Pick up values from the input file if present, otherwise pick them up from credstash.