google-compute-security-policy
This Transform module is used for creating Security Policy in Google Cloud Armor.
Name
Description
Type
Default
Required
name
Name of the WAF policy.
any
n/a
yes
project_id
Project ID of the project in which WAF policy needs to be created.
any
n/a
yes
env
Name of the Environment
string
""
no
prefix
Prefix of name of resource.
string
""
no
rules
List of Map of rules to be created in the Policy.
list(object( { action : string #"allow" #"deny(status)" #Valid HTTP response code 403,404,502 priority : string #"12345"#Unique +ve int, lowest int(highest priority) match : { type = object({ versioned_expr : { type = string default = null } config : { type = object({ src_ip_ranges : { type : list } }) default : {} } expr : { type : object({ expression : { type : string, default : "" } }) default : {} } }) } description : { type = string, default = null } } ))
[]
no
Name
Description
id
This is id of the Compute Security Policy.
name
This is name of the Compute Security Policy.
self_link
This is self_link of the Compute Security Policy.
You can run the example in example folder after specifying project_id in variables.tf.