Skip to content

Commit

Permalink
AV-1993: Add fourth bypass ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Jun 15, 2023
1 parent 60cdd8e commit 0173856
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cdk/lib/load-balancer-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class LoadBalancerStack extends Stack {
const allowedIp3 = StringParameter.fromStringParameterName(this, 'allowedIp3',
`/${props.environment}/opendata/cdk/lb_allowed_ip_3`)

const allowedIp4 = StringParameter.fromStringParameterName(this, 'allowedIp4',
`/${props.environment}/opendata/cdk/lb_allowed_ip_4`)

const secGroup = new aws_ec2.SecurityGroup(this, 'loadBalancerSecurityGroup', {
vpc: props.vpc,
})
Expand All @@ -37,6 +40,7 @@ export class LoadBalancerStack extends Stack {
secGroup.addIngressRule(Peer.ipv4(allowedIp1.stringValue), Port.tcp(443))
secGroup.addIngressRule(Peer.ipv4(allowedIp2.stringValue), Port.tcp(443))
secGroup.addIngressRule(Peer.ipv4(allowedIp3.stringValue), Port.tcp(443))
secGroup.addIngressRule(Peer.ipv4(allowedIp4.stringValue), Port.tcp(443))

const publicSubnetA = Fn.importValue('vpc-SubnetPublicA')
const publicSubnetB = Fn.importValue('vpc-SubnetPublicB')
Expand Down

0 comments on commit 0173856

Please sign in to comment.