gorgeous-animal-95046
04/28/2020, 8:31 PMaws.getCallerIdentity
now returns a promise. the problem i’m having is i can’t pass the account id returned from that into a aws.iam.getPolicyDocument
because it’s inputs are all string
. Specifically this is for a principal identifier on an assume role policy. My old code used to be `identifiers: [arn:aws:iam::${accountNumber}:role/terraform-eks-k8s-node
]`faint-table-42725
04/28/2020, 8:53 PMpulumi.interpolate
for this use casegorgeous-animal-95046
04/28/2020, 8:55 PMpulumi.Output<string>
string[]
freezing-flag-53289
04/28/2020, 9:10 PMconst accountId = pulumi.output(aws.getCallerIdentity()).accountId;
accountId.apply(id => {
do your stuff
}
gorgeous-animal-95046
04/28/2020, 9:20 PMaws.iam.Role
objects 😕faint-table-42725
04/28/2020, 9:36 PMget
gorgeous-animal-95046
04/28/2020, 9:40 PM