Skip to content

Commit 33e3155

Browse files
committed
forward waf logs to csoc
1 parent fd62a73 commit 33e3155

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.github/scripts/fix_cdk_json.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ fix_string_key cfnDriftDetectionGroup "${CFN_DRIFT_DETECTION_GROUP}"
183183
fix_boolean_number_key isPullRequest "${IS_PULL_REQUEST}"
184184
fix_string_key csocUKWafDestination "arn:aws:logs:eu-west-2:693466633220:destination:waf_log_destination" # CSOC WAF log destination - do not change
185185
fix_string_key csocUSWafDestination "arn:aws:logs:us-east-1:693466633220:destination:waf_log_destination_virginia" # CSOC WAF log destination - do not change
186-
fix_string_key csocApiGatewayDestination "arn:aws:logs:eu-west-2:693466633220:destination:api_gateway_log_destination" # CSOC API Gateway log destination - do not change
187186
fix_boolean_number_key forwardCsocLogs "${FORWARD_CSOC_LOGS}"
188187

189188
if [ "$CDK_APP_NAME" == "StatefulResourcesApp" ]; then

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
REACT_LOG_LEVEL: "debug"
184184
LOG_RETENTION_IN_DAYS: 30
185185
IS_PULL_REQUEST: true
186-
FORWARD_CSOC_LOGS: true
186+
FORWARD_CSOC_LOGS: false
187187
secrets: inherit
188188
report_deployed_url:
189189
needs: [release_code, get_issue_number]

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ cdk-synth-stateful-resources-no-mock:
218218
DO_NOT_GET_AWS_EXPORT=true \
219219
IS_PULL_REQUEST=false \
220220
USE_ZONE_APEX=false \
221+
FORWARD_CSOC_LOGS=true \
221222
./.github/scripts/fix_cdk_json.sh .local_config/stateful_app.config.json
222223
CONFIG_FILE_NAME=.local_config/stateful_app.config.json npx cdk synth \
223224
--quiet \
@@ -267,6 +268,7 @@ cdk-synth-stateless-resources-no-mock:
267268
CLOUDFRONT_ORIGIN_CUSTOM_HEADER=foo \
268269
IS_PULL_REQUEST=false \
269270
USE_ZONE_APEX=false \
271+
FORWARD_CSOC_LOGS=true \
270272
./.github/scripts/fix_cdk_json.sh .local_config/stateless_app.config.json
271273
CONFIG_FILE_NAME=.local_config/stateless_app.config.json npx cdk synth \
272274
--quiet \
@@ -313,6 +315,7 @@ cdk-synth-stateful-resources-mock:
313315
DO_NOT_GET_AWS_EXPORT=true \
314316
IS_PULL_REQUEST=false \
315317
USE_ZONE_APEX=false \
318+
FORWARD_CSOC_LOGS=true \
316319
./.github/scripts/fix_cdk_json.sh .local_config/stateful_app.config.json
317320
CONFIG_FILE_NAME=.local_config/stateful_app.config.json npx cdk synth \
318321
--quiet \
@@ -368,6 +371,7 @@ cdk-synth-stateless-resources-mock:
368371
CLOUDFRONT_ORIGIN_CUSTOM_HEADER=foo \
369372
IS_PULL_REQUEST=false \
370373
USE_ZONE_APEX=false \
374+
FORWARD_CSOC_LOGS=true \
371375
./.github/scripts/fix_cdk_json.sh .local_config/stateless_app.config.json
372376
CONFIG_FILE_NAME=.local_config/stateless_app.config.json npx cdk synth \
373377
--quiet \

packages/cdk/stacks/StatelessResourcesStack.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export class StatelessResourcesStack extends Stack {
9898
const githubAllowListIpv6 = this.node.tryGetContext("githubAllowListIpv6")
9999
const cloudfrontOriginCustomHeader = this.node.tryGetContext("cloudfrontOriginCustomHeader")
100100
const csocUKWafDestination: string = this.node.tryGetContext("csocUKWafDestination")
101-
// const csocApiGatewayDestination: string = this.node.tryGetContext("csocApiGatewayDestination")
102101
const forwardCsocLogs: boolean = this.node.tryGetContext("forwardCsocLogs")
103102

104103
// Imports

scripts/run_sync.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ ROLE_ID=$(echo "$CF_LONDON_EXPORTS" | \
244244
--arg EXPORT_NAME "${SERVICE_NAME}-stateless-resources:local:roleId" \
245245
-r '.Exports[] | select(.Name == $EXPORT_NAME) | .Value')
246246
USE_ZONE_APEX=false
247+
FORWARD_CSOC_LOGS=false
247248

248249
# export all the vars so they can be picked up by external programs
249250
export SERVICE_NAME
@@ -326,6 +327,7 @@ export JWT_KID
326327
export ROLE_ID
327328
export USE_ZONE_APEX
328329
export IS_PULL_REQUEST
330+
export FORWARD_CSOC_LOGS
329331

330332
# variables needed for StatefulResourcesApp
331333
CDK_APP_NAME=StatefulResourcesApp

0 commit comments

Comments
 (0)