@@ -12,19 +12,25 @@ export interface StandardStackProps extends StackProps {
1212 readonly version : string
1313 readonly commitId : string
1414 readonly isPullRequest : boolean
15+ readonly environment : string
1516}
1617
1718export function createApp (
19+ productName : string ,
1820 appName : string ,
1921 repoName : string ,
2022 driftDetectionGroup : string ,
2123 isStateless : boolean = true ,
22- region : string = "eu-west-2"
23- ) : { app : App , props : StandardStackProps } {
24+ region : string = "eu-west-2" ,
25+ projectType : string = "Production" ,
26+ publicFacing : string = "Y" ,
27+ serviceCategory : string = "Platinum"
28+ ) : { app : App , props : StandardStackProps } {
2429 let stackName = getConfigFromEnvVar ( "stackName" )
2530 const versionNumber = getConfigFromEnvVar ( "versionNumber" )
2631 const commitId = getConfigFromEnvVar ( "commitId" )
2732 const isPullRequest = getBooleanConfigFromEnvVar ( "isPullRequest" )
33+ const environment = getConfigFromEnvVar ( "environment" )
2834 let cfnDriftDetectionGroup = driftDetectionGroup
2935 if ( isPullRequest ) {
3036 cfnDriftDetectionGroup += "-pull-request"
@@ -34,6 +40,21 @@ export function createApp(
3440
3541 Aspects . of ( app ) . add ( new AwsSolutionsChecks ( { verbose : true } ) )
3642
43+ Tags . of ( app ) . add ( "TagVersion" , "1" )
44+ Tags . of ( app ) . add ( "Programme" , "EPS" )
45+ Tags . of ( app ) . add ( "Product" , productName )
46+ Tags . of ( app ) . add ( "EPS" , productName )
47+ Tags . of ( app ) . add ( "Owner" , "england.epssupport@nhs.net" )
48+ Tags . of ( app ) . add ( "CostCentre" , "128997" )
49+ Tags . of ( app ) . add ( "Customer" , "NHS England" )
50+ Tags . of ( app ) . add ( "data_classification" , "5" )
51+ Tags . of ( app ) . add ( "DataType" , "PII" )
52+ Tags . of ( app ) . add ( "Environment" , environment )
53+ Tags . of ( app ) . add ( "ProjectType" , projectType )
54+ Tags . of ( app ) . add ( "PublicFacing" , publicFacing )
55+ Tags . of ( app ) . add ( "ServiceCategory" , serviceCategory )
56+ Tags . of ( app ) . add ( "OnOffPattern" , "AlwaysOn" )
57+ Tags . of ( app ) . add ( "DeploymentTool" , "CDK" )
3758 Tags . of ( app ) . add ( "version" , versionNumber )
3859 Tags . of ( app ) . add ( "commit" , commitId )
3960 Tags . of ( app ) . add ( "stackName" , stackName )
0 commit comments