Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 932 Bytes

File metadata and controls

50 lines (39 loc) · 932 Bytes
id title
Firewall
Firewall

Manages a Firewall

Allow ingress traffic from anywhere to SSH and HTTP/HTTPS:

provider.compute.makeFirewall({
  name: `firewall-22-80-433-${stage}`,
  properties: () => ({
    allowed: [
      {
        IPProtocol: "tcp",
        ports: ["22", "80", "433"],
      },
    ],
  }),
});

Allow ping from anywhere:

provider.compute.makeFirewall({
  name: `firewall-icmp-${stage}`,
  properties: () => ({
    allowed: [
      {
        IPProtocol: "icmp",
      },
    ],
  }),
});

Examples

Properties

Dependencies