diff --git a/.aws/src/main.ts b/.aws/src/main.ts index 0906cbb93..aa8ec9f98 100644 --- a/.aws/src/main.ts +++ b/.aws/src/main.ts @@ -301,31 +301,23 @@ class Stack extends TerraformStack { name: 'MozillaOpsSource', priority: 0, action: { count: {} }, - statement: [ - { - byteMatchStatement: [ + statement: { + byteMatchStatement: { + searchString: 'mozilla', + fieldToMatch: { + singleHeader: { + name: 'x-source', + }, + }, + textTransformation: [ { - searchString: 'mozilla', - fieldToMatch: [ - { - singleHeader: [ - { - name: 'x-source', - }, - ], - }, - ], - textTransformation: [ - { - priority: 0, - type: 'LOWERCASE', - }, - ], - positionalConstraint: 'EXACTLY', + priority: 0, + type: 'LOWERCASE', }, ], + positionalConstraint: 'EXACTLY', }, - ], + }, visibilityConfig: { cloudwatchMetricsEnabled: true, metricName: 'MozillaOpsSource',