early-keyboard-41388
10/21/2021, 6:30 AMnew
aws.cloudformation.Stack
, but having a lot of issues when using the templateBody
and adding data (ids or ips) from other resources created on same pulumi update run.
I end up with this error on every output:
Calling [toJSON] on an [Output<T>] is not supported. To get the value of an Output as a JSON value or JSON string consider either: 1: o.apply(v => v.toJSON()) 2: o.apply(v => JSON.stringify(v)) See <https://pulumi.io/help/outputs> for more details. This function may throw in a future version of @pulumi/pulumi.
Thanks.templateBody
, and having references to other Pulumi resources. Because it expects an stringify JSON, and with template literals had many errors on deploy of "template_body" contains an invalid JSON
victorious-fountain-7689
10/21/2021, 7:55 AMpulumi.interpolate
? It takes a template string as input which can have Output<string>
referenced inside it, and returns a Output<string>
early-keyboard-41388
10/21/2021, 8:43 AM"template_body" contains an invalid JSON: invalid character 's' looking for beginning of value
templateBody: pulumi.interpolate`{
"Resources": {
"SecurityGroupId": {
"Type": "AWS::SSM::Parameter",
"Properties": {
"Name": "security-group-id-${stage}",
"Type": "String",
"Value": ${servicesSecurityGroup.id}
}
},
(...)
}
Value
field as an Output<string>
. Any particular way Pulumi is expecting?victorious-fountain-7689
10/21/2021, 8:58 AM