Skip to content

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

Revert " 🤖 Plandex "

Dane Schneiderd7f106922cf7
diff --git a/infra/deploy.sh b/infra/deploy.sh
index 4b0d9558..60284ff4 100644
--- a/infra/deploy.sh
+++ b/infra/deploy.sh
@@ -1,34 +1,5 @@
#!/bin/bash
-# Enhanced error handling and logging
-set -e
-set -o pipefail
-
-log() {
- echo "[$(date +%Y-%m-%dT%H:%M:%S%z)]: $*"
-}
-
-handle_error() {
- local exit_code=$?
- log "An error occurred. Exiting with status ${exit_code}"
- exit $exit_code
-}
-
-trap 'handle_error' ERR
-
-log() {
- echo "[$(date +%Y-%m-%dT%H:%M:%S%z)]: $*"
-}
-
-handle_error() {
- local exit_code=$?
- log "An error occurred. Exiting with status ${exit_code}"
- exit $exit_code
-}
-
-trap 'handle_error' ERR
-
-
# Generate a unique tag for the deployment
export STACK_TAG=$(uuidgen | cut -d '-' -f1)
diff --git a/infra/src/main.ts b/infra/src/main.ts
index 1bc1d0af..8b6e0460 100644
--- a/infra/src/main.ts
+++ b/infra/src/main.ts
@@ -201,40 +201,5 @@ export class PlandexStack extends cdk.Stack {
}
}
-import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
-
const app = new cdk.App();
-
-const stack = new PlandexStack(app, "plandex-stack-" + (process.env.STACK_TAG || uuid().split("-")[0]), props);
-
-// Define CloudWatch metrics for monitoring CPU and memory utilization
-const cpuUtilizationMetric = fargateService.metricCpuUtilization();
-const memoryUtilizationMetric = fargateService.metricMemoryUtilization();
-
-// Create CloudWatch alarms for high CPU and memory utilization
-new cloudwatch.Alarm(this, 'HighCpuUtilizationAlarm', {
- metric: cpuUtilizationMetric,
- threshold: 80,
- evaluationPeriods: 2,
- alarmDescription: 'Alarm when CPU utilization exceeds 80%',
- comparisonOperator: cloudwatch.ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD,
- treatMissingData: cloudwatch.TreatMissingData.NOT_BREACHING,
-});
-
-new cloudwatch.Alarm(this, 'HighMemoryUtilizationAlarm', {
- metric: memoryUtilizationMetric,
- threshold: 80,
- evaluationPeriods: 2,
- alarmDescription: 'Alarm when memory utilization exceeds 80%',
- comparisonOperator: cloudwatch.ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD,
- treatMissingData: cloudwatch.TreatMissingData.NOT_BREACHING,
-});
-
-const stack = new PlandexStack(app, "plandex-stack-" + (process.env.STACK_TAG || uuid().split("-")[0]), props);
-
-// Enable automatic rollback for the stack on deployment failure
-// Enable automatic rollback for the stack on deployment failure
-const cfnStack = stack.node.defaultChild as cdk.CfnStack;
-cfnStack.cfnOptions.onFailure = cdk.CfnStack.OnFailure.ROLLBACK;
-
-
+new PlandexStack(app, "plandex-stack-" + tag);