https://pulumi.com logo
#general
Title
# general
d

dazzling-spring-32833

07/22/2023, 10:03 PM
Hello guys, I am pretty much new to pulumi and I am facing errors when I am trying to understand basic code from the documents. https://www.pulumi.com/registry/packages/aws-iam/api-docs/assumablerole/ The below is the error that I am facing. I'll be happy if someone could help me out. I've even tried modifying the 4th line of the code by doing: assumable_role = aws.iam.AssumableRole() and it is throwing error about not finding Assumable Role. Kindly help and thanks in adv
b

big-angle-30002

07/22/2023, 10:30 PM
import pulumi_aws.iam as iam?
d

dazzling-spring-32833

07/22/2023, 11:54 PM
Thank you for the response. I've now tried just using import pulumi_aws as aws and then at every line, I am doing something like this - user = aws.iam.User()
d

dry-keyboard-94795

07/23/2023, 7:19 AM
It looks like you need to install pulumi-aws-iam
d

dazzling-spring-32833

07/23/2023, 6:29 PM
Hello @dry-keyboard-94795, I tried doing that using pip3 install pulumi-aws-iam and still didn't work.
d

dry-keyboard-94795

07/23/2023, 6:38 PM
Does it show in the output of
pulumi about
?
b

big-angle-30002

07/24/2023, 3:19 AM
it´s pulumi_aws_iam
d

dry-keyboard-94795

07/24/2023, 9:51 AM
@big-angle-30002 when installing,
-
and
_
are equivalent https://pypi.org/project/pulumi-aws-iam/
2 Views