Skip to content

[Bug]: tags_all applied incorrectly on aws_opensearchserverless_collection #40065

@albferrari

Description

@albferrari

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/opensearchserverlessIssues and PRs that pertain to the opensearchserverless service.tagsPertains to resource tagging.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions