@@ -92,26 +92,26 @@ class AdminAPI extends TerraformStack {
9292 }
9393
9494 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' ,
102101 } ,
102+ } ,
103103 ) ;
104104
105105 return new PocketPagerDuty ( this , 'pagerduty' , {
106106 prefix : config . prefix ,
107107 service : {
108108 // This is a Tier 2 service and as such only raises non-critical alarms.
109109 criticalEscalationPolicyId : incidentManagement
110- . get ( 'policy_default_non_critical_id' )
111- . toString ( ) ,
110+ . get ( 'policy_default_non_critical_id' )
111+ . toString ( ) ,
112112 nonCriticalEscalationPolicyId : incidentManagement
113- . get ( 'policy_default_non_critical_id' )
114- . toString ( ) ,
113+ . get ( 'policy_default_non_critical_id' )
114+ . toString ( ) ,
115115 } ,
116116 } ) ;
117117 }
@@ -124,7 +124,7 @@ class AdminAPI extends TerraformStack {
124124 snsTopic : sns . DataAwsSnsTopic ;
125125 } ) : PocketALBApplication {
126126 const { pagerDuty, region, caller, secretsManagerKmsAlias, snsTopic } =
127- dependencies ;
127+ dependencies ;
128128
129129 return new PocketALBApplication ( this , 'application' , {
130130 internal : false , //set to true to put it inside our vpc
@@ -244,7 +244,7 @@ class AdminAPI extends TerraformStack {
244244 } ,
245245 ] ,
246246 taskExecutionDefaultAttachmentArn :
247- 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy' ,
247+ 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy' ,
248248 } ,
249249 autoscalingConfig : {
250250 targetMinCapacity : 2 ,
@@ -258,8 +258,8 @@ class AdminAPI extends TerraformStack {
258258 evaluationPeriods : 4 ,
259259 period : 300 , //in seconds, 5 mins per period
260260 actions : config . isProd
261- ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
262- : [ ] ,
261+ ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
262+ : [ ] ,
263263 } ,
264264 httpLatency : {
265265 //Triggers non-critical alert if latency is above 500ms
@@ -268,8 +268,8 @@ class AdminAPI extends TerraformStack {
268268 threshold : 500 ,
269269 period : 900 , //in seconds, 15 mins per period
270270 actions : config . isProd
271- ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
272- : [ ] ,
271+ ? [ pagerDuty . snsNonCriticalAlarmTopic . arn ]
272+ : [ ] ,
273273 } ,
274274 } ,
275275 } ) ;
@@ -278,4 +278,4 @@ class AdminAPI extends TerraformStack {
278278
279279const app = new App ( ) ;
280280new AdminAPI ( app , 'admin-api' ) ;
281- app . synth ( ) ;
281+ app . synth ( ) ;
0 commit comments