Hi. I have question regarding a wierd issue I"m e...
# yaml
a
Hi. I have question regarding a wierd issue I"m encountering using Pulumi with the GCP plugin: I have a stack config file (
Pulumi.dev.yaml
) with the following content:
Copy code
config:
  slackChannelId: "1885094632310303719"
And a Pulumi program file (
Pulumi.yaml
) with the following content:
Copy code
resources:  
 alert-policy:
    type: gcp:monitoring:AlertPolicy
    properties:
      notificationChannels:
        - "projects/12345678/notificationChannels/${slackChannelId}"
When running the pogram, the
slackChannelId
parameter is being referenced as
projects/12345678/notificationChannels/1.8850946323103037e+18
instead of it's string value representation
projects/12345678/notificationChannels/1885094632310303719
So, it looks like it's evaluating the value for the
slackChannelId
parameter as a number instead of a string. I've already tried a lot things (e.g. specifying the
type
of the parameter as string, using single quotes for the paramter value) but nothing seems to work. Does anyone have an idea of how to fix this?