Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freddieptf/terraform-digitalocean-firewall
https://github.com/freddieptf/terraform-digitalocean-firewall
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/freddieptf/terraform-digitalocean-firewall
- Owner: freddieptf
- Created: 2020-05-29T17:57:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T17:09:38.000Z (over 4 years ago)
- Last Synced: 2023-09-12T05:57:06.053Z (over 1 year ago)
- Language: HCL
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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}"]
}```