Skip to content

Commit

Permalink
fix: add security group to check if that is the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
marnixdessing committed Jun 2, 2023
1 parent 82a7136 commit 9a379ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ContainerCluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ export class ContainerClusterStack extends Stack {
const namespace = this.setupCloudMap(vpc);
const cluster =this.constructEcsCluster(vpc);
const api = this.setupApiGateway(hostedzone);
const vpcLink = new apigatewayv2.VpcLink(this, 'vpc-link', { vpc });
const sg = new ec2.SecurityGroup(this, 'vpc-link-sg', {
vpc,
allowAllOutbound: true,
});
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(80));
const vpcLink = new apigatewayv2.VpcLink(this, 'vpc-link', { vpc, securityGroups: [sg] });
this.addIssueService(cluster, namespace, api, vpcLink);
}

Expand Down

0 comments on commit 9a379ff

Please sign in to comment.