sparse-intern-71089
10/18/2022, 3:48 PMbillowy-army-68599
StringOutput
to a stringjolly-church-88521
10/18/2022, 3:55 PMjolly-church-88521
10/18/2022, 3:55 PMbillowy-army-68599
billowy-army-68599
jolly-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
billowy-army-68599
billowy-army-68599
if role.RoleArn == "" { }
is wrong, generallybillowy-army-68599
jolly-church-88521
10/18/2022, 4:05 PMjolly-church-88521
10/18/2022, 4:06 PMbillowy-army-68599