Skip to content

Commit 47596e4

Browse files
committed
chore: wip
1 parent fe15245 commit 47596e4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.stacks/core/cloud/src/cloud.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,11 @@ export class StacksCloud extends Stack {
586586
rules: this.getFirewallRules(),
587587
}
588588

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 })
590594
}
591595

592596
manageFileSystem() {
@@ -608,10 +612,12 @@ export class StacksCloud extends Stack {
608612

609613
const role = new iam.Role(this, 'JumpBoxInstanceRole', {
610614
assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),
615+
managedPolicies: [
616+
iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonSSMManagedInstanceCore'),
617+
iam.ManagedPolicy.fromAwsManagedPolicyName('CloudWatchAgentServerPolicy'),
618+
],
611619
})
612620

613-
role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonSSMManagedInstanceCore'))
614-
615621
// this instance needs to be created once to mount the EFS & clone the Stacks repo
616622
this.ec2Instance = new ec2.Instance(this, 'JumpBox', {
617623
vpc: this.vpc,

0 commit comments

Comments
 (0)