Skip to content

Commit 25629c3

Browse files
committed
add cfnDriftDetectionGroup
1 parent 39fa6c0 commit 25629c3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/scripts/fix_cdk_json.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ fix_boolean_number_key() {
3535
mv .build/cdk.new.json .build/cdk.json
3636
}
3737

38+
CFN_DRIFT_DETECTION_GROUP="epsam"
39+
if [[ "$STACK_NAME" =~ -pr-[0-9]+$ ]]; then
40+
CFN_DRIFT_DETECTION_GROUP="epsam-pull-request"
41+
fi
42+
3843
# go through all the key values we need to set
3944
fix_string_key accountId "${ACCOUNT_ID}"
4045
fix_string_key stackName "${STACK_NAME}"
@@ -44,3 +49,4 @@ fix_string_key logRetentionInDays "${LOG_RETENTION_IN_DAYS}"
4449
fix_string_key logLevel "${LOG_LEVEL}"
4550
fix_string_key slackBotToken "${SLACK_BOT_TOKEN}"
4651
fix_string_key slackSigningSecret "${SLACK_SIGNING_SECRET}"
52+
fix_string_key cfnDriftDetectionGroup "${CFN_DRIFT_DETECTION_GROUP}"

packages/cdk/bin/EpsAssistMeApp.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const accountId = app.node.tryGetContext("accountId")
1717
const stackName = app.node.tryGetContext("stackName")
1818
const version = app.node.tryGetContext("versionNumber")
1919
const commit = app.node.tryGetContext("commitId")
20+
const cfnDriftDetectionGroup = app.node.tryGetContext("cfnDriftDetectionGroup")
2021

2122
Aspects.of(app).add(new AwsSolutionsChecks({verbose: true}))
2223

@@ -25,6 +26,7 @@ Tags.of(app).add("accountId", accountId)
2526
Tags.of(app).add("stackName", stackName)
2627
Tags.of(app).add("version", version)
2728
Tags.of(app).add("commit", commit)
29+
Tags.of(app).add("cfnDriftDetectionGroup", cfnDriftDetectionGroup)
2830

2931
const EpsAssistMe = new EpsAssistMeStack(app, "EpsAssistMeStack", {
3032
env: {

0 commit comments

Comments
 (0)