Skip to content

Commit

Permalink
Fix issue with vpcEndpoint az lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
crissupb committed Nov 9, 2023
1 parent c0e28e2 commit fecbcf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deployments/cdk/src/apps/phase-2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export async function deploy({
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const nfwNameToIdMap = vpcOutput.nfw?.reduce((acc: any, nfwConfig) => {
const vpcEndpointAz = nfwConfig.az.substring(-1);
const vpcEndpointAz = nfwConfig.az.slice(-1);
const vpcEndpointId = nfwConfig.vpcEndpoint;
const mapSubnet = nfwConfig.subnets.filter(subnet => {
return vpcEndpointAz === subnet.az;
Expand Down

0 comments on commit fecbcf3

Please sign in to comment.