full-dress-10026
11/27/2018, 11:45 PMstocky-spoon-28903
11/28/2018, 12:00 AMfull-dress-10026
11/28/2018, 12:01 AMnew aws.iam.RolePolicyAttachment
.stocky-spoon-28903
11/28/2018, 12:01 AM.map
or similar though instead of writing them out in fullfull-dress-10026
11/28/2018, 12:03 AMstocky-spoon-28903
11/28/2018, 12:06 AMfull-dress-10026
11/28/2018, 12:07 AMOutput<string[]>
of policy arns.stocky-spoon-28903
11/28/2018, 12:20 AMyouroutput.apply(x => x.map(y => new RolePolicyAttachment(...))))
full-dress-10026
11/28/2018, 12:30 AMapply
?microscopic-florist-22719
full-dress-10026
11/28/2018, 5:21 AMmicroscopic-florist-22719
stocky-spoon-28903
11/28/2018, 8:00 AMfull-dress-10026
11/28/2018, 5:37 PMexport let servicesPolicyArns = servicesIamPolicy.arn.apply(arn => {
return [
arn,
"arn:aws:iam::aws:policy/AWSLambdaFullAccess",
"arn:aws:iam::aws:policy/AmazonEC2ContainerServiceFullAccess",
];
});
But it could be defined like this:
let servicesPolicyArns = [
"arn:aws:iam::aws:policy/AWSLambdaFullAccess",
"arn:aws:iam::aws:policy/AmazonEC2ContainerServiceFullAccess",
servicesIamPolicy.arn
];