We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199fc37 commit c7b9b5fCopy full SHA for c7b9b5f
src/components/LambdaFunction.ts
@@ -88,9 +88,8 @@ export class LambdaFunction extends pulumi.ComponentResource {
88
89
// Attach any additional policies
90
const policyArns = [...(args.policyArns || []), cloudWatchPolicy.policy.arn]
91
- policyArns.map(arn => {
92
- const name = pulumi.output(arn).apply(name => name.split(':').reverse()[0])
93
- const policyAttachmentName = pulumi.interpolate`${name}-${this.role.name}-attachment`.get()
+ policyArns.map((arn, index) => {
+ const policyAttachmentName = `${this.role.name}-policy-${index}`
94
return new aws.iam.RolePolicyAttachment(
95
policyAttachmentName,
96
{
0 commit comments