library
turbot/gcp
OverviewPipelines
0
Triggers
0
Variables
GitHub

Pipeline: 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 'project_id=<string>' \
--arg 'firewall_rule_name=<string>' \
--arg 'network_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 = {
project_id = <string>
firewall_rule_name = <string>
network_name = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
conn
connection.gcp
YesName of GCP connection to use. If not provided, the default GCP connection will be used.connection.gcp.default
project_id
string
YesThe GCP project ID.-
firewall_rule_name
string
YesThe name of the firewall rule to create.-
network_name
string
YesThe name of the network to which the rule applies.-
allowed_ports
list(string)
NoComma-separated list of allowed ports and protocols (e.g., tcp:80,udp:53).-
source_ranges
list(string)
NoComma-separated list of source IP ranges (CIDR format) allowed by the rule.-
priority
string
NoPriority for the firewall rule.-
rules
list(string)
NoA list of protocols and ports to which the firewall rule will apply.-
action
string
NoThe action for the firewall rule: whether to allow or deny matching traffic.-
direction
string
NoThe direction of traffic to which the firewall rule applies.-

Outputs

NameDescription
firewall_ruleInformation about the created firewall rule.