sparse-intern-71089
03/16/2022, 12:06 AMprehistoric-activity-61023
03/16/2022, 8:07 AMprehistoric-activity-61023
03/16/2022, 8:09 AMread_sa.email was a normal str that would work (f-string interpolation) but it’s actually pulumi.Output[str] . Try to see the details while trying to apply these changes, you should see “maltformed” members array.prehistoric-activity-61023
03/16/2022, 8:10 AMOutput types, you have to either use `apply`:
members = [
read_sa.email.apply(lambda email: f"serviceAccount:{email}"),
]
or `concat`:
members = [
pulumi.Output.concat("serviceAccount:", read_sa.email),
]prehistoric-activity-61023
03/16/2022, 8:13 AMpy_repo.name), there’s no need for additional “magic” - pulumi handles that automatically. However, it will break, if you do some string concatenation (using f-string or even plus sign).prehistoric-activity-61023
03/16/2022, 8:14 AMlittle-photographer-14867
03/16/2022, 2:58 PM