with pulumi `v2.22.0` and pulumi-aws `3.32.2`: ```...
# python
s
with pulumi
v2.22.0
and pulumi-aws `3.32.2`:
Copy code
File "/Users/scott/Library/Caches/pypoetry/virtualenvs/pulumi-stacks-6O2qUYd5-py3.9/lib/python3.9/site-packages/hatch_pulumi/aws/launch_template.py", line 37, in __attrs_post_init__
        self.ami = self.ami or ec2.getAmi(**self.ami_filter).id
    AttributeError: module 'pulumi_aws.ec2' has no attribute 'getAmi'
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
c
Hi @sparse-state-34229, The getami call changed in 3.3.1.0. I used the ec2.getami. Here is a sample code block
Also, here is a full example in python that will help
s
right and I am on
3.32.2
. you can see in the exception I pasted I am calling it in the same way as you linked, too
not sure what’s wrong - really confusing
thanks for the assistance though!