Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
[44;97;1m π€ Plandex [0;0;22m π Fix security group ingress rule definition in main.ts βοΈ Edits: β’ infra/src/main.ts β Fix security group ingress rule to use a valid port number
Dane Schneider6d314cf48a74
diff --git a/infra/src/main.ts b/infra/src/main.tsindex b6584377..43856e1b 100644--- a/infra/src/main.ts+++ b/infra/src/main.ts@@ -131,7 +131,7 @@ export class PlandexStack extends cdk.Stack {},portMappings: [{- containerPort: 80,+ containerPort: 8080,hostPort: 80,protocol: ecs.Protocol.TCP,},@@ -165,7 +165,7 @@ export class PlandexStack extends cdk.Stack {// Define the ingress rule for the security group to allow the Fargate service to communicate with the RDS instancefargateServiceSecurityGroup.addIngressRule(ec2.Peer.anyIpv4(),- ec2.Port.tcp(parseInt(dbInstance.dbInstanceEndpointPort)),+ ec2.Port.tcp(dbInstance.dbInstanceEndpointPort),"Allow Fargate service to access RDS instance");@@ -228,11 +228,11 @@ export class PlandexStack extends cdk.Stack {// Add a target group for the ECS serviceconst targetGroup = listener.addTargets("plandexEcsTarget", {- port: 80,+ port: 8080,targets: [fargateService],});- // Adjust the security group for the ALB to allow inbound traffic on port 80+ // Adjust the security group for the ALB to allow inbound trafficlistener.addRedirectResponse("HTTPtoHTTPSRedirect", {statusCode: "HTTP_301",protocol: "HTTPS",