sparse-intern-71089
08/28/2020, 4:55 AMmany-psychiatrist-74327
08/28/2020, 5:12 AMpulumi/runtime/resource.py and pulumi/runtime/rpc.py to print debugging information.
The rpc response is:
... omitted for brevity
fields {
key: "tags"
value {
struct_value {
fields {
key: "Name"
value {
string_value: "pulumi-eks-vpc"
}
}
fields {
key: "__defaults"
value {
list_value {
}
}
}
}
}
}
And the translation calls that fails:
trying to translate value={'Name': 'pulumi-eks-vpc', '__defaults': []} with type=typing.Mapping[str, str]
Doesn’t seem like '_defaults': [] should be there…many-psychiatrist-74327
08/28/2020, 6:18 AMtags will cause pulumi to fail, because the server is returning a tags dictionary that always includes __defaults: [] (list), which causes the property translator to fail, because it expects a Mapping[str, str].microscopic-pilot-97530
__defaults is a value coming back from the engine and is something we should be filtering out of the results. We do this for other languages, but looks like we weren’t doing it for Python, and we recently added more type checks in the Python SDK in v2.9.0, which is now resulting in this error.
I am going to open an issue and start working on a fix. In the meantime, you can workaround by downgrading you Python package dependencies to pulumi v2.8.2 and pulumi_aws v3.1.0.microscopic-pilot-97530
microscopic-pilot-97530
2.9.2 of the pulumi package, which will work with pulumi-aws version 3.2.1.