Lesson 3 of 3 AWS WAF, Shield and Firewall Manager

Applying Security Policies Across Accounts with AWS Firewall Manager

This lesson explains how AWS Firewall Manager applies firewall and security policies consistently across every account in an organisation, including accounts and resources created later.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the prerequisites for Firewall Manager.
  • Identify the policy types it applies.
  • Explain how it enforces policies on new resources.

Requirements

AWS Firewall Manager applies security policies across an organisation, and it depends on two other services to do so. It requires AWS Organizations, with Firewall Manager administered from the management account or a delegated administrator account. It also requires AWS Config to be enabled in every account and Region where policies apply, because it uses Config to discover resources and track their compliance.

True or false

Firewall Manager requirements

Exam skills 1.1.4

Check what Firewall Manager needs and how it enforces policies.

Log in to try this activity Interactive activities are free with an account.

Policy types

AWS Firewall Manager applies security policies to every account in an organisation from one administrator account, and keeps applying them automatically as accounts and resources are added. It requires AWS Organizations and AWS Config.

An AWS WAF policy attaches web ACLs and rule groups to every matching ALB, API Gateway stage and CloudFront distribution. A Shield Advanced policy turns on protection for chosen resources in every account. A security group policy can apply a common group to every instance, audit rules that are too permissive, such as SSH open to the internet, and clean up unused groups. Network Firewall and Route 53 Resolver DNS Firewall policies deploy firewalls and DNS filtering rules to VPCs, and third-party firewall policies manage supported partner products. The following table summarises the policy types.

PolicyWhat it does
AWS WAFApplies web ACLs and rule groups to ALBs, API Gateway, CloudFront and more
Shield AdvancedEnables Shield Advanced protection on chosen resources
Security groupApplies a common group to every instance, audits overly permissive rules and cleans up unused groups
Network FirewallDeploys firewalls and routes in VPCs
Route 53 Resolver DNS FirewallAssociates DNS firewall rule groups with VPCs
Third-party firewallsManages supported partner firewalls
Match the pairs

Firewall Manager policies

Exam skills 1.1.4 · 1.2.3

Match each organisation-wide requirement with the Firewall Manager policy type.

Log in to try this activity Interactive activities are free with an account.

How it enforces policies

A Firewall Manager policy defines a protection, such as a WAF web ACL, Shield Advanced protection, a security group baseline or a Network Firewall configuration, and its scope: which accounts or OUs, which resource types and which resource tags it applies to. Firewall Manager applies the policy to existing resources in scope and automatically to new ones, including resources in accounts that join the organisation later.

It reports resources that do not comply, and optional automatic remediation brings them back into line, for example associating the required web ACL with a new load balancer. This is why Firewall Manager is the usual answer when a protection must be enforced consistently across every account.

The following diagram shows a policy applied across its scope.

How AWS Firewall Manager enforces a policy. A policy defines a protection, such as a WAF web ACL, and its scope of accounts, OUs, resource types and tags. Firewall Manager applies it to existing resources in scope and to new ones, including resources in accounts that join later, and reports or remediates resources that do not comply.
Remediation is optional; without it, Firewall Manager reports non-compliant resources but does not change them.
Worked example

Consistent protection in every account

An organisation with 60 accounts finds that some teams forgot to attach WAF to their ALBs and others left security groups open to the internet on port 22.

Firewall Manager policyEffect
AWS WAF policy for all ALBs in production OUsA standard web ACL is attached to every existing and new ALB
Security group audit policyRules allowing 0.0.0.0/0 on port 22 are reported and removed automatically
Shield Advanced policyPublic-facing resources in critical accounts are protected

Firewall Manager requires AWS Config in each account and is run from a delegated administrator, so the security team manages the policies without using the management account.

Check yourself

What does Firewall Manager do that WAF alone does not?

Show answer

It applies WAF rules, Shield Advanced protection, security groups and network firewall policies across all accounts in an organisation, including resources created later.

Exam Tips

Remember for the exam

  • To apply WAF rules across all accounts, including new ones, use Firewall Manager.
  • To audit overly permissive security groups across all accounts, use a Firewall Manager security group policy.
  • Firewall Manager requires AWS Organizations and AWS Config.
  • To deploy Network Firewall consistently across VPCs in many accounts, use a Firewall Manager Network Firewall policy.