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

orange-tailor-85423

10/22/2018, 5:55 PM
TF Code - create SA:
m

microscopic-florist-22719

10/22/2018, 6:28 PM
It looks like you’re creating different types of resources here—the TF code appears to be referencing the GCP provider. Is that right?
o

orange-tailor-85423

10/22/2018, 6:34 PM
correct
create service account, apply IAM to service account member
m

microscopic-florist-22719

10/22/2018, 6:41 PM
Should the Pulumi code also be creating two GCP resources (instead of only one)?
(i.e. it looks like the Pulumi code is creating a k8s service account where the TF is using GCP)
o

orange-tailor-85423

10/22/2018, 7:15 PM
yes I probably did something wrong - I should not work on this at 11pm
lol
I'm so sorry - it was late and I didn't even spot the mismatch in resources
I'll take my ball and go home for now
But here's a legit question......if I turn those operations into functions... how do I reference the created object
if I do a return on the function?