Skip to content

Commit f358633

Browse files
bassrockcollectedmind
authored andcommitted
fix(terraform): removing chatbot notifications
1 parent bc9feb6 commit f358633

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

infrastructure/pocket/src/main.ts

+2-15
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,11 @@ class PocketClient extends TerraformStack {
3838

3939
this.createPocketAlbApplication({
4040
secretsManagerKmsAlias: this.getSecretsManagerKmsAlias(),
41-
snsTopic: this.getCodeDeploySnsTopic(),
4241
region,
4342
caller
4443
})
4544
}
4645

47-
/**
48-
* Get the sns topic for code deploy
49-
* @private
50-
*/
51-
private getCodeDeploySnsTopic() {
52-
return new dataAwsSnsTopic.DataAwsSnsTopic(this, 'frontend_notifications', {
53-
name: `Frontend-${config.environment}-ChatBot`
54-
})
55-
}
56-
5746
/**
5847
* Get secrets manager kms alias
5948
* @private
@@ -68,9 +57,8 @@ class PocketClient extends TerraformStack {
6857
region: dataAwsRegion.DataAwsRegion
6958
caller: dataAwsCallerIdentity.DataAwsCallerIdentity
7059
secretsManagerKmsAlias: dataAwsKmsAlias.DataAwsKmsAlias
71-
snsTopic: dataAwsSnsTopic.DataAwsSnsTopic
7260
}): PocketALBApplication {
73-
const { region, caller, secretsManagerKmsAlias, snsTopic } = dependencies
61+
const { region, caller, secretsManagerKmsAlias } = dependencies
7462

7563
return new PocketALBApplication(this, 'application', {
7664
prefix: config.prefix,
@@ -148,8 +136,7 @@ class PocketClient extends TerraformStack {
148136
notifyOnFailed: true,
149137
notifyOnStarted: false,
150138
notifyOnSucceeded: false
151-
},
152-
snsNotificationTopicArn: snsTopic.arn
139+
}
153140
},
154141
exposedContainer: {
155142
name: 'app',

infrastructure/web/src/main.ts

+2-15
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,11 @@ class WebClient extends TerraformStack {
3838

3939
this.createPocketAlbApplication({
4040
secretsManagerKmsAlias: this.getSecretsManagerKmsAlias(),
41-
snsTopic: this.getCodeDeploySnsTopic(),
4241
region,
4342
caller
4443
})
4544
}
4645

47-
/**
48-
* Get the sns topic for code deploy
49-
* @private
50-
*/
51-
private getCodeDeploySnsTopic() {
52-
return new dataAwsSnsTopic.DataAwsSnsTopic(this, 'frontend_notifications', {
53-
name: `Frontend-${config.environment}-ChatBot`
54-
})
55-
}
56-
5746
/**
5847
* Get secrets manager kms alias
5948
* @private
@@ -68,9 +57,8 @@ class WebClient extends TerraformStack {
6857
region: dataAwsRegion.DataAwsRegion
6958
caller: dataAwsCallerIdentity.DataAwsCallerIdentity
7059
secretsManagerKmsAlias: dataAwsKmsAlias.DataAwsKmsAlias
71-
snsTopic: dataAwsSnsTopic.DataAwsSnsTopic
7260
}): PocketALBApplication {
73-
const { region, caller, secretsManagerKmsAlias, snsTopic } = dependencies
61+
const { region, caller, secretsManagerKmsAlias } = dependencies
7462

7563
return new PocketALBApplication(this, 'application', {
7664
prefix: config.prefix,
@@ -147,8 +135,7 @@ class WebClient extends TerraformStack {
147135
notifyOnFailed: true,
148136
notifyOnStarted: false,
149137
notifyOnSucceeded: false
150-
},
151-
snsNotificationTopicArn: snsTopic.arn
138+
}
152139
},
153140
exposedContainer: {
154141
name: 'app',

0 commit comments

Comments
 (0)