jolly-church-88521
10/18/2022, 3:48 PMfoo.Arn
(pulumi.StringOutput) to string
? I’m kind of lost here and I cannot find any working example 😕 I’m trying to make it work with foo.Arn.ApplyT(func(arn string) string { … }
but somehow it’s not working for me.billowy-army-68599
10/18/2022, 3:54 PMStringOutput
to a stringjolly-church-88521
10/18/2022, 3:55 PMbillowy-army-68599
10/18/2022, 3:55 PMjolly-church-88521
10/18/2022, 3:59 PMroleArn
from user and it’s a string. So I’m doing something like:
if role.RoleArn == "" { }
to check if there is a RoleArn. If not I’m creating it and adding to one of the policy:
data := tmpArn{
Version: "2012-10-17",
Statement: []Statement{
{
Effect: "Allow",
Principal: Principal{
Aws: RoleArn,
},
Action: "sts:AssumeRole",
},
},
}
billowy-army-68599
10/18/2022, 4:02 PMif role.RoleArn == "" { }
is wrong, generallyjolly-church-88521
10/18/2022, 4:05 PMbillowy-army-68599
10/18/2022, 4:42 PM