Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

more work on infra

Dane Schneider7c24a7bc2772
diff --git a/infra/.gitignore b/infra/.gitignore
index 3cb1c7ff..d53dd0be 100644
--- a/infra/.gitignore
+++ b/infra/.gitignore
@@ -1 +1,2 @@
-cdk.out/
\ No newline at end of file
+cdk.out/
+stack-tag.txt
\ No newline at end of file
diff --git a/infra/deploy.sh b/infra/deploy.sh
index a3995cf8..6b2b66dc 100755
--- a/infra/deploy.sh
+++ b/infra/deploy.sh
@@ -101,8 +101,8 @@ build_and_push_image() {
# Build the Docker image
cd ../app
-docker build -t plandex-server:$IMAGE_TAG -f Dockerfile.server .
-cd -
+ docker build -t plandex-server:$IMAGE_TAG -f Dockerfile.server .
+ cd -
# Tag the image for the ECR repository
docker tag plandex-server:$IMAGE_TAG $ECR_REPOSITORY:$IMAGE_TAG
diff --git a/infra/src/main.ts b/infra/src/main.ts
index b49a0701..a3f73626 100644
--- a/infra/src/main.ts
+++ b/infra/src/main.ts
@@ -218,13 +218,6 @@ export class PlandexStack extends cdk.Stack {
internetFacing: true,
});
- // Create a listener for the ALB
- const certificate = acm.Certificate.fromCertificateArn(
- this,
- "Certificate",
- certificateArn
- );
-
// Create an HTTP listener and add a redirect to HTTPS
const httpListener = alb.addListener("HttpListener", {
port: 80,
@@ -253,7 +246,12 @@ export class PlandexStack extends cdk.Stack {
targets: [fargateService],
});
- alb.connections.allowFromAnyIpv4(ec2.Port.tcp(80), "Allow inbound HTTP traffic");
+ // Allow inbound HTTP and HTTPS traffic to the ALB
+ // HTTP will be redirected to HTTPS
+ alb.connections.allowFromAnyIpv4(
+ ec2.Port.tcp(80),
+ "Allow inbound HTTP traffic"
+ );
alb.connections.allowFromAnyIpv4(
ec2.Port.tcp(443),