Skip to content

Commit

Permalink
Use partition where mistakenly pasted Region
Browse files Browse the repository at this point in the history
  • Loading branch information
biffgaut committed Feb 13, 2023
1 parent 345f72c commit e99597a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class WafwebaclToApiGateway extends Construct {
webaclProps: props.webaclProps,
});

const resourceArn = `arn:${Aws.REGION}:apigateway:${Stack.of(scope).region}::/restapis/${props.existingApiGatewayInterface.restApiId}/stages/${props.existingApiGatewayInterface.deploymentStage.stageName}`;
const resourceArn = `arn:${Aws.PARTITION}:apigateway:${Stack.of(scope).region}::/restapis/${props.existingApiGatewayInterface.restApiId}/stages/${props.existingApiGatewayInterface.deploymentStage.stageName}`;

// Setup the Web ACL Association
new waf.CfnWebACLAssociation(scope, `${id}-WebACLAssociation`, {
Expand Down

0 comments on commit e99597a

Please sign in to comment.