-
Notifications
You must be signed in to change notification settings - Fork 154
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
aws.elasticache.ReplicationGroup type error #4339
Comments
@javier-accruemoney you mention that the error occurs during an update, can you provide the before/after configuration that you used? Thanks! |
Elasticache replication group configuration was not changed, even though, during Just tested with release v6.45.0 and issue is not preset, it starts with v6.46.0 |
https://github.com/hashicorp/terraform-provider-aws/pull/38476/files#diff-692ae398aa74e6339608743df634eab91ce3a4e1987f183156162ca9e34e598fR26 seems the problem comes from upstream |
@javier-accruemoney what version of |
That's correct, those resources have more than a year of created and can't tell with which was the version from where those resources where created, but the last working one is |
@javier-accruemoney if you run |
It appears there is some complicated upstream evolution history here that might be causing this problem. hashicorp/terraform-provider-aws@a00ceec removes cluster_mode parameter that had a complex type hashicorp/terraform-provider-aws@f893c22 reintroduces cluster_mode of string type Pulumi bridged provider inherited these changes. I suspect the users of the TF provider may also be affected here. Ideally, the upgrades could have been supported by writing state migration code that automatically moves over user states to the new schema for the resource, but it appears this has not been done in the case of this resource. To quickly workaround the issue state surgery, |
|
Describe what happened
While trying to update an Elasticache Replication Group have a type mismatch error:
Sample program
Log output
Diagnostics:
aws:elasticache:ReplicationGroup (XXXXXXXXX):
error: unmarshaling urn:pulumi:XXXXX::XXXX::aws:elasticache/replicationGroup:ReplicationGroup::XXXXXXXX instance state: could not read field cluster_mode: '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[numNodeGroups:1 replicasPerNodeGroup:0]'
Affected Resource(s)
aws.elasticache.ReplicationGroup
Output of
pulumi about
CLI
Version 3.108.0
Go Version go1.22.0
Go Compiler gc
Plugins
NAME VERSION
aws 6.47.0
awsx 2.13.0
datadog 4.31.0
docker 4.5.5
docker 3.6.1
nodejs unknown
Host
OS darwin
Version 14.4.1
Arch arm64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: