This message was deleted.
# general
s
This message was deleted.
b
could you share your code?
s
Sure. I boiled it down to the minimal representation for posting here and tested it, but am getting the same error:
Copy code
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'
  }
)

export const networkName = network.name
export const firewallName = firewall.name
b
hey @sparse-apartment-71989 it appears to be this issue in the upstream provider: https://github.com/civo/terraform-provider-civo/issues/41 try this:
Copy code
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
s
Thanks so much! I should have checked the Issues myself. I momentarily forgot about Pulumi being open source. :-)
@billowy-army-68599 That worked like a charm! Thanks for your help.
b
👍