firewall

freddieptf/firewall/digitalocean

Terraform Module HCL DIGITALOCEAN
Install
module "firewall" {
source = "freddieptf/firewall/digitalocean"
version = "0.0.2"
}
plain text: /constructs/tfmod-freddieptf-firewall-digitalocean/install.txt
⭐ Source on GitHub 📦 Registry page
README

How to use this Module Terraform module which creates a firewall on DigitalOcean. `` resource "digitalocean_droplet" "droplet" { image = "ubuntu-18-04-x64" name = "exmaple-droplet" region = "ams3" size = "s-1vcpu-2gb" } module "examplehttp-80" { source = "freddieptf/firewall/digitalocean//modules/http" version = "0.0.1" name = "examplehttp-80" droplet_ids = ["${digitalocean_droplet.droplet.id}"] } module "example" { source = "freddieptf/firewall/digitalocean" version = "0.0.1" name = "example" protocol = "tcp" port = "6090" destination_addresses = ["0.0.0.0/0"] source_addresses = ["0.0.0.0/0"] droplet_ids = ["${digitalocean_droplet.droplet.id}"] } ``

Inputs (9)
NameTypeDescriptionDefault
droplet_idslist(string)The list of the IDs of the Droplets assigned to the Firewall. required
protocolstringThe type of traffic to be allowed. This may be one of 'tcp', 'udp', or 'icmp'. required
namestringThe Firewall name. required
portstringThe ports on which traffic will be allowed specified as a string containing a si required
destination_addresseslist(string)An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, a required
source_addresseslist(string)An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, a required
destination_droplet_idslist(string)An array containing the IDs of the Droplets to which the outbound traffic will b[]
rulesmap(map(any)){ "http": { "port": "80", "pro
source_droplet_idslist(string)An array containing the IDs of the Droplets from which the inbound traffic will []
Resources (1)
digitalocean_firewall
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.2
Cloud DIGITALOCEAN
★ Stars0
Forks1
Total downloads798
Inputs9
Resources1
Submodules5
Namespacefreddieptf
Updated