Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datadog_integration_slack_channel skips creation and deletion of channels #978

Closed
bruecktech opened this issue Mar 10, 2021 · 0 comments · Fixed by #981
Closed

datadog_integration_slack_channel skips creation and deletion of channels #978

bruecktech opened this issue Mar 10, 2021 · 0 comments · Fixed by #981

Comments

@bruecktech
Copy link

Hello,

we ran into a bug with the recently added datadog_integration_slack_channel resource.
It is not creating all slack channels as expected and the terraform apply has to be run multiple times.
The same also happens when removing all slack channels.

Terraform Version

Terraform v0.12.24
+ provider.archive v1.3.0
+ provider.aws v3.26.0
+ provider.datadog v2.22.0
+ provider.sops v0.5.0

Affected Resource(s)

  • datadog_integration_slack_channel

Terraform Configuration Files

locals{
  slack_channels = [
    "#1",
    "#2",
    "#3",
    "#4",
    "#5",
    "#6",
    "#7",
    "#8",
    "#9",
    "#10",
    "#11",
    "#12",
    "#13",
    "#14",
    "#15",
    "#16"
  ]
}

resource "datadog_integration_slack_channel" "slack_channel" {
  for_each = toset(local.slack_channels)

  display {
    message  = true
    notified = false
    snapshot = false
    tags     = true
  }
  channel_name = each.value
  account_name = "foobar"
}

Expected Behavior

All slack channels should be configured on apply

Actual Behavior

11 slack channels are created. The apply output also shows lines like this for ALL of the channels

module.environment.datadog_integration_slack_channel.slack_channel["#1"]: Creation complete after 0s [id=foobar:#1]

5 slack channels are not configured, although showing "Creation complete"
The next terraform plan run shows that 5 of them still have to be created

Steps to Reproduce

  1. terraform apply --> this will create some of the channels
  2. terraform plan --> this will show some channels missing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant