firewall
freddieptf/firewall/digitalocean
Terraform Module
HCL
DIGITALOCEAN
Install
module "firewall" {
source = "freddieptf/firewall/digitalocean"
version = "0.0.2"
}
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)
| Name | Type | Description | Default |
|---|---|---|---|
| droplet_ids | list(string) | The list of the IDs of the Droplets assigned to the Firewall. | required |
| protocol | string | The type of traffic to be allowed. This may be one of 'tcp', 'udp', or 'icmp'. | required |
| name | string | The Firewall name. | required |
| port | string | The ports on which traffic will be allowed specified as a string containing a si | required |
| destination_addresses | list(string) | An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, a | required |
| source_addresses | list(string) | An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, a | required |
| destination_droplet_ids | list(string) | An array containing the IDs of the Droplets to which the outbound traffic will b | [] |
| rules | map(map(any)) | {
"http": {
"port": "80",
"pro | |
| source_droplet_ids | list(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