@@ -18,6 +18,12 @@ const stackName = app.node.tryGetContext("stackName")
1818const version = app . node . tryGetContext ( "versionNumber" )
1919const commit = app . node . tryGetContext ( "commitId" )
2020
21+ console . log ( "CDK context:" , { accountId, stackName, version, commit} )
22+
23+ if ( ! accountId || ! stackName || ! version || ! commit ) {
24+ throw new Error ( `Missing required CDK context values: ${ JSON . stringify ( { accountId, stackName, version, commit} ) } ` )
25+ }
26+
2127Aspects . of ( app ) . add ( new AwsSolutionsChecks ( { verbose : true } ) )
2228
2329Tags . of ( app ) . add ( "cdkApp" , "EpsAssistMe" )
@@ -26,12 +32,6 @@ Tags.of(app).add("stackName", stackName)
2632Tags . of ( app ) . add ( "version" , version )
2733Tags . of ( app ) . add ( "commit" , commit )
2834
29- console . log ( "CDK context:" , { accountId, stackName, version, commit} )
30-
31- if ( ! accountId || ! stackName || ! version || ! commit ) {
32- throw new Error ( `Missing required CDK context values: ${ JSON . stringify ( { accountId, stackName, version, commit} ) } ` )
33- }
34-
3535const EpsAssistMe = new EpsAssistMeStack ( app , "EpsAssistMeStack" , {
3636 env : {
3737 region : "eu-west-2" ,
0 commit comments