busy-dentist-99842
09/30/2022, 2:08 PMconfig
in a custom Pulumi template. It seems default
can't handle an object for aws:defaultTags
.
Here is my Pulumi.yaml
in the template
name: ${PROJECT}
description: ${DESCRIPTION}
runtime: nodejs
stackConfigDir: config/
template:
description: A minimal AWS TypeScript Pulumi program
config:
aws:defaultTags:
default:
tags:
Tag1: value1
Tag2: value2
aws:region:
description: The AWS region to deploy into
default: us-east-1
I run the pulumi new
command and get the following error
$ pulumi new ~/dev/rs-pulumi-templates/aws-typescript --name sandbox --stack sandbox --yes
error: yaml: unmarshal errors:
line 10: cannot unmarshal !!map into string
The behavior I expect is to get a Pulumi project created with this in the Pulumi.sandbox.yaml
encryptionsalt: v1:X5f2X+HrmBA=:v1:W4AbC74tERwws/44:W9KutY3Gg2o7xh4sMr//DrIeCmj+lQ==
config:
aws:region: us-east-1
aws:defaultTags:
tags:
Tag1: value1
Tag2: value2
I was able to get the configurations I want by running pulumi new
with the --config-path
and --config
flags. I was also able to get the expected result using the pulumi config
command.
Ideally, I'd like to get the expected outcome from the template, not the command line. Any ideas on what I am doing wrong or if it is even possible?
Thanksancient-policeman-24615
09/30/2022, 9:11 PMbusy-dentist-99842
10/03/2022, 12:01 PM