github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/website/source/docs/providers/triton/r/triton_firewall_rule.html.markdown (about) 1 --- 2 layout: "triton" 3 page_title: "Triton: triton_firewall_rule" 4 sidebar_current: "docs-triton-firewall" 5 description: |- 6 The `triton_firewall_rule` resource represents a rule for the Triton cloud firewall. 7 --- 8 9 # triton\_firewall\_rule 10 11 The `triton_firewall_rule` resource represents a rule for the Triton cloud firewall. 12 13 ## Example Usages 14 15 Allow traffic on ports tcp/80 and tcp/443 to machines with the 'www' tag from any source 16 17 18 ``` 19 resource "triton_firewall_rule" "www" { 20 rule = "FROM any TO tag www ALLOW tcp (PORT 80 AND PORT 443)" 21 enabled = true 22 } 23 24 ``` 25 Block traffic on port tcp/143 to all machines 26 27 28 ``` 29 resource "triton_firewall_rule" "imap" { 30 rule = "FROM any TO all vms BLOCK tcp port 143" 31 enabled = true 32 } 33 34 ``` 35 36 ## Argument Reference 37 38 The following arguments are supported: 39 40 * `rule` - (string, Required) 41 The firewall rule described using the Cloud API rule syntax defined at https://docs.joyent.com/public-cloud/network/firewall/cloud-firewall-rules-reference. 42 43 * `enabled` - (boolean) Default: `false` 44 Whether the rule should be effective. 45 46 ## Attribute Reference 47 48 The following attributes are exported: 49 50 * `id` - (string) - The identifier representing the firewall rule in Triton.