Cloudformation FirewallPolicy UPDATE_FAILED

Cloudformation FirewallPolicy UPDATE_FAILED

Table of Contents

While I have a fond love for Cloudformation, sometimes I find myself banging my head against a wall when trying to get past an error.

This time it’s related to AWS::NetworkFirewall::FirewallPolicy.

The Issue

The policy associated with an AWS Network firewall can be configured in either DEFAULT_ACTION_ORDER or STRICT_ORDER ordering for stateful rules.

For more info on this see the documentation here and the cloudformation reference here

However, one thing the documentation doesn’t state is that this cannot be changed once the policy is created. The cloudformation reference above states the update requires no interruption.

If you attempt to change from default to strict, the following error will rear its ugly head.

Resource handler returned message: “parameter is invalid, parameter: [STRICT_ORDER] (Service: NetworkFirewall, Status Code: 400, Request ID: xxx)” (RequestToken: xxx, HandlerErrorCode: InvalidRequest)

I found this post moaning about this issue from December 2021.

https://www.reddit.com/r/aws/comments/rivrun/cfn\_networkfirewall\_help/

How to fix it

The fix for this is easy, just create another policy and associate it with your firewall, then remove the old one from your template.

The AWS::NetworkFirewall::RuleGroup StatefulRuleOptions suffers from the same issue and cannot be adjusted once provisioned.

I hope this helps someone else and removes any unnecessary head-banging!

Cheers

Share :

Related Posts

Config Conundrum

Config Conundrum

AWS Config At our organisation we use custom config rules to help us achieve near real-time compliance and remediation.

Read More
How to use cfn-guard with AWS Config

How to use cfn-guard with AWS Config

I’m not sure when but AWS Config now supports using Guard rules to determine the compliance of resources. This is a pretty neat integration and one of the first I’ve seen from AWS on a side Open Source Project they have created.

Read More
Getting Started with AWS CloudFormation Guard (cfn-guard): Policy-as-Code Guide

Getting Started with AWS CloudFormation Guard (cfn-guard): Policy-as-Code Guide

Update Link to official AWS blog post here A fair few policy-as-code tools are popping up these days. This post looks at getting started with cfn-guard to parse AWS Config Resource JSON outputs.

Read More