PARALLAX

waf_rule

Create and delete WAF Rules

Collection: community.aws

Full Name: community.aws.waf_rule

Synopsis

Create and delete WAF Rules

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
conditionslist
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
metric_namestr
namestryes
profilestr
purge_conditionsboolfalse
regionstr
secret_keystr
session_tokenstr
statestrpresent
validate_certsbooltrue
waf_regionalboolfalse

Example

yaml
- name: create WAF rule
  community.aws.waf_rule:
    name: my_waf_rule
    conditions:
        - name: my_regex_condition
          type: regex
          negated: false
        - name: my_geo_condition
          type: geo
          negated: false
        - name: my_byte_condition
          type: byte
          negated: true

- name: remove WAF rule
  community.aws.waf_rule:
    name: "my_waf_rule"
    state: absent
Search
    ↑ ↓ move↵ openesc close