AWS Security ChangesHomeSearch

AWS AWSCloudFormation: NetworkSecurityManager Deployment: scope constraints and IGW firewall example

Service: AWSCloudFormation · 2026-11-21 · Documentation medium

File: AWSCloudFormation/latest/TemplateReference/aws-resource-networksecuritymanager-deployment.md · Type: network

Summary

Adds a constraint that a deployment's associated scope must be a standard scope (no SpecializedScopeType) and must select only resource types every associated policy can protect (AWS::EC2::VPC for IGW_FIREWALL), corrects the LastUpdated field description to ISO 8601, and adds a YAML example applying an internet firewall policy to tagged VPCs.

Security assessment

The added constraint prevents associating a deployment with a scope that a policy cannot protect, which is a misconfiguration guard for network firewall enforcement; the new example shows applying an internet firewall policy to tagged VPCs. No specific vulnerability, CVE, or incident is referenced, so this is security-adjacent configuration documentation rather than a fix.

Evidence

+The scope must be a standard scope; you can't associate a scope that has a `SpecializedScopeType`. The scope must also select only resource types that every associated policy can protect. For `IGW_FIREWALL` policies, select `AWS::EC2::VPC`.

Diff

diff --git a/AWSCloudFormation/latest/TemplateReference/aws-resource-networksecuritymanager-deployment.md b/AWSCloudFormation/latest/TemplateReference/aws-resource-networksecuritymanager-deployment.md
index d6c2b5a..92de6c4 100644
--- a//AWSCloudFormation/latest/TemplateReference/aws-resource-networksecuritymanager-deployment.md
+++ b//AWSCloudFormation/latest/TemplateReference/aws-resource-networksecuritymanager-deployment.md
@@ -83,0 +84,2 @@ This property is required when you create a deployment. Network Security Manager
+The scope must be a standard scope; you can't associate a scope that has a `SpecializedScopeType`. The scope must also select only resource types that every associated policy can protect. For `IGW_FIREWALL` policies, select `AWS::EC2::VPC`.
+
@@ -188 +190 @@ _Allowed Values_ : `DRAFT` | `ACTIVE`
-The time when the resource was last updated. For a snapshot, this is the time when the snapshot was created.
+The date and time when the deployment was last updated, in ISO 8601 format. For example: `2026-11-19T21:42:56Z`.
@@ -196,0 +199,9 @@ The version of the deployment. Network Security Manager assigns version `1` when
+## 
+
+  * Put a policy into effect against a scope
+
+  * Apply an internet firewall policy to tagged VPCs
+
+
+
+
@@ -259,0 +271,32 @@ The version of the deployment. Network Security Manager assigns version `1` when
+### Apply an internet firewall policy to tagged VPCs
+
+#### YAML
+    
+    
+                    AWSTemplateFormatVersion: "2010-09-09"
+                    Description: Applies an existing Network Firewall automated internet firewall policy to VPCs tagged for inspection.
+                    Parameters:
+                      InternetFirewallPolicyArn:
+                        Type: String
+                        Description: The ARN of an AWS::NetworkSecurityManager::Policy whose FirewallType is IGW_FIREWALL.
+                    Resources:
+                      InspectedVpcsScope:
+                        Type: AWS::NetworkSecurityManager::Scope
+                        Properties:
+                          ScopeName: inspected-vpcs
+                          ScopeConfiguration: '{"AccountFilter":{"IncludeAll":true},"ResourceScopes":{"AWS::EC2::VPC":{"Include":{"Expression":{"Criteria":{"Tags":{"internet-inspection":"enabled"}}}}}}}'
+    
+                      InternetFirewallDeployment:
+                        Type: AWS::NetworkSecurityManager::Deployment
+                        Properties:
+                          DeploymentName: igw-baseline-deployment
+                          DeploymentDescription: Applies the internet firewall policy to VPCs tagged for inspection.
+                          AssociatedPolicyList:
+                            - PolicyArn: !Ref InternetFirewallPolicyArn
+                          AssociatedScopeList:
+                            - ScopeArn: !GetAtt InspectedVpcsScope.ScopeArn
+                    Outputs:
+                      DeploymentArn:
+                        Value: !GetAtt InternetFirewallDeployment.DeploymentArn
+            
+