sparse-intern-71089
03/27/2023, 12:54 AMsalmon-account-74572
03/27/2023, 2:22 PMconfig
block of your Pulumi.yaml
file? If so, you can specify a type
property there (set it to “string”), and that may help resolve the issue.rich-motorcycle-71684
03/28/2023, 4:11 AMconfig
section in Pulumi.yaml
. I'll look into thatrich-motorcycle-71684
03/28/2023, 5:12 AMaws_account_id
is different for each stack hence its original location in the stack files i.e. Pulumi.develop.yaml
, Pulumi.staging.yaml
etc.
I tried to implement your suggestion by adding a couple of lines under config:
at the top of Pulumi.yaml
like so:
config:
...
aws_account_id:
type: string
Then I printed the output like so:
outputs:
# Debug printouts
accIDString: "${aws_account_id}"
And it's still getting converted.
Outputs:
+ accIDString : 2.809102044e+10
I also tried a slightly different way, but this just printed the variable name
config:
awsAccountID:
type: string
default: ${aws_account_id}
...
outputs:
# Debug printouts
accIDString: "${awsAccountID}"
~~~~~~~~
Outputs:
+ accIDString : "${aws_account_id}"
billowy-army-68599
rich-motorcycle-71684
05/02/2023, 1:08 AM