File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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 " =~ -p r-[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
3944fix_string_key accountId " ${ACCOUNT_ID} "
4045fix_string_key stackName " ${STACK_NAME} "
@@ -44,3 +49,4 @@ fix_string_key logRetentionInDays "${LOG_RETENTION_IN_DAYS}"
4449fix_string_key logLevel " ${LOG_LEVEL} "
4550fix_string_key slackBotToken " ${SLACK_BOT_TOKEN} "
4651fix_string_key slackSigningSecret " ${SLACK_SIGNING_SECRET} "
52+ fix_string_key cfnDriftDetectionGroup " ${CFN_DRIFT_DETECTION_GROUP} "
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const accountId = app.node.tryGetContext("accountId")
1717const stackName = app . node . tryGetContext ( "stackName" )
1818const version = app . node . tryGetContext ( "versionNumber" )
1919const commit = app . node . tryGetContext ( "commitId" )
20+ const cfnDriftDetectionGroup = app . node . tryGetContext ( "cfnDriftDetectionGroup" )
2021
2122Aspects . of ( app ) . add ( new AwsSolutionsChecks ( { verbose : true } ) )
2223
@@ -25,6 +26,7 @@ Tags.of(app).add("accountId", accountId)
2526Tags . of ( app ) . add ( "stackName" , stackName )
2627Tags . of ( app ) . add ( "version" , version )
2728Tags . of ( app ) . add ( "commit" , commit )
29+ Tags . of ( app ) . add ( "cfnDriftDetectionGroup" , cfnDriftDetectionGroup )
2830
2931const EpsAssistMe = new EpsAssistMeStack ( app , "EpsAssistMeStack" , {
3032 env : {
You can’t perform that action at this time.
0 commit comments