quiet-painter-19715
09/06/2024, 8:37 PMDiagnostics:
aws:autoscaling:Group (my-auto-scaling-group):
error: aws:autoscaling/group:Group resource 'my-auto-scaling-group' has a problem: Attribute must be a list. Examine values at 'my-auto-scaling-group.tags'.
my code looks like this from screenshot below and displaying the error message below. I am using Pulumi with Typescript.
Any help to resolve the error is much appreciated.
I did upgrade sdk using latest version of aws sdk (npm install -g @nice-addition-43900/aws@latest )future-hairdresser-70637
09/11/2024, 8:53 PMtags: [{
key: "environment",
value: "test",
propagateAtLaunch: true,
}]
future-hairdresser-70637
09/11/2024, 8:53 PMfuture-hairdresser-70637
09/11/2024, 8:54 PMpulumi about
dry-journalist-60579
10/01/2024, 8:59 PMdry-journalist-60579
10/01/2024, 9:00 PMfuture-hairdresser-70637
10/01/2024, 9:01 PMpulumi
and pulumi-aws
versions aredry-journalist-60579
10/01/2024, 9:02 PMself.asg = aws.autoscaling.Group(
f"{name}-asg",
desired_capacity=2,
max_size=3,
min_size=2,
launch_template=aws.autoscaling.GroupLaunchTemplateArgs(
id=launch_template.id,
version="$Latest",
),
vpc_zone_identifiers=[args.vpc_private_subnet_ids],
health_check_type="EC2",
health_check_grace_period=300,
opts=ResourceOptions(parent=self),
)
error: aws:autoscaling/group:Group resource 'ssh-bastion-asg' has a problem: Attribute must be a list. Examine values at 'ssh-bastion-asg.tags'.
dry-journalist-60579
10/01/2024, 9:03 PMpoetry run pulumi version
v3.134.1
poetry show pulumi-aws
name : pulumi-aws
version : 6.40.0
poetry show pulumi
name : pulumi
version : 3.120.0
dry-journalist-60579
10/01/2024, 9:04 PMdry-journalist-60579
10/01/2024, 9:06 PMdry-journalist-60579
10/01/2024, 9:10 PMDiagnostics:
pulumi:pulumi:Stack (claimhelper-resources-dev):
error: Program failed with an unhandled exception:
Traceback (most recent call last):
File "/opt/homebrew/bin/pulumi-language-python-exec", line 192, in <module>
loop.run_until_complete(coro)
File "/opt/homebrew/Cellar/python@3.12/3.12.6/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 142, in run_in_stack
await run_pulumi_func(run)
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 56, in run_pulumi_func
await wait_for_rpcs()
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 89, in wait_for_rpcs
raise exn from cause
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/rpc_manager.py", line 71, in rpc_wrapper
result = await rpc
^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/resource.py", line 935, in do_register
resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/resource.py", line 197, in prepare_resource
serialized_props = await rpc.serialize_properties(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 217, in serialize_properties
result = await serialize_property(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 373, in serialize_property
await serialize_property(
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 542, in serialize_property
value = await serialize_property(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 520, in serialize_property
return await serialize_property(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 369, in serialize_property
element_type = _get_list_element_type(typ)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/me/Library/Caches/pypoetry/virtualenvs/infra-jqilnyNa-py3.12/lib/python3.12/site-packages/pulumi/runtime/rpc.py", line 169, in _get_list_element_type
raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
dry-journalist-60579
10/01/2024, 9:10 PMdry-journalist-60579
10/01/2024, 9:15 PMdry-journalist-60579
10/01/2024, 9:15 PMdry-journalist-60579
10/01/2024, 9:15 PMdry-journalist-60579
10/01/2024, 9:15 PMfuture-hairdresser-70637
10/01/2024, 9:18 PMdry-journalist-60579
10/01/2024, 9:18 PMfuture-hairdresser-70637
10/01/2024, 9:18 PMpulumi-aws-tags
?dry-journalist-60579
10/01/2024, 9:21 PMpulumi preview
… hopefully up
will work too, but if it doesn’t it certainly won’t be because of this tags issue 🙂 thank you for your help!dry-journalist-60579
10/01/2024, 9:58 PMfuture-hairdresser-70637
10/01/2024, 9:59 PMdry-journalist-60579
10/01/2024, 10:00 PMfuture-hairdresser-70637
10/01/2024, 10:00 PMfuture-hairdresser-70637
10/01/2024, 10:01 PMquiet-painter-19715
10/02/2024, 12:32 PMfuture-hairdresser-70637
10/02/2024, 12:40 PMquiet-painter-19715
10/02/2024, 1:17 PMfuture-hairdresser-70637
10/02/2024, 1:24 PMpropagate_at_launch
which complicates matters for providers. I haven't looked deeply at it thoughdry-journalist-60579
10/02/2024, 7:44 PM{"foo_key": "bar_value"}
. ASGs take it like {"key": "foo_key", "value": "bar_value", "propagate_at_launch": true}
. pulumi-aws-tags
doesn’t handle the case. I opened an issue to discuss better handling: https://github.com/tlinhart/pulumi-aws-tags/issues/37dry-journalist-60579
10/02/2024, 7:45 PMquiet-painter-19715
10/02/2024, 9:42 PM