File tree 2 files changed +48
-0
lines changed
packages/@aws-cdk/aws-ec2
2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ class S3Destination extends FlowLogDestination {
198
198
if ( this . props . s3Bucket === undefined ) {
199
199
s3Bucket = new s3 . Bucket ( scope , 'Bucket' , {
200
200
encryption : s3 . BucketEncryption . UNENCRYPTED ,
201
+ enforceSSL : true ,
201
202
removalPolicy : RemovalPolicy . RETAIN ,
202
203
} ) ;
203
204
} else {
Original file line number Diff line number Diff line change 527
527
"UpdateReplacePolicy" : " Retain" ,
528
528
"DeletionPolicy" : " Retain"
529
529
},
530
+ "VPCFlowLogsS3BucketPolicyB2C2A045" : {
531
+ "Type" : " AWS::S3::BucketPolicy" ,
532
+ "Properties" : {
533
+ "Bucket" : {
534
+ "Ref" : " VPCFlowLogsS3BucketFB7DC2BE"
535
+ },
536
+ "PolicyDocument" : {
537
+ "Statement" : [
538
+ {
539
+ "Action" : " s3:*" ,
540
+ "Condition" : {
541
+ "Bool" : {
542
+ "aws:SecureTransport" : " false"
543
+ }
544
+ },
545
+ "Effect" : " Deny" ,
546
+ "Principal" : {
547
+ "AWS" : " *"
548
+ },
549
+ "Resource" : [
550
+ {
551
+ "Fn::GetAtt" : [
552
+ " VPCFlowLogsS3BucketFB7DC2BE" ,
553
+ " Arn"
554
+ ]
555
+ },
556
+ {
557
+ "Fn::Join" : [
558
+ " " ,
559
+ [
560
+ {
561
+ "Fn::GetAtt" : [
562
+ " VPCFlowLogsS3BucketFB7DC2BE" ,
563
+ " Arn"
564
+ ]
565
+ },
566
+ " /*"
567
+ ]
568
+ ]
569
+ }
570
+ ]
571
+ }
572
+ ],
573
+ "Version" : " 2012-10-17"
574
+ }
575
+ }
576
+ },
530
577
"VPCFlowLogsS3FlowLogB5256CFF" : {
531
578
"Type" : " AWS::EC2::FlowLog" ,
532
579
"Properties" : {
You can’t perform that action at this time.
0 commit comments