Skip to content

Commit a4150f9

Browse files
committed
fix: use actual name
1 parent 7be0fdf commit a4150f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/LambdaFunction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class LambdaFunction extends pulumi.ComponentResource {
8989
// Attach any additional policies
9090
const policyArns = [...(args.policyArns || []), cloudWatchPolicy.policy.arn]
9191
policyArns.map((arn, index) => {
92-
const policyAttachmentName = `${this.role.name}-policy-${index}`
92+
const policyAttachmentName = `${roleName}-policy-${index}`
9393
return new aws.iam.RolePolicyAttachment(
9494
policyAttachmentName,
9595
{

0 commit comments

Comments
 (0)