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
pagerduty_service_integration should return an attribute containing the integration_url otherwise we need to do string interpolation in order to tie up creation of an sns_topic_subscription with the integration enqueue URL.
To provide some examples, this is what we should be able to do:
data "pagerduty_vendor" "cloudwatch" {
name = "Cloudwatch"
}
resource "pagerduty_service_integration" "cloudwatch" {
name = "test"
service = "[redacted]"
vendor = data.pagerduty_vendor.cloudwatch.id
}
resource "aws_sns_topic" "topic" {
name = "test"
}
resource "aws_sns_topic_subscription" "subscription" {
endpoint = pagerduty_service_integration.cloudwatch.integration_url
protocol = "https"
topic_arn = aws_sns_topic.topic.arn
}
And this is what we actually have to do:
data "pagerduty_vendor" "cloudwatch" {
name = "Cloudwatch"
}
resource "pagerduty_service_integration" "cloudwatch" {
name = "test"
service = "[redacted]"
vendor = data.pagerduty_vendor.cloudwatch.id
}
resource "aws_sns_topic" "topic" {
name = "test"
}
resource "aws_sns_topic_subscription" "subscription" {
endpoint = "https://events.pagerduty.com/integration/${pagerduty_service_integration.cloudwatch.integration_key}/enqueue"
protocol = "https"
topic_arn = aws_sns_topic.topic.arn
}
Note the interpolation for endpoint at aws_sns_topic_subscription
Hi there,
pagerduty_service_integration
should return an attribute containing theintegration_url
otherwise we need to do string interpolation in order to tie up creation of ansns_topic_subscription
with the integrationenqueue
URL.To provide some examples, this is what we should be able to do:
And this is what we actually have to do:
Note the interpolation for
endpoint
ataws_sns_topic_subscription
The text was updated successfully, but these errors were encountered: