Trying to make an adjustment to `stack/catalog/eks...
# atmos
s
Trying to make an adjustment to
stack/catalog/eks/mixins/k8s-1-32.yaml
so that it applies some dynamic values from a running plan in the addons config values. I've tried a lot of variations but cannot get the vars to populate. Example using go templating syntax:
Copy code
configuration_values: |
{
  "ExampleAttr1": "static-prefix-{{.vars.environment}}-{{.vars.tenant}}-{{.vars.stage}}",
  "ExampleAttr2": ...
}
Is there a way to get this to work?
✅ 1
a
s
Nope, it seems we have not kept up with changes to that file. Adding it in now, thank you!
a
put this in
atmos.yaml
Copy code
# `Go` templates in Atmos manifests
# https://atmos.tools/core-concepts/stacks/templates
# https://pkg.go.dev/text/template
templates:
  settings:
    enabled: true
    evaluations: 1
    # https://masterminds.github.io/sprig
    sprig:
      enabled: true
    # https://docs.gomplate.ca
    gomplate:
      enabled: true
      timeout: 10
      # https://docs.gomplate.ca/datasources
      datasources: {}
s
After adding this config our git action
cloudposse/github-action-atmos-affected-stacks@v4
has started failing with
template: describe-stacks-all-sections:55: function "team" not defined
. Is this a common issue? if not I can address it outside of this slack thread
seems a bump of atmos
1.174.0
->
1.83.1
may have resolved it. Thanks for help with the
atmos.yaml
!
👍 1