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 7be0fdf commit a4150f9Copy full SHA for a4150f9
src/components/LambdaFunction.ts
@@ -89,7 +89,7 @@ export class LambdaFunction extends pulumi.ComponentResource {
89
// Attach any additional policies
90
const policyArns = [...(args.policyArns || []), cloudWatchPolicy.policy.arn]
91
policyArns.map((arn, index) => {
92
- const policyAttachmentName = `${this.role.name}-policy-${index}`
+ const policyAttachmentName = `${roleName}-policy-${index}`
93
return new aws.iam.RolePolicyAttachment(
94
policyAttachmentName,
95
{
0 commit comments