You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation bug: docs are either unclear or suggest something impossible
I'd like to be able to add notifications to Slack using Terraform.
In the alert configuration docs there's an api_token which, as far as I can tell, is required. But this token is generated by clicking through the Slack integration, and I haven't been able to retrieve it.
Is there some other way to get an API token for use in notifications? Or is it not possible to create Slack notifications under Terraform?
Thanks for opening this issue! Please make sure you've followed our guidelines when opening the issue. In short, to help us reproduce the issue we need:
Terraform configuration file used to reproduce the issue
Terraform log files from the run where the issue occurred
Terraform Atlas provider version used to reproduce the issue
Terraform version used to reproduce the issue
Confirmation if Terraform OSS, Terraform Cloud, or Terraform Enterprise deployment
The ticket CLOUDP-250734 was created for internal tracking.
this token is generated by clicking through the Slack integration, and I haven't been able to retrieve it.
There is a way of using credentials from a third party integration, which is what I believe you are referring to here. The following example shows how this can be done making use of integration_id. Note that the slack third party integration resource currently cannot be configured programatically as noted in our docs, but you can configure it in the UI and the use the third party integration data source to get the id as shown in the example.
I was confused because I believe the integration_id from manually-added integrations was different from alert to alert and because the error when you don't provide it at all is that api_token is required. I'll think about a PR to make the documentation spell it out a bit more.
Is there an existing issue for this?
Provider Version
1.16.0
Terraform Version
v1.5.7
Terraform Edition
Terraform Open Source (OSS)
Current Behavior
Documentation bug: docs are either unclear or suggest something impossible
I'd like to be able to add notifications to Slack using Terraform.
In the alert configuration docs there's an
api_token
which, as far as I can tell, is required. But this token is generated by clicking through the Slack integration, and I haven't been able to retrieve it.Is there some other way to get an API token for use in notifications? Or is it not possible to create Slack notifications under Terraform?
Terraform configuration to reproduce the issue
Steps To Reproduce
api_token
Logs
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: