hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.17k forks source link

[Bug]: tags_all applied incorrectly on aws_opensearchserverless_collection #40065

Open albferrari opened 6 hours ago

albferrari commented 6 hours ago

Terraform Core Version

1.7.2

AWS Provider Version

5.75.0

Affected Resource(s)

aws_opensearchserverless_collection

Expected Behavior

the resource should be created

Actual Behavior

the resource creation failed

Relevant Error/Panic Output Snippet

╷
│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for
│ module.micro_svc.module.buyer_account_search[0].aws_opensearchserverless_collection.os_collection
│ to include new values learned so far during apply, provider
│ "registry.terraform.io/hashicorp/aws" produced an invalid new value for
│ .tags_all: new element "Mode" has appeared.

Terraform Configuration Files

provider "aws" {
  region = "us-east-1"

  default_tags {
    tags = {
      Environment  = "dev"
      Mode         = "dev"
      "mt-born-on" = timestamp()
    }
  }
  ignore_tags {
    keys         = ["mt-born-on"]
    key_prefixes = ["kubernetes.io/"]
  }
}
resource "aws_opensearchserverless_collection" "os_collection" {
  name = "test"
  type       = "SEARCH"
}

Steps to Reproduce

terraform init terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 6 hours ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue