@@ -586,7 +586,11 @@ export class StacksCloud extends Stack {
586
586
rules : this . getFirewallRules ( ) ,
587
587
}
588
588
589
- this . firewall = new wafv2 . CfnWebACL ( this , 'WebFirewall' , options )
589
+ // this.firewall = new wafv2.CfnWebACL(this, 'WebFirewall', options)
590
+ const wafAclCloudFront = new wafv2 . CfnWebACL ( this , 'WebFirewall' , options )
591
+ Tags . of ( wafAclCloudFront ) . add ( 'Name' , 'waf-cloudfront' , { priority : 300 } )
592
+ Tags . of ( wafAclCloudFront ) . add ( 'Purpose' , 'CloudFront' , { priority : 300 } )
593
+ Tags . of ( wafAclCloudFront ) . add ( 'CreatedBy' , 'CloudFormation' , { priority : 300 } )
590
594
}
591
595
592
596
manageFileSystem ( ) {
@@ -608,10 +612,12 @@ export class StacksCloud extends Stack {
608
612
609
613
const role = new iam . Role ( this , 'JumpBoxInstanceRole' , {
610
614
assumedBy : new iam . ServicePrincipal ( 'ec2.amazonaws.com' ) ,
615
+ managedPolicies : [
616
+ iam . ManagedPolicy . fromAwsManagedPolicyName ( 'AmazonSSMManagedInstanceCore' ) ,
617
+ iam . ManagedPolicy . fromAwsManagedPolicyName ( 'CloudWatchAgentServerPolicy' ) ,
618
+ ] ,
611
619
} )
612
620
613
- role . addManagedPolicy ( iam . ManagedPolicy . fromAwsManagedPolicyName ( 'AmazonSSMManagedInstanceCore' ) )
614
-
615
621
// this instance needs to be created once to mount the EFS & clone the Stacks repo
616
622
this . ec2Instance = new ec2 . Instance ( this , 'JumpBox' , {
617
623
vpc : this . vpc ,
0 commit comments