@@ -7,6 +7,8 @@ import * as S3 from '@aws-cdk/aws-s3'
77import { BuildActionCodeBuild , WebAppCD } from '../resources/WebAppCD'
88import { CONTINUOUS_DEPLOYMENT_STACK_NAME , CORE_STACK_NAME } from './stackName'
99import { enabledInContext } from '../helper/enabledInContext'
10+ import { info } from '../helper/note'
11+ import * as chalk from 'chalk'
1012
1113/**
1214 * This is the CloudFormation stack sets up the continuous deployment of the project.
@@ -34,6 +36,13 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
3436 ) {
3537 super ( parent , CONTINUOUS_DEPLOYMENT_STACK_NAME )
3638
39+ const { core, deviceUI, webApp } = properties
40+
41+ info (
42+ 'Continuous Deployment' ,
43+ `Monitoring ${ chalk . white ( `${ core . owner } /${ core . repo } @${ core . branch } ` ) } ` ,
44+ )
45+
3746 const checkFlag = enabledInContext ( this . node )
3847
3948 // CD for the Web App is implied by enabled CD (in that case this Stack exists) and enabled Web App
@@ -48,6 +57,14 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
4857 description :
4958 'Whether the continuous deployment of the Web App is enabled or disabled.' ,
5059 } )
60+ if ( enableWebAppCD ) {
61+ info (
62+ 'Continuous Deployment' ,
63+ `Monitoring ${ chalk . white (
64+ `${ webApp . owner } /${ webApp . repo } @${ webApp . branch } ` ,
65+ ) } `,
66+ )
67+ }
5168
5269 // CD for the Device Simulator Web Application is implied by enabled CD (in that case this Stack exists) and enabled Device Simulator Web Application
5370 const enableDeviceUICD = checkFlag ( {
@@ -61,6 +78,14 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
6178 description :
6279 'Whether the continuous deployment of the Device Simulator Web Application is enabled or disabled.' ,
6380 } )
81+ if ( enableDeviceUICD ) {
82+ info (
83+ 'Continuous Deployment' ,
84+ `Monitoring ${ chalk . white (
85+ `${ deviceUI . owner } /${ deviceUI . repo } @${ deviceUI . branch } ` ,
86+ ) } `,
87+ )
88+ }
6489
6590 // CD for the Device Simulator Web Application is implied by enabled CD (in that case this Stack exists) and enabled Device Simulator Web Application
6691 const enabledFirmwareCiCD = checkFlag ( {
@@ -75,8 +100,6 @@ export class ContinuousDeploymentStack extends CloudFormation.Stack {
75100 'Whether the continuous deployment of the Firmware CI is enabled or disabled.' ,
76101 } )
77102
78- const { core, deviceUI, webApp } = properties
79-
80103 const codeBuildRole = new IAM . Role ( this , 'CodeBuildRole' , {
81104 assumedBy : new IAM . ServicePrincipal ( 'codebuild.amazonaws.com' ) ,
82105 inlinePolicies : {
0 commit comments