@@ -92,26 +92,26 @@ class AdminAPI extends TerraformStack {
92
92
}
93
93
94
94
const incidentManagement = new DataTerraformRemoteState (
95
- this ,
96
- 'incident_management' ,
97
- {
98
- organization : 'Pocket' ,
99
- workspaces : {
100
- name : 'incident-management' ,
101
- } ,
95
+ this ,
96
+ 'incident_management' ,
97
+ {
98
+ organization : 'Pocket' ,
99
+ workspaces : {
100
+ name : 'incident-management' ,
102
101
} ,
102
+ } ,
103
103
) ;
104
104
105
105
return new PocketPagerDuty ( this , 'pagerduty' , {
106
106
prefix : config . prefix ,
107
107
service : {
108
108
// This is a Tier 2 service and as such only raises non-critical alarms.
109
109
criticalEscalationPolicyId : incidentManagement
110
- . get ( 'policy_default_non_critical_id' )
111
- . toString ( ) ,
110
+ . get ( 'policy_default_non_critical_id' )
111
+ . toString ( ) ,
112
112
nonCriticalEscalationPolicyId : incidentManagement
113
- . get ( 'policy_default_non_critical_id' )
114
- . toString ( ) ,
113
+ . get ( 'policy_default_non_critical_id' )
114
+ . toString ( ) ,
115
115
} ,
116
116
} ) ;
117
117
}
@@ -124,7 +124,7 @@ class AdminAPI extends TerraformStack {
124
124
snsTopic : sns . DataAwsSnsTopic ;
125
125
} ) : PocketALBApplication {
126
126
const { pagerDuty, region, caller, secretsManagerKmsAlias, snsTopic } =
127
- dependencies ;
127
+ dependencies ;
128
128
129
129
return new PocketALBApplication ( this , 'application' , {
130
130
internal : false , //set to true to put it inside our vpc
@@ -244,7 +244,7 @@ class AdminAPI extends TerraformStack {
244
244
} ,
245
245
] ,
246
246
taskExecutionDefaultAttachmentArn :
247
- 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy' ,
247
+ 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy' ,
248
248
} ,
249
249
autoscalingConfig : {
250
250
targetMinCapacity : 2 ,
@@ -258,8 +258,8 @@ class AdminAPI extends TerraformStack {
258
258
evaluationPeriods : 4 ,
259
259
period : 300 , //in seconds, 5 mins per period
260
260
actions : config . isProd
261
- ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
262
- : [ ] ,
261
+ ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
262
+ : [ ] ,
263
263
} ,
264
264
httpLatency : {
265
265
//Triggers non-critical alert if latency is above 500ms
@@ -268,8 +268,8 @@ class AdminAPI extends TerraformStack {
268
268
threshold : 500 ,
269
269
period : 900 , //in seconds, 15 mins per period
270
270
actions : config . isProd
271
- ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
272
- : [ ] ,
271
+ ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
272
+ : [ ] ,
273
273
} ,
274
274
} ,
275
275
} ) ;
@@ -278,4 +278,4 @@ class AdminAPI extends TerraformStack {
278
278
279
279
const app = new App ( ) ;
280
280
new AdminAPI ( app , 'admin-api' ) ;
281
- app . synth ( ) ;
281
+ app . synth ( ) ;
0 commit comments