Skip to content

This Transform module is used for creating Security Policy in Google Cloud Armor.

License

Notifications You must be signed in to change notification settings

surajb08/google-compute-security-policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-compute-security-policy

This Transform module is used for creating Security Policy in Google Cloud Armor.

Providers

Name Version
google n/a

Resources

Name
google_compute_security_policy

Inputs

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

Outputs

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.

Example

You can run the example in example folder after specifying project_id in variables.tf.

About

This Transform module is used for creating Security Policy in Google Cloud Armor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages