Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support YAML Explict Types #267

Open
osterman opened this issue Nov 29, 2022 · 0 comments
Open

Support YAML Explict Types #267

osterman opened this issue Nov 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@osterman
Copy link
Member

osterman commented Nov 29, 2022

what

Support YAML "explicit types" used in numerous other projects, like Home Assistant.

why

  • Greater flexibility to organize configurations
  • Greater extensibility; should be able to add more of these explicit types.

Examples

  • !env_var FOO will insert the value of the FOO environment variable (inspired by Home Assistant YAML)
  • !unset will delete the value from the stack configuration (A YAML way of undefining a value without removing the key #227)
  • !include FILE will insert the YAML contents of the file at that position with proper indentation
  • !include_dir DIR will insert all the YAML files in lexicographic order with the proper indentation
  • !secret aws/ssm FOO will read the value from AWS SSM and insert the value into the in-memory stack configuration

Set the CLOUDFLARE_API_KEY for the cloudflare provider.

env:
  CLOUDFLARE_API_KEY: !secret aws/ssm FOO

Related

#227

See Also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant