Live
Pod‑Level GPU Cost Tracking in Kubernetes with CloudBoltShadow AI: Operational Risks and Practical Guardrails for EngineersAI code generation delivers a 45k‑line data pipeline in 7 hours – practical takeaways for engineersAzure AI Gateway Hits GA as a Dedicated Service for Model Access GovernanceAWS Nitro Sandboxes Enable Isolated AI Agent Execution on Shared EC2 NodesPyTorch Adds GreenLight AI Reviewer for Auto‑Approving Low‑Risk Pull RequestsCognition’s SWE‑2.1 Ultrafast delivers 10× coding model speedup on CerebrasAI‑driven troubleshooting and unified self‑service in VMware Cloud Foundation and VKSPod‑Level GPU Cost Tracking in Kubernetes with CloudBoltShadow AI: Operational Risks and Practical Guardrails for EngineersAI code generation delivers a 45k‑line data pipeline in 7 hours – practical takeaways for engineersAzure AI Gateway Hits GA as a Dedicated Service for Model Access GovernanceAWS Nitro Sandboxes Enable Isolated AI Agent Execution on Shared EC2 NodesPyTorch Adds GreenLight AI Reviewer for Auto‑Approving Low‑Risk Pull RequestsCognition’s SWE‑2.1 Ultrafast delivers 10× coding model speedup on CerebrasAI‑driven troubleshooting and unified self‑service in VMware Cloud Foundation and VKS
AWS

Simplifying Dynamic Workload Protection with AWS Network Firewall Context‑Aware Rules

AI SummaryPowered by AI

AWS Network Firewall now lets you write rules that match traffic by the AWS resources that generate it, such as VPCs, subnets, security groups, or transit‑gateway attachments. This change removes the need to track mutable IP addresses, making policies easier to maintain across scaling, short‑lived, and multi‑account workloads.

AWS Network Firewall has added context‑aware rules, allowing rule conditions to reference the actual AWS resources that send or receive traffic instead of static IP addresses. For engineers who manage rapidly scaling services, serverless functions, or multi‑account environments, this shift means policies can follow workloads automatically, reducing operational churn and improving visibility.

How Context‑Aware Rules Work

Two components enable this capability: a context store and a transit gateway-attached firewall. The context store, created in AWS Network Manager, catalogs VPCs, subnets, security groups, and transit‑gateway attachments across the accounts that share a transit gateway via AWS RAM. When a workload account attaches a VPC to the shared gateway, its resources are added to the same store, keeping the firewall’s view up to date.

On the data path, the transit gateway tags each packet with the sender’s resource identifiers – the VPC, subnet, attachment, and any attached security groups. The firewall receives only the security‑group IDs (not the group rules) and matches them against rule definitions that reference context sets, which are named collections of these identifiers.

Practical Implications for Architecture and Operations

  • Rules that follow workloads: A rule that names a security group automatically applies to any new ENI that receives that group, eliminating the need to update IP allow‑lists when functions scale out or instances are replaced.
  • Single policy across accounts: Because the context store aggregates resources from all accounts attached to the shared transit gateway, a single firewall policy can reference resources in any of those accounts.
  • Enhanced logging: Flow logs now include the resource identifiers on both ends of a connection, giving operators clear insight into which VPC, subnet, or security group is behind each traffic flow.

Security and Operational Considerations

While context‑aware rules simplify policy management, they do not replace traditional security‑group configurations; the firewall still relies on the underlying SG rules for actual traffic allowance. Practitioners should verify that SG policies remain appropriately restrictive.

Because the firewall depends on the context store’s freshness, teams should monitor the synchronization status of the store, especially after large-scale provisioning events. Any delay in store updates could temporarily cause mismatches between the intended rule set and the observed traffic.

Deploying this feature requires a transit‑gateway‑attached firewall; existing firewalls that sit in a VPC without a TGW will need redesign or migration to take advantage of context awareness.

Related CloudNinjas coverage: AWS.

What This Means For Practitioners

Adopt context‑aware rules where you currently maintain IP‑based allow‑lists for dynamic services such as Lambda, auto‑scaling groups, or containers. Start by creating a context store in Network Manager, associate it with your transit gateway, and share the gateway with workload accounts via RAM. Convert existing IP‑based rules into context sets that reference the appropriate security groups, subnets, or VPCs. Validate the new policy by reviewing flow logs for the expected resource identifiers, and monitor the context store’s health to ensure continuous alignment between your firewall and the evolving environment.

Originally published atAWS Security Blog