sparse-intern-71089
07/09/2021, 10:41 PMbillowy-army-68599
sparse-apartment-71989
07/12/2021, 2:59 PMimport * as civo from '@pulumi/civo'
const network = new civo.Network('jf-network', {label: 'jf-network'})
const firewall = new civo.Firewall('jf-firewall', {name: 'jf-firewall', networkId: network.id})
const CIDRs = ['0.0.0.0/0']
const httpRule = new civo.FirewallRule('http', {
firewallId: firewall.id, label: 'http rule',
cidrs: CIDRs, startPort: '80', endPort: '80', protocol: 'tcp'
}
)
const httpsRule = new civo.FirewallRule('https', {
firewallId: firewall.id, label: 'https rule',
cidrs: CIDRs, startPort: '443', endPort: '443', protocol: 'tcp'
}
)
export const networkName = network.name
export const firewallName = firewall.name
billowy-army-68599
import * as civo from '@pulumi/civo'
const network = new civo.Network('jf-network', {label: 'jf-network'})
const firewall = new civo.Firewall('jf-firewall', {name: 'jf-firewall', networkId: network.id})
const CIDRs = ['0.0.0.0/0']
const httpRule = new civo.FirewallRule('http', {
firewallId: firewall.id, label: 'http rule',
cidrs: CIDRs, startPort: '80', endPort: '80', protocol: 'tcp'
}
)
const httpsRule = new civo.FirewallRule('https', {
firewallId: firewall.id, label: 'https rule',
cidrs: CIDRs, startPort: '443', endPort: '443', protocol: 'tcp'
}, { dependsOn: httpRule }
)
export const networkName = network.name
export const firewallName = firewall.name
sparse-apartment-71989
07/12/2021, 5:45 PMsparse-apartment-71989
07/12/2021, 6:21 PMbillowy-army-68599