@@ -47,7 +47,7 @@ export class VpcResourcesStack extends Stack {
4747 // Context
4848 /* context values passed as --context cli arguments are passed as strings so coerce them to expected types*/
4949 const logRetentionInDays : number = Number ( this . node . tryGetContext ( "logRetentionInDays" ) )
50- const forwardCsocLogs : boolean = Boolean ( this . node . tryGetContext ( "forwardCsocLogs" ) )
50+ // const forwardCsocLogs: boolean = Boolean(this.node.tryGetContext("forwardCsocLogs"))
5151
5252 // Imports
5353 const cloudwatchKmsKey = Key . fromKeyArn (
@@ -73,19 +73,19 @@ export class VpcResourcesStack extends Stack {
7373 }
7474
7575 // Conditionally add S3 flow logs if forwardCsocLogs is true
76- if ( forwardCsocLogs ) {
77- const vpcFlowLogsBucket = Bucket . fromBucketArn (
78- this ,
79- "VpcFlowLogsBucket" ,
80- "arn:aws:s3:::nhsd-audit-vpcflowlogs"
81- )
82-
83- flowLogsConfig [ "FlowLogS3" ] = {
84- destination : FlowLogDestination . toS3 ( vpcFlowLogsBucket ) ,
85- trafficType : FlowLogTrafficType . ALL ,
86- maxAggregationInterval : FlowLogMaxAggregationInterval . TEN_MINUTES
87- }
76+ //if (forwardCsocLogs) {
77+ const vpcFlowLogsBucket = Bucket . fromBucketArn (
78+ this ,
79+ "VpcFlowLogsBucket" ,
80+ "arn:aws:s3:::nhsd-audit-vpcflowlogs"
81+ )
82+
83+ flowLogsConfig [ "FlowLogS3" ] = {
84+ destination : FlowLogDestination . toS3 ( vpcFlowLogsBucket ) ,
85+ trafficType : FlowLogTrafficType . ALL ,
86+ maxAggregationInterval : FlowLogMaxAggregationInterval . TEN_MINUTES
8887 }
88+ //}
8989
9090 const vpc = new Vpc ( this , "vpc" , {
9191 ipAddresses : IpAddresses . cidr ( "10.190.0.0/16" ) ,
0 commit comments