library
turbot/gcp
OverviewPipelines
0
Triggers
0
Variables
GitHub

Create VPC Firewall Rule

This pipeline is used to create firewall rules to allow/deny incoming/outgoing traffic.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run gcp.pipeline.create_vpc_firewall_rule \
--arg 'network_name=<string>' \
--arg 'project_id=<string>' \
--arg 'firewall_rule_name=<string>'

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = gcp.pipeline.create_vpc_firewall_rule
args = {
network_name = <string>
project_id = <string>
firewall_rule_name = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
network_namestringYesThe name of the network to which the rule applies.-
source_rangeslist of stringNoComma-separated list of source IP ranges (CIDR format) allowed by the rule.-
prioritystringNoPriority for the firewall rule.-
ruleslist of stringNoA list of protocols and ports to which the firewall rule will apply.-
credstringYesThe GCP application credentials file path.default
project_idstringYesThe GCP project ID.-
firewall_rule_namestringYesThe name of the firewall rule to create.-
allowed_portslist of stringNoComma-separated list of allowed ports and protocols (e.g., tcp:80,udp:53).-
actionstringNoThe action for the firewall rule: whether to allow or deny matching traffic.-
directionstringNoThe direction of traffic to which the firewall rule applies.-

Outputs

NameDescription
firewall_ruleInformation about the created firewall rule.