terraform-provider-awscc icon indicating copy to clipboard operation
terraform-provider-awscc copied to clipboard

List of resources with Tags datatype different

Open quixoticmonk opened this issue 10 months ago • 1 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
  • The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.

Terraform CLI and Terraform AWS Cloud Control Provider Version

terraform {
  required_providers {
    awscc = {
      source  = "hashicorp/awscc"
      version = "0.74.0"
    }
  }
}

Affected Resource(s)

  • awscc_bedrock_agent
  • awscc_bedrock_agent_alias
  • awscc_bedrock_knowledge_base

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.




resource "awscc_bedrock_agent" "example" {
  agent_name       = "example-agent"
  foundation_model = "amazon.titan-embed-text-v1"
  description      = "example agent"
  tags = [{
    key   = "Modified By"
    value = "AWSCC"
  }]
}

Debug Output

Panic Output

Expected Behavior

Actual Behavior

The tags are not a list , but a map in case of bedrock resources. Not sure if this is the case with any other set of resources.

Error: Incorrect attribute value type
│
│   on main.tf line 5, in resource "awscc_bedrock_agent" "example":
│    5:   tags = [{
│    6:     key   = "Modified By"
│    7:     value = "AWSCC"
│    8:   }]
│
│ Inappropriate value for attribute "tags": map of string required

Steps to Reproduce

  1. terraform apply

Important Factoids

References

quixoticmonk avatar Apr 17 '24 22:04 quixoticmonk