This message was deleted.
# python
s
This message was deleted.
s
hey ya, try this
Copy code
sa = serviceaccount.Account(
    resource_name="sa",
    account_id="web-sa",
)
log_writer_iam = serviceaccount.IAMMember(
    resource_name="log-writer-iam",
    member=sa.email.apply(lambda email: f"serviceAccount:{email}"),
    role="roles/logging.logWriter",
    service_account_id=sa.name,
)
g
Thanks for the reply! Nope, same error.
s
ah, im only just starting to get my head round accessing outputs myself. I was part this post via someone at pulumi yesterday which was useful https://www.leebriggs.co.uk/blog/2021/05/09/pulumi-apply.html
n
It's probably the f string thing, try pulumi.Output.concat('serviceAccount:', sa.email)
g
none of this works, tried fstring, tried apply, tried concat
And I gave up