sparse-intern-71089
08/14/2023, 3:31 PMgifted-gigabyte-53859
08/15/2023, 12:49 AMpulumi config set mySecretSlackWebHook --secret
and then reference that variable in the codestraight-fireman-55591
08/15/2023, 10:24 AMstraight-fireman-55591
08/15/2023, 10:27 AMstackWebhook:
type: pulumiservice:index:Webhook
properties:
active: true
displayName: "#channel-test"
organizationName: company
payloadUrl: $SLACK_WEBHOOK_URL
format: slack
error:
+ pulumiservice:index:Webhook stackWebhook creating (1s) error: failed to create webhook: 401 API error: Unauthorized: No credentials provided or are invalid.
+ pulumiservice:index:Webhook stackWebhook **creating failed** error: failed to create webhook: 401 API error: Unauthorized: No credentials provided or are invalid.
Curl test
curl -X POST <https://hooks.slack.com/services/>....... \
--header 'Content-Type: application/json' \
--data '{"text": "Hello, world."}'
ok