This message was deleted.
# yaml
s
This message was deleted.
s
Do you have a reference to that configuration value in the
config
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.
r
@salmon-account-74572 thanks for the suggestion. I didn't know I needed a
config
section in
Pulumi.yaml
. I'll look into that
@salmon-account-74572 I tried that, perhaps I'm missing something simple. So this value
aws_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:
Copy code
config:
...
  aws_account_id:
    type: string
Then I printed the output like so:
Copy code
outputs:
  # Debug printouts
  accIDString: "${aws_account_id}"
And it's still getting converted.
Copy code
Outputs:
  + accIDString               : 2.809102044e+10
I also tried a slightly different way, but this just printed the variable name
Copy code
config:
  awsAccountID: 
    type: string
    default: ${aws_account_id}
...
outputs:
  # Debug printouts
  accIDString: "${awsAccountID}"
~~~~~~~~
Outputs:
  + accIDString               : "${aws_account_id}"
b
@rich-motorcycle-71684 this looks like a bug, could you file an issue?
r