Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aws_elasticache_reserved_cache_node data mapping #39945

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading