Skip to content

Commit

Permalink
Merge pull request hashicorp#39945 from JHBaik/b-aws_elasticache_rese…
Browse files Browse the repository at this point in the history
…rved_cache_node-mapping

Fix aws_elasticache_reserved_cache_node data mapping
  • Loading branch information
jar-b authored Oct 31, 2024
2 parents 51570e0 + fb796e3 commit 7526509
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/39945.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_elasticache_reserved_cache_node: Fix `Value Conversion Error` during resource creation
```
8 changes: 4 additions & 4 deletions internal/service/elasticache/reserved_cache_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ func (r *resourceReservedCacheNode) Schema(ctx context.Context, request resource
},
},
"cache_node_type": schema.StringAttribute{
CustomType: fwtypes.RFC3339DurationType,
Computed: true,
Computed: true,
},
names.AttrDuration: schema.StringAttribute{
Computed: true,
CustomType: fwtypes.RFC3339DurationType,
Computed: true,
},
"fixed_price": schema.Float64Attribute{
Computed: true,
Expand Down Expand Up @@ -222,7 +222,7 @@ func (r *resourceReservedCacheNode) flexOpts() []flex.AutoFlexOptionsFunc {
}

type resourceReservedCacheNodeModel struct {
ARN types.String `tfsdk:"arn"`
ReservationARN types.String `tfsdk:"arn"`
CacheNodeCount types.Int32 `tfsdk:"cache_node_count"`
CacheNodeType types.String `tfsdk:"cache_node_type"`
Duration fwtypes.RFC3339Duration `tfsdk:"duration" autoflex:",noflatten"`
Expand Down

0 comments on commit 7526509

Please sign in to comment.