Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

remove delete document worker (#1883)

Will Hutchinson4eb285f97364
diff --git a/infra/bun.lock b/infra/bun.lock
index 7bb9ba923e..d973b47e44 100644
--- a/infra/bun.lock
+++ b/infra/bun.lock
@@ -71,10 +71,6 @@
"name": "convert-service-stack",
"version": "0.0.0",
},
- "stacks/delete-document-worker": {
- "name": "delete-document-worker-stack",
- "version": "0.0.0",
- },
"stacks/deleted-item-poller": {
"name": "deleted-item-poller-stack",
"version": "0.0.0",
@@ -592,8 +588,6 @@
"defer-to-connect": ["[email protected]", "", {}, "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg=="],
- "delete-document-worker-stack": ["delete-document-worker-stack@workspace:stacks/delete-document-worker"],
-
"deleted-item-poller-stack": ["deleted-item-poller-stack@workspace:stacks/deleted-item-poller"],
"diff": ["[email protected]", "", {}, "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A=="],
diff --git a/infra/packages/resources/src/resources/load_balancer.ts b/infra/packages/resources/src/resources/load_balancer.ts
index 32b9e15ea0..bf358ce3bd 100644
--- a/infra/packages/resources/src/resources/load_balancer.ts
+++ b/infra/packages/resources/src/resources/load_balancer.ts
@@ -55,7 +55,7 @@ export function serviceLoadBalancer(
loadBalancerType: 'application',
securityGroups: [albSecurityGroupId],
subnets: isPrivate ? vpc.privateSubnetIds : vpc.publicSubnetIds,
- enableDeletionProtection: stack === 'prod',
+ enableDeletionProtection: false,
// default is 60 seconds, can be up to 4000 seconds
idleTimeout,
tags,
diff --git a/infra/stacks/delete-document-worker/Pulumi.dev.yaml b/infra/stacks/delete-document-worker/Pulumi.dev.yaml
deleted file mode 100644
index b1aef9b86e..0000000000
--- a/infra/stacks/delete-document-worker/Pulumi.dev.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-config:
- aws-native:region: us-east-1
- aws:region: us-east-1
- delete-document-worker:macro_db_secret_key: macro-db-dev
- delete-document-worker:macro_cache_secret_key: macro-cache-dev
- delete-document-worker:sync_service_auth_key: sync-service-key-dev
diff --git a/infra/stacks/delete-document-worker/Pulumi.prod.yaml b/infra/stacks/delete-document-worker/Pulumi.prod.yaml
deleted file mode 100644
index 817503f1f3..0000000000
--- a/infra/stacks/delete-document-worker/Pulumi.prod.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-config:
- aws-native:region: us-east-1
- aws:region: us-east-1
- delete-document-worker:macro_db_secret_key: macro-db-prod
- delete-document-worker:macro_cache_secret_key: macro-cache-prod
- delete-document-worker:sync_service_auth_key: sync-service-key-prod
diff --git a/infra/stacks/delete-document-worker/Pulumi.yaml b/infra/stacks/delete-document-worker/Pulumi.yaml
deleted file mode 100644
index 7e7ec38eb8..0000000000
--- a/infra/stacks/delete-document-worker/Pulumi.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-name: delete-document-worker
-runtime: nodejs
-description: Macro Delete Document Worker
diff --git a/infra/stacks/delete-document-worker/index.ts b/infra/stacks/delete-document-worker/index.ts
deleted file mode 100644
index 00f97f7b8a..0000000000
--- a/infra/stacks/delete-document-worker/index.ts
+++ /dev/null
@@ -1,132 +0,0 @@
-import * as aws from '@pulumi/aws';
-import * as pulumi from '@pulumi/pulumi';
-import { config, stack } from '../../packages/shared';
-import { get_coparse_api_vpc } from '../../packages/vpc';
-import { Worker } from './worker';
-
-const tags = {
- environment: stack,
- tech_lead: 'hutch',
- project: 'cloud-storage-service',
-};
-
-const DATABASE_URL = aws.secretsmanager
- .getSecretVersionOutput({
- secretId: config.require(`macro_db_secret_key`),
- })
- .apply((secret) => secret.secretString);
-
-export const coparse_api_vpc = get_coparse_api_vpc();
-
-// ------------------------------------------- Cloud Storage -------------------------------------------
-const cloudStorageStack = new pulumi.StackReference('cloud-storage-stack', {
- name: `macro-inc/document-storage/${stack}`,
-});
-
-const documentStorageBucketArn: pulumi.Output<string> = cloudStorageStack
- .getOutput('documentStorageBucketArn')
- .apply((arn) => arn as string);
-
-const documentStorageBucketId: pulumi.Output<string> = cloudStorageStack
- .getOutput('documentStorageBucketId')
- .apply((id) => id as string);
-
-const MACRO_CACHE = aws.secretsmanager
- .getSecretVersionOutput({
- secretId: config.require(`macro_cache_secret_key`),
- })
- .apply((secret) => secret.secretString);
-
-const cloudStorageClusterArn: pulumi.Output<string> = cloudStorageStack
- .getOutput('cloudStorageClusterArn')
- .apply((arn) => arn as string);
-
-const cloudStorageClusterName: pulumi.Output<string> = cloudStorageStack
- .getOutput('cloudStorageClusterName')
- .apply((arn) => arn as string);
-
-// ------------------------------------------- Cloud Storage Service -------------------------------------------
-const cloudStorageServiceStack = new pulumi.StackReference(
- 'cloud-storage-service-stack',
- {
- name: `macro-inc/cloud-storage-service/${stack}`,
- }
-);
-
-const deleteDocumentQueueArn: pulumi.Output<string> = cloudStorageServiceStack
- .getOutput('deleteDocumentQueueArn')
- .apply((arn) => arn as string);
-
-const deleteDocumentQueueName: pulumi.Output<string> = cloudStorageServiceStack
- .getOutput('deleteDocumentQueueName')
- .apply((arn) => arn as string);
-
-const SYNC_SERVICE_AUTH_KEY = config.require(`sync_service_auth_key`);
-const syncServiceAuthKeyArn: pulumi.Output<string> = aws.secretsmanager
- .getSecretVersionOutput({ secretId: SYNC_SERVICE_AUTH_KEY })
- .apply((secret) => secret.arn);
-
-// ------------------------------------------- Delete Document Worker -------------------------------------------
-const deleteDocumentWorker = new Worker(`delete-document-worker-${stack}`, {
- ecsClusterArn: cloudStorageClusterArn,
- vpc: coparse_api_vpc,
- platform: {
- family: 'linux',
- architecture: 'amd64',
- },
- documentStorageBucketArn: documentStorageBucketArn,
- serviceContainerPort: 8080,
- healthCheckPath: '/health',
- isPrivate: true,
- containerEnvVars: [
- {
- name: 'RUST_LOG',
- value: `delete_document_worker=${stack === 'prod' ? 'trace' : 'trace'},s3_client=debug`,
- },
- {
- name: 'ENVIRONMENT',
- value: stack,
- },
- {
- name: 'DATABASE_URL',
- value: pulumi.interpolate`${DATABASE_URL}`,
- },
- {
- name: 'REDIS_URI',
- value: pulumi.interpolate`redis://${MACRO_CACHE}`,
- },
- {
- name: 'DOCUMENT_STORAGE_BUCKET',
- value: pulumi.interpolate`${documentStorageBucketId}`,
- },
- {
- name: 'DELETE_DOCUMENT_QUEUE',
- value: pulumi.interpolate`${deleteDocumentQueueName}`,
- },
- {
- name: 'SYNC_SERVICE_AUTH_KEY',
- value: SYNC_SERVICE_AUTH_KEY,
- },
- {
- name: 'SYNC_SERVICE_URL',
- value: `https://sync-service${
- stack === 'prod' ? '' : `-${stack === 'dev' ? 'dev3' : stack}`
- }.macroverse.workers.dev`,
- },
- // OpenTelemetry / Datadog tracing configuration
- {
- name: 'DD_SERVICE',
- value: 'delete-document-worker',
- },
- {
- name: 'DD_ENV',
- value: stack,
- },
- ],
- cloudStorageClusterName: cloudStorageClusterName,
- deleteDocumentQueueArn: deleteDocumentQueueArn,
- tags,
- secretKeyArns: [syncServiceAuthKeyArn],
-});
-
-export const deleteDocumentWorkerRoleArn = deleteDocumentWorker.role.arn;
diff --git a/infra/stacks/delete-document-worker/package.json b/infra/stacks/delete-document-worker/package.json
deleted file mode 100644
index bf5efeabff..0000000000
--- a/infra/stacks/delete-document-worker/package.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "name": "delete-document-worker-stack",
- "version": "0.0.0",
- "private": true,
- "license": "MIT"
-}
diff --git a/infra/stacks/delete-document-worker/tsconfig.json b/infra/stacks/delete-document-worker/tsconfig.json
deleted file mode 100644
index 4082f16a5d..0000000000
--- a/infra/stacks/delete-document-worker/tsconfig.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "../../tsconfig.json"
-}
diff --git a/infra/stacks/delete-document-worker/worker.ts b/infra/stacks/delete-document-worker/worker.ts
deleted file mode 100644
index be1b9a3d1e..0000000000
--- a/infra/stacks/delete-document-worker/worker.ts
+++ /dev/null
@@ -1,506 +0,0 @@
-import * as aws from '@pulumi/aws';
-import * as awsx from '@pulumi/awsx';
-import * as pulumi from '@pulumi/pulumi';
-import {
- DATADOG_API_KEY,
- datadogAgentContainer,
- fargateLogRouterSidecarContainer,
- serviceLoadBalancer,
-} from '../../packages/resources';
-import { EcrImage } from '../../packages/service';
-import {
- BASE_DOMAIN,
- CLOUD_TRAIL_SNS_TOPIC_ARN,
- stack,
-} from '../../packages/shared';
-
-const BASE_NAME = 'delete-document-worker';
-const BASE_PATH = '../../../rust/cloud-storage';
-
-export const SERVICE_DOMAIN_NAME = `delete-document-worker${
- stack === 'prod' ? '' : `-${stack}`
-}.${BASE_DOMAIN}`;
-
-type Args = {
- cloudStorageClusterName: pulumi.Output<string> | string;
- ecsClusterArn: pulumi.Output<string> | string;
- vpc: {
- vpcId: pulumi.Output<string> | string;
- publicSubnetIds: pulumi.Output<string[]> | string[];
- privateSubnetIds: pulumi.Output<string[]> | string[];
- };
- platform: { family: string; architecture: 'amd64' | 'arm64' };
- documentStorageBucketArn: pulumi.Output<string> | string;
- deleteDocumentQueueArn: pulumi.Output<string> | string;
- serviceContainerPort: number;
- isPrivate?: boolean;
- containerEnvVars?: { name: string; value: pulumi.Output<string> | string }[];
- healthCheckPath: string;
- tags: { [key: string]: string };
- secretKeyArns: (pulumi.Output<string> | string)[];
-};
-
-export class Worker extends pulumi.ComponentResource {
- public role: aws.iam.Role;
- public ecr: awsx.ecr.Repository;
- public serviceAlbSg: aws.ec2.SecurityGroup;
- public serviceSg: aws.ec2.SecurityGroup;
- public targetGroup: aws.lb.TargetGroup;
- public lb: aws.lb.LoadBalancer;
- public listener: aws.lb.Listener;
- public service: awsx.ecs.FargateService;
- public domain: string;
- public cloudStorageClusterName: pulumi.Output<string> | string;
- public tags: { [key: string]: string };
-
- constructor(
- name: string,
- {
- ecsClusterArn,
- vpc,
- platform,
- documentStorageBucketArn,
- serviceContainerPort,
- healthCheckPath,
- isPrivate,
- containerEnvVars,
- cloudStorageClusterName,
- deleteDocumentQueueArn,
- tags,
- secretKeyArns,
- }: Args,
- opts?: pulumi.ComponentResourceOptions
- ) {
- super('my:components:Worker', name, {}, opts);
- this.tags = tags;
-
- this.cloudStorageClusterName = cloudStorageClusterName;
-
- // role
- const docStorageBucketPolicy = new aws.iam.Policy(
- `${BASE_NAME}-doc-storage-policy`,
- {
- name: `${BASE_NAME}-doc-storage-bucket-policy-${stack}`,
- policy: {
- Version: '2012-10-17',
- Statement: [
- {
- Action: [
- 's3:ListBucket',
- 's3:GetObject',
- 's3:PutObject',
- 's3:DeleteObject',
- ],
- Resource: [
- documentStorageBucketArn,
- pulumi.interpolate`${documentStorageBucketArn}/*`,
- ],
- Effect: 'Allow',
- },
- ],
- },
- tags: this.tags,
- },
- { parent: this }
- );
-
- const queuePolicy = new aws.iam.Policy(
- `${BASE_NAME}-queue-policy`,
- {
- name: `${BASE_NAME}-queue-policy-${stack}`,
- policy: {
- Version: '2012-10-17',
- Statement: [
- {
- Action: ['sqs:*'],
- Resource: [pulumi.interpolate`${deleteDocumentQueueArn}`],
- Effect: 'Allow',
- },
- ],
- },
- tags: this.tags,
- },
- { parent: this }
- );
-
- const secretsPolicy = new aws.iam.Policy(
- `${BASE_NAME}-secrets-policy`,
- {
- policy: {
- Version: '2012-10-17',
- Statement: [
- {
- Action: ['secretsmanager:GetSecretValue'],
- Resource: [...secretKeyArns],
- Effect: 'Allow',
- },
- ],
- },
- tags: this.tags,
- },
- { parent: this }
- );
-
- this.role = new aws.iam.Role(
- `${BASE_NAME}-role`,
- {
- name: `${BASE_NAME}-role-${stack}`,
- assumeRolePolicy: {
- Version: '2012-10-17',
- Statement: [
- {
- Action: 'sts:AssumeRole',
- Principal: {
- Service: 'ecs-tasks.amazonaws.com',
- },
- Effect: 'Allow',
- Sid: '',
- },
- ],
- },
- managedPolicyArns: [
- docStorageBucketPolicy.arn,
- queuePolicy.arn,
- secretsPolicy.arn,
- ],
- tags: this.tags,
- },
- { parent: this }
- );
-
- // ecr image
- const image = new EcrImage(
- `${BASE_NAME}-ecr-image-${stack}`,
- {
- repositoryId: `${BASE_NAME}-ecr-${stack}`,
- repositoryName: `${BASE_NAME}-${stack}`,
- imageId: `${BASE_NAME}-image-${stack}`,
- imagePath: BASE_PATH,
- dockerfile: 'Dockerfile',
- buildArgs: {
- SERVICE_NAME: 'delete_document_worker',
- },
- platform,
- tags: this.tags,
- },
- { parent: this }
- );
- this.ecr = image.ecr;
-
- // sg
- const sg = this.initializeSecurityGroups({
- vpcId: vpc.vpcId,
- serviceContainerPort,
- });
- this.serviceAlbSg = sg.serviceAlbSg;
- this.serviceSg = sg.serviceSg;
-
- // lb
- const { targetGroup, lb, listener } = serviceLoadBalancer(this, {
- serviceName: BASE_NAME, // service name
- serviceContainerPort,
- healthCheckPath,
- vpc,
- albSecurityGroupId: this.serviceAlbSg.id,
- isPrivate,
- tags,
- });
- this.targetGroup = targetGroup;
- this.lb = lb;
- this.listener = listener;
-
- // service
- const service = new awsx.ecs.FargateService(
- `${BASE_NAME}`,
- {
- tags,
- cluster: ecsClusterArn,
- networkConfiguration: {
- subnets: vpc.privateSubnetIds,
- securityGroups: [this.serviceSg.id],
- },
- taskDefinitionArgs: {
- taskRole: {
- roleArn: this.role.arn,
- },
- containers: {
- log_router: fargateLogRouterSidecarContainer,
- datadog_agent: datadogAgentContainer,
- service: {
- name: BASE_NAME,
- image: image.image.imageUri,
- stopTimeout: 10, // 10 seconds to force kill the task
- cpu: 256,
- memory: 512,
- environment: containerEnvVars,
- logConfiguration: {
- logDriver: 'awsfirelens',
- options: {
- Name: 'datadog',
- Host: 'http-intake.logs.us5.datadoghq.com',
- apikey: DATADOG_API_KEY,
- dd_service: 'delete-document-worker',
- dd_source: 'fargate',
- dd_tags: 'project:cloudstorage',
- provider: 'ecs',
- },
- },
- portMappings: [
- {
- appProtocol: 'http',
- name: `${BASE_NAME}-tcp-${stack}`,
- hostPort: serviceContainerPort,
- containerPort: serviceContainerPort,
- targetGroup,
- },
- ],
- },
- },
- runtimePlatform: {
- operatingSystemFamily: `${platform.family.toUpperCase()}`,
- cpuArchitecture: `${
- platform.architecture === 'amd64'
- ? 'X86_64'
- : platform.architecture.toUpperCase()
- }`,
- },
- },
- desiredCount: 1,
- },
- { parent: this }
- );
-
- this.service = service;
-
- this.setupAutoScaling();
-
- this.setupServiceAlarms();
-
- // domain record
- const zone = aws.route53.getZoneOutput({ name: BASE_DOMAIN });
-
- new aws.route53.Record(
- `${BASE_NAME}-domain-record`,
- {
- name: SERVICE_DOMAIN_NAME,
- type: 'A',
- zoneId: zone.zoneId,
- aliases: [
- {
- evaluateTargetHealth: false,
- name: this.lb.dnsName,
- zoneId: this.lb.zoneId,
- },
- ],
- },
- { parent: this }
- );
-
- this.domain = `https://${SERVICE_DOMAIN_NAME}`;
- }
-
- initializeSecurityGroups({
- vpcId,
- serviceContainerPort,
- }: {
- vpcId: pulumi.Output<string> | string;
- serviceContainerPort: number;
- }) {
- const serviceAlbSg = new aws.ec2.SecurityGroup(
- `${BASE_NAME}-alb-sg-${stack}`,
- {
- name: `${BASE_NAME}-alb-sg-${stack}`,
- description: `${BASE_NAME} application load balancer security group`,
- vpcId,
- tags: this.tags,
- },
- { parent: this }
- );
-
- const serviceSg = new aws.ec2.SecurityGroup(
- `${BASE_NAME}-sg-${stack}`,
- {
- name: `${BASE_NAME}-sg-${stack}`,
- vpcId,
- description: `${BASE_NAME} security group that is attached directly to the service`,
- tags: this.tags,
- },
- { parent: this }
- );
-
- new aws.vpc.SecurityGroupIngressRule(
- `${BASE_NAME}-alb-in`,
- {
- securityGroupId: serviceSg.id,
- description: 'Allow inbound traffic from the services ALB',
- referencedSecurityGroupId: serviceAlbSg.id,
- fromPort: serviceContainerPort,
- toPort: serviceContainerPort,
- ipProtocol: 'tcp',
- tags: this.tags,
- },
- { parent: this }
- );
-
- new aws.vpc.SecurityGroupEgressRule(
- `${BASE_NAME}-all-out`,
- {
- securityGroupId: serviceSg.id,
- description: 'Allow all outbound',
- cidrIpv4: '0.0.0.0/0',
- ipProtocol: '-1',
- tags: this.tags,
- },
- { parent: this }
- );
-
- // ALB SG rules
- new aws.vpc.SecurityGroupIngressRule(
- `${BASE_NAME}-http`,
- {
- securityGroupId: serviceAlbSg.id,
- description: 'Allow inbound HTTP traffic',
- cidrIpv4: '0.0.0.0/0',
- fromPort: 80,
- ipProtocol: 'tcp',
- toPort: 80,
- tags: this.tags,
- },
- { parent: this }
- );
-
- new aws.vpc.SecurityGroupIngressRule(
- `${BASE_NAME}-https`,
- {
- securityGroupId: serviceAlbSg.id,
- description: 'Allow inbound HTTPS traffic',
- cidrIpv4: '0.0.0.0/0',
- fromPort: 443,
- ipProtocol: 'tcp',
- toPort: 443,
- tags: this.tags,
- },
- { parent: this }
- );
-
- new aws.vpc.SecurityGroupEgressRule(
- `${BASE_NAME}-out-service`,
- {
- description: 'Allow traffic to the service security group',
- securityGroupId: serviceAlbSg.id,
- referencedSecurityGroupId: serviceSg.id,
- fromPort: serviceContainerPort,
- ipProtocol: 'tcp',
- toPort: serviceContainerPort,
- tags: this.tags,
- },
- { parent: this }
- );
-
- return { serviceAlbSg, serviceSg };
- }
-
- setupAutoScaling() {
- if (!this.service) return;
-
- const serviceScalableTarget = new aws.appautoscaling.Target(
- `${BASE_NAME}-service-scalable-target-${stack}`,
- {
- maxCapacity: stack === 'prod' ? 15 : 3,
- minCapacity: 1,
- resourceId: pulumi.interpolate`service/${this.cloudStorageClusterName}/${this.service.service.name}`,
- scalableDimension: 'ecs:service:DesiredCount',
- serviceNamespace: 'ecs',
- tags: this.tags,
- },
- { parent: this }
- );
-
- // Create an Auto Scaling policy for CPU utilization.
- new aws.appautoscaling.Policy(
- `${BASE_NAME}-scaling-policy-cpu-${stack}`,
- {
- policyType: 'TargetTrackingScaling',
- resourceId: serviceScalableTarget.resourceId,
- scalableDimension: serviceScalableTarget.scalableDimension,
- serviceNamespace: serviceScalableTarget.serviceNamespace,
- targetTrackingScalingPolicyConfiguration: {
- targetValue: 70.0,
- predefinedMetricSpecification: {
- predefinedMetricType: 'ECSServiceAverageCPUUtilization',
- },
- scaleInCooldown: 100,
- scaleOutCooldown: 300,
- },
- },
- { parent: this }
- );
-
- new aws.appautoscaling.Policy(
- `${BASE_NAME}-scaling-policy-memory-${stack}`,
- {
- policyType: 'TargetTrackingScaling',
- resourceId: serviceScalableTarget.resourceId,
- scalableDimension: serviceScalableTarget.scalableDimension,
- serviceNamespace: serviceScalableTarget.serviceNamespace,
- targetTrackingScalingPolicyConfiguration: {
- targetValue: 70.0,
- predefinedMetricSpecification: {
- predefinedMetricType: 'ECSServiceAverageMemoryUtilization',
- },
- scaleInCooldown: 100,
- scaleOutCooldown: 300,
- },
- },
- { parent: this }
- );
- }
-
- setupServiceAlarms() {
- new aws.cloudwatch.MetricAlarm(
- `${BASE_NAME}-high-cpu-alarm`,
- {
- name: `${BASE_NAME}-high-cpu-alarm-${stack}`,
- metricName: 'CPUUtilization',
- namespace: 'AWS/ECS',
- statistic: 'Average',
- period: 180,
- evaluationPeriods: 1,
- threshold: 80,
- comparisonOperator: 'GreaterThanThreshold',
- dimensions: {
- ClusterName: this.cloudStorageClusterName,
- ServiceName: this.service.service.name,
- },
- alarmDescription: `High CPU usage alarm for ${BASE_NAME} service.`,
- actionsEnabled: true,
- alarmActions: [CLOUD_TRAIL_SNS_TOPIC_ARN],
- tags: this.tags,
- },
- { parent: this }
- );
-
- new aws.cloudwatch.MetricAlarm(
- `${BASE_NAME}-high-mem-alarm`,
- {
- name: `${BASE_NAME}-high-mem-alarm-${stack}`,
- metricName: 'MemoryUtilization',
- namespace: 'AWS/ECS',
- statistic: 'Average',
- period: 180,
- evaluationPeriods: 1,
- threshold: 80,
- comparisonOperator: 'GreaterThanThreshold',
- dimensions: {
- ClusterName: this.cloudStorageClusterName,
- ServiceName: this.service.service.name,
- },
- alarmDescription: `High Memory usage alarm for ${BASE_NAME} service.`,
- actionsEnabled: true,
- alarmActions: [CLOUD_TRAIL_SNS_TOPIC_ARN],
- tags: this.tags,
- },
- { parent: this }
- );
- }
-}