diff --git a/aws/bin/aws.ts b/aws/bin/aws.ts index 0fc9738..4a4c6a0 100644 --- a/aws/bin/aws.ts +++ b/aws/bin/aws.ts @@ -3,7 +3,6 @@ import { App } from 'aws-cdk-lib'; import { Environment } from '../lib/environment'; import { GithubActionsStack } from '../lib/github-actions-stack'; -import { PhoneServiceStack } from '../lib/phone-service-stack'; const app = new App(); @@ -60,14 +59,6 @@ new Environment(app, { 'pk_live_51R8r2XGsawEQFubmkaZnBAnZcaYT8lGqacq3iMTi0RMpKxbKR4LpDLBerS2WoP266mM2r0KWKFXWPnqgJlpqxUu900PH2XDT5j', }); -new PhoneServiceStack(app, 'phone-service', { - env: { - account: '449678530274', - region: 'us-east-1', - }, - stackName: 'cloud-snitch-phone-service', -}); - new GithubActionsStack(app, 'github-actions-dev', { ref: 'refs/heads/main', repo: 'ccbrown/cloud-snitch', diff --git a/aws/lib/phone-service-stack.ts b/aws/lib/phone-service-stack.ts deleted file mode 100644 index 9b81eac..0000000 --- a/aws/lib/phone-service-stack.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { aws_connect as connect, Stack, StackProps } from 'aws-cdk-lib'; -import { Construct } from 'constructs'; - -// This stack sets up an Amazon Connect instance with a phone number. Stripe requires a phone -// number even though it's not actually used for anything. We don't actually provide phone support -// at the moment, but we can use this number for Stripe. -export class PhoneServiceStack extends Stack { - constructor(scope: Construct, id: string, props: StackProps) { - super(scope, id, props); - - const instance = new connect.CfnInstance(this, 'Instance', { - identityManagementType: 'CONNECT_MANAGED', - instanceAlias: 'cloudsnitch', - attributes: { - inboundCalls: true, - outboundCalls: false, - }, - }); - - new connect.CfnPhoneNumber(this, 'PhoneNumber', { - countryCode: 'US', - targetArn: instance.attrArn, - type: 'DID', - }); - - // TODO: Accept calls? Currently callers just hear a busy signal and get disconnected. - } -}