In examples here: <https://atmos.tools/core-concep...
# atmos
b
In examples here: https://atmos.tools/core-concepts/stacks/templates/ a
.atmos_stack
is present but it does not exist for me
a
if the imported template is not meant to be processed by Atmos (note that this is a special case, usually you import templates to create "dynamic" Atmos components), then you can use these three attributes:
Copy code
skip_templates_processing - (boolean)

Skip template processing for the imported file. Can be used if the imported file uses Go templates that should not be interpreted by atmos. For example, sometimes configurations for components may pass Go template strings not intended for atmos.

ignore_missing_template_values - (boolean)

Ignore the missing template values in the imported file. Can be used if the imported file uses Go templates to configure external systems, e.g. Datadog. In this case, Atmos will process all template values that are provided in the context, and will skip the missing values in the templates for the external systems without throwing an error. The ignore_missing_template_values setting is different from skip_templates_processing in that skip_templates_processing skips the template processing completely in the imported file, while ignore_missing_template_values processes the templates using the values provided in the context and skips all the missing values

skip_if_missing - (boolean)

Set it to true to ignore the imported manifest if it does not exist, and don't throw an error. This is useful when generating Atmos manifests using other tools, but the imported files are not present yet at the generation time.
Copy code
import:
  - path: "catalog/something.yaml.tmpl" # Path to the imported file with the required .tmpl extension for Go templates
    context:
      foo: bar
      baz: qux
    skip_templates_processing: false
    ignore_missing_template_values: false
    skip_if_missing: false
  - path: "catalog/something.yaml.tmpl"
    context: {}
    skip_templates_processing: false
    ignore_missing_template_values: true
    skip_if_missing: true
b
thanks
but I'm not sure why
.atmos_stack
is not present in the template?
also no matter what the combination I choose this does not work ;c
Copy code
$ atmos terraform plan gcp/vpc/shared/dev -s Platform
 Error

invalid stack manifest 'catalog/gcp/vpc/macro.tmpl'
yaml: line 3: could not find expected ':'
a
please share the template in
catalog/gcp/vpc/macro.tmpl
b
Copy code
components:
  terraform:
{{ range $e := list "dev" "stg" "prd" }}
    gcp/vpc/shared/{{ $e }}:
      backend:
        gcs:
          prefix: terraform/state/vpc/shared/{{ $e }}
      providers:
[...]
      metadata:
        component: gcp/vpc
        type: real
[...]
{{ if hasKey $ "vpc_name" }}
        vpc_name: {{ $.vpc_name }}
{{ end }}
{{ if hasKey $ "host_project_id" }}
        host_project_id: {{ $.host_project_id }}
{{ end }}
{{ if hasKey $ "disable_compute_engine_api_on_destroy" }}
        disable_compute_engine_api_on_destroy: {{ $.disable_compute_engine_api_on_destroy }}
{{ end }}
        env: {{ $e }}
        groups: !terraform.output gcp/folder org {{ $e }}_groups
{{ if hasKey $ "labels" }}
        labels: {{ $.labels }}
{{ end }}
{{ end }}