Thomas Spear
09/30/2025, 11:29 PMcomponents:
terraform:
postgres-database-base:
metadata:
type: abstract
vars:
resource_names:
application_schema_name: "{{ .vars.application | replace "-" "_" }}"
Produces:
invalid stack manifest 'catalog/postgres-database-base.yaml'
yaml: line X: did not find expected key
.vars.application is properly defined, removing the | replace "-" "_" avoids the error but then produces the .vars.application value as expected, containing dashes instead of underscores. Atmos 1.182.0Thomas Spear
09/30/2025, 11:30 PMstrings.ReplaceAll to work either. Same output with application_schema_name: "{{ .vars.application | strings.ReplaceAll "-" "_" }}"Andriy Knysh (Cloud Posse)
10/01/2025, 12:48 AMapplication_schema_name: '{{ .vars.application | replace "-" "_" }}'Andriy Knysh (Cloud Posse)
10/01/2025, 12:49 AMThomas Spear
10/01/2025, 2:01 PMAndriy Knysh (Cloud Posse)
10/01/2025, 2:02 PMThomas Spear
10/01/2025, 10:33 PM