PARALLAX

networkfirewall_policy

manage AWS Network Firewall policies

Collection: community.aws

Full Name: community.aws.networkfirewall_policy

Synopsis

manage AWS Network Firewall policies

Parameters

NameTypeRequiredDefaultDescription
access_keystr
arnstr
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
descriptionstr
endpoint_urlstr
namestr
profilestr
purge_stateless_custom_actionsbooltrue
purge_tagsbooltrue
regionstr
secret_keystr
session_tokenstr
statestrpresent
stateful_default_actionslist
stateful_rule_groupslist
stateful_rule_orderstr
stateless_custom_actionslist
stateless_default_actionslist
stateless_fragment_default_actionslist
stateless_rule_groupslist
tagsdict
validate_certsbooltrue
waitbooltrue
wait_timeoutint

Example

yaml
# Create an AWS Network Firewall Policy with default rule order
- name: manage AWS Network Firewall policies
  community.aws.networkfirewall_policy:
    stateful_rule_order: 'default'
    state: present
    name: 'ExamplePolicy'

# Create an AWS Network Firewall Policy with strict rule order
- name: manage AWS Network Firewall policies
  community.aws.networkfirewall_policy:
    stateful_rule_order: 'strict'
    state: present
    name: 'ExampleStrictPolicy'

# Create an AWS Network Firewall Policy that defaults to dropping all packets
- name: manage AWS Network Firewall policies
  community.aws.networkfirewall_policy:
    stateful_rule_order: 'strict'
    state: present
    name: 'ExampleDropPolicy'
    stateful_default_actions:
        - 'aws:drop_strict'
    stateful_rule_groups:
        - 'ExampleStrictRuleGroup'
        - 'arn:aws:network-firewall:us-east-1:aws-managed:stateful-rulegroup/BotNetCommandAndControlDomainsStrictOrder'

# Delete an AWS Network Firewall Policy
- name: manage AWS Network Firewall policies
  community.aws.networkfirewall_policy:
    state: absent
    name: 'ExampleDropPolicy'
Search
    ↑ ↓ move↵ openesc close