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 import statement for CloudWatch actions and adjust code to resolve type error βοΈ Edits: β’ infra/src/main.ts β Add import for cloudwatch-actions β Correct the SnsAction import usage
Dane Schneider27f6055551a2
diff --git a/infra/src/main.ts b/infra/src/main.tsindex 620bd179..02bf48cc 100644--- a/infra/src/main.ts+++ b/infra/src/main.ts@@ -11,6 +11,7 @@ import * as elbv2 from "@aws-cdk/aws-elasticloadbalancingv2";import * as iam from "@aws-cdk/aws-iam";import * as acm from "@aws-cdk/aws-certificatemanager";import * as cloudwatch from "@aws-cdk/aws-cloudwatch";+import * as cloudwatchActions from "@aws-cdk/aws-cloudwatch-actions";const tag = process.env.STACK_TAG;if (!tag) {@@ -279,7 +280,7 @@ export class PlandexStack extends cdk.Stack {// Create CloudWatch alarms for RDS database instance health monitoringconst dbCpuUtilizationMetric = dbInstance.metricCPUUtilization();dbCpuUtilizationAlarm.addAlarmAction(- new cloudwatch.actions.SnsAction(alarmNotificationTopic)+ new cloudwatchActions.SnsAction(alarmNotificationTopic));const dbFreeableMemoryAlarm = new cloudwatch.Alarm(