github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/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  Block traffic on port tcp/143 to all machines
    25  
    26  
    27  ```
    28  resource "triton_firewall_rule" "imap" {
    29    rule    = "FROM any TO all vms BLOCK tcp port 143"
    30    enabled = true
    31  }
    32  ```
    33  
    34  ## Argument Reference
    35  
    36  The following arguments are supported:
    37  
    38  * `rule` - (string, Required)
    39      The firewall rule described using the Cloud API rule syntax defined at https://docs.joyent.com/public-cloud/network/firewall/cloud-firewall-rules-reference.
    40  
    41  * `enabled` - (boolean)  Default: `false`
    42      Whether the rule should be effective.
    43  
    44  ## Attribute Reference
    45  
    46  The following attributes are exported:
    47  
    48  * `id` - (string) - The identifier representing the firewall rule in Triton.