many-psychiatrist-74327
08/28/2020, 3:31 AMtags
on AWS resource, and the error seems to be related the RPC python implementation… pulumi up
fails with:
File "/<path-redacted>/python3.8/site-packages/pulumi/runtime/rpc.py", line 451, in translate_output_properties
raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
With this, pulumi up
works:
for zone in zones.names:
vpc_subnet = ec2.Subnet(
f'vpc-subnet-{zone}',
assign_ipv6_address_on_creation=False,
vpc_id=vpc.id,
map_public_ip_on_launch=True,
cidr_block=f'10.100.{len(subnet_ids)}.0/24',
availability_zone= zone,
tags={
'Name' : f'pulumi-sn-{zone}'
}
)
With this, it doesn’t:
for zone in zones.names:
vpc_subnet = ec2.Subnet(
f'vpc-subnet-{zone}',
assign_ipv6_address_on_creation=False,
vpc_id=vpc.id,
map_public_ip_on_launch=True,
cidr_block=f'10.100.{len(subnet_ids)}.0/24',
availability_zone= zone,
tags={
'Name' : f'pulumi-sn-{zone}',
'new-tag': 'new-value' # <---- this is the only change
}
)
Any ideas/suggestions on what might be going on here?f'pulumi-sn-{zone}'
to test
), pulumi up
fails with that error…microscopic-pilot-97530
08/28/2020, 9:40 PMpulumi
Python SDK in v2.9.0, which fails when certain values come back from the engine that aren’t expected. I’m going to open an issue and work 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.many-psychiatrist-74327
08/28/2020, 9:41 PMmicroscopic-pilot-97530
08/28/2020, 9:47 PM2.9.2
of the pulumi
package, which will work with pulumi-aws
version 3.2.1
.