DataDog / terraform-provider-datadog

Terraform Datadog provider
https://www.terraform.io/docs/providers/datadog/
Mozilla Public License 2.0
403 stars 378 forks source link

New AWS region (ap-southeast-5) causes TF to keep applying changes if passed in `excluded_regions` #2548

Open fatbasstard opened 2 months ago

fatbasstard commented 2 months ago

Datadog Terraform Provider Version

v3.43.1

Terraform Version

v1.9.5

What resources or data sources are affected?

Terraform Configuration Files

locals {
  excluded_dd_regions = setsubtract(data.aws_regions.current.names, "us-east-1", "us-west-2")
}

data "aws_regions" "current" {
  all_regions = true
}

resource "datadog_integration_aws" "default" {
  excluded_regions                     = var.excluded_regions
}

Relevant debug or panic output

No response

Expected Behavior

Exclude ap-southeast-5 once and then TF doesn't give any changes anymore

Actual Behavior

TF Keeps trying to apply the exclude, but nothing changes since ap-southeast-5 is not available in DataDog itself

image

image

Steps to Reproduce

No response

Important Factoids

No response

References

No response

wabit commented 2 days ago

I have noticed the same problem with multiple other regions, i agree if you try to exclude regions that are not in the datadog Console, it always finds a change.