Skip to content

Commit 9e20f77

Browse files
committed
fix: fix duplicate name for Options handler RPA
1 parent 11f8173 commit 9e20f77

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pulumi/resources.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,11 @@ function buildBehaviors(routes: string[], headers: string[]): Behavior[] {
387387
return behaviors
388388
}
389389

390-
function buildBehavior(route: string, headers: string[], index: number): Behavior {
390+
function buildBehavior(
391+
route: string,
392+
headers: string[],
393+
index: number
394+
): Behavior {
391395
const routeRequestPolicy = new aws.cloudfront.OriginRequestPolicy(
392396
registerName(`RouteRequestPolicy${index}`),
393397
{
@@ -472,7 +476,7 @@ export function buildServerOptionsHandler(
472476
allowedOrigins: (string | pulumi.Output<string>)[]
473477
): aws.apigatewayv2.Route {
474478
const RPA = new aws.iam.RolePolicyAttachment(
475-
registerName('ServerRPABasicExecutionRole'),
479+
registerName('OptionsRPABasicExecutionRole'),
476480
{
477481
role: iamForLambda.name,
478482
policyArn: aws.iam.ManagedPolicy.AWSLambdaBasicExecutionRole,

0 commit comments

Comments
 (0)