Skip to content

Commit

Permalink
fix(xray): removing aws xray
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Aug 28, 2024
1 parent 6a13f44 commit 659d156
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions infrastructure/braze-content-proxy/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import { Construct } from 'constructs';
import {
App,
Aspects,
DataTerraformRemoteState,
MigrateIds,
S3Backend,
TerraformStack,
} from 'cdktf';
import { App, S3Backend, TerraformStack } from 'cdktf';
import {
provider as awsProvider,
dataAwsCallerIdentity,
Expand All @@ -15,10 +8,7 @@ import {
dataAwsSnsTopic,
} from '@cdktf/provider-aws';
import { config } from './config';
import {
PocketALBApplication,
PocketPagerDuty,
} from '@pocket-tools/terraform-modules';
import { PocketALBApplication } from '@pocket-tools/terraform-modules';
import { provider as localProvider } from '@cdktf/provider-local';
import { provider as nullProvider } from '@cdktf/provider-null';
import { provider as pagerDutyProvider } from '@cdktf/provider-pagerduty';
Expand Down Expand Up @@ -57,10 +47,6 @@ class BrazeContentProxy extends TerraformStack {
region,
caller,
});

// Pre cdktf 0.17 ids were generated differently so we need to apply a migration aspect
// https://developer.hashicorp.com/terraform/cdktf/concepts/aspects
Aspects.of(this).add(new MigrateIds());
}

/**
Expand Down Expand Up @@ -128,18 +114,6 @@ class BrazeContentProxy extends TerraformStack {
},
],
},
{
name: 'xray-daemon',
containerImage: 'public.ecr.aws/xray/aws-xray-daemon:latest',
portMappings: [
{
hostPort: 2000,
containerPort: 2000,
protocol: 'udp',
},
],
command: ['--region', 'us-east-1', '--local-mode'],
},
],
codeDeploy: {
useCodeDeploy: true,
Expand Down

0 comments on commit 659d156

Please sign in to comment.