Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Firewall

These examples assume that linked resources (Network) already exist in the same environment.

Creating a firewall rule

resources:
  - type: compute.v1.firewall
    name: allow-ssh
    props:
      network: global/networks/vpc1
      direction: INGRESS
      allowed:
        - ip_protocol: tcp
          ports:
            - "22"
      source_ranges:
        - "{{CURRENT_IP}}/32"

Last updated