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.76k stars 9.11k forks source link

[Bug]: Cannot use attr.Value basetypes.StringValue in aws_elasticache_reserved_cache_node #39451

Open joesteffee opened 4 days ago

joesteffee commented 4 days ago

Terraform Core Version

1.9.5

AWS Provider Version

5.68.0

Affected Resource(s)

aws_elasticache_reserved_cache_node

Expected Behavior

aws elasticache nodes should reserve

Actual Behavior

reserved node is not created

Relevant Error/Panic Output Snippet

│ Error: Value Conversion Error
│
│   with module.elasticache-ephemeral.aws_elasticache_reserved_cache_node.redis[0],
│   on modules/elasticache/main.tf line 64, in resource "aws_elasticache_reserved_cache_node" "redis":
│   64: resource "aws_elasticache_reserved_cache_node" "redis" {
│
│ An unexpected error was encountered trying to convert into a Terraform value. This is always an error in the provider. Please report the
│ following to the provider developer:
│
│ Cannot use attr.Value basetypes.StringValue, only types.RFC3339Duration is supported because types.rfc3339DurationType is the type in the
│ schema

Terraform Configuration Files

data "aws_elasticache_reserved_cache_node_offering" "example" {
  cache_node_type     = "cache.t4g.small"
  duration            = "P1Y"
  offering_type       = "No Upfront"
  product_description = "redis"
}

resource "aws_elasticache_reserved_cache_node" "example" {
  reserved_cache_nodes_offering_id = data.aws_elasticache_reserved_cache_node_offering.example.offering_id
  id                               = "optionalCustomReservationID"
  cache_node_count                 = 3
}

Steps to Reproduce

Attempt to reserve an elasticache node

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 4 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue