Skip to content

Slack Notification Channel creation using incoming webhook no longer works#14256

Description

@ptran32

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v1.4.4
on darwin_amd64

  • provider registry.terraform.io/hashicorp/google v4.60.2

Affected Resource(s)

  • google_monitoring_notification_channel

Terraform Configuration Files

resource "google_monitoring_notification_channel" "default" {
  display_name = "Test Slack Channel"
  type         = "slack"
  labels = {
    "channel_name" = "#alerts-data-systems"
  }
  sensitive_labels {
    auth_token = "https://hooks.slack.com/services/XXXSECRETXXX/XXXSECRETXXX"
  }
}

Debug Output

Panic Output

https://gist.github.com/ptran32/41d75161a53d7fd68c06309d4d5b8460 (Slack sensitive outputs were hidden)

Expected Behavior

Terraform should be able to create the Google notification channel resource using a incoming webhook URL as a key

It used to work using Terraform 1.1.4, I still have a state file to share if needed. (I don't have the provider's version though)

Actual Behavior

Terraform crashes with the error: Error creating NotificationChannel: googleapi: Error 400: invalid_auth

Steps to Reproduce

  1. terraform apply

Important Factoids

N/A

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions