I'm testing an upgrade of the python `pulumi-aws` ...
# general
h
I'm testing an upgrade of the python
pulumi-aws
from 5.10 to 6.12 and i'm seeing an
AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
that I believe I've narrowed down to uses of
aws.lambda_.EventSourceMapping
resources (by moving a
return
statement around to find the resource that causes it to fail), e.g.:
Copy code
aws.lambda_.EventSourceMapping(
    "queue",
    event_source_arn=queue.arn,
    function_name=lambda_.arn,
    opts=opts,
)
I've verified that
queue.arn
and
lambda_.arn
are strings and that the documentation and SDK code both list these parameters as
str
not
list
so I suspect this is a bug. It's impacting all projects that use
EventSourceMapping
. I can use the
pulumi-aws-native
provider as a workaround (same code, different provider) but it's a bit messy to have to make that change everywhere for this one resource. Is there any thing else I could try looking into to resolve this? Is this a known issue? Thanks.
e
Hi Chris, sorry you're hitting this. Appreciate filing a new issue here! My team prioritizes regressions and we'd love to get this fixed.
https://github.com/pulumi/pulumi-aws/ is the repo specifically
Currently looking at https://github.com/pulumi/pulumi-aws/issues/3075 that may be tangentially related (looks like it's related to ARNs and Python) but I didn't see EventSourceMapping specifically mentioned yet.
h
Sure, I'll put it in. In the meantime we'll use aws-native. Thank you.
update: aws-native has a separate bug preventing it from being an option. i created issue 3092 for this in
pulumi-aws
.. i'm trying to create a minimal repo to reproduce this issue but no luck so far.
e
Thank you! We'll have a look as time permits
https://github.com/pulumi/pulumi-aws/issues/3075 got rootcaused and we have a WIP fix, it bottoms out at the upstream state migration dropping ARN for the Batch Job. Which is not affecting TF due to a happy accident but is affecting us. Looks like 3092 might be something different.