Replies: 1 comment
-
VarsFirst pass proposal at vars behavior YAML/CLItitan.yml vars:
- name: foobar
type: string
default: some_default_value
sensitive: true
databases:
- name: "db_{{ var.foobar }}" titan plan --config titan.yml --vars '{"foobar": "blimblam"}'
titan plan --config titan.yml --vars 'foobar: blimblam' Pythonfrom titan.blueprint import Blueprint
from titan import var
# Deferred style
db = Database(name=var.foobar)
# Interpolation style
db = Database(name="db_{{var.foobar}}")
Blueprint(resources=[db], vars={"foobar": "blimblam"}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There should be a way to pass in vars from the command line or a local vars file
Beta Was this translation helpful? Give feedback.
All reactions