github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/website/source/docs/providers/cloudstack/r/egress_firewall.html.markdown (about)

     1  ---
     2  layout: "cloudstack"
     3  page_title: "CloudStack: cloudstack_egress_firewall"
     4  sidebar_current: "docs-cloudstack-resource-egress-firewall"
     5  description: |-
     6    Creates egress firewall rules for a given network.
     7  ---
     8  
     9  # cloudstack\_egress\_firewall
    10  
    11  Creates egress firewall rules for a given network.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "cloudstack_egress_firewall" "default" {
    17    network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
    18  
    19    rule {
    20      cidr_list = ["10.0.0.0/8"]
    21      protocol = "tcp"
    22      ports = ["80", "1000-2000"]
    23    }
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `network_id` - (Required) The network ID for which to create the egress
    32      firewall rules. Changing this forces a new resource to be created.
    33  
    34  * `network` - (Required, Deprecated) The network for which to create the egress
    35      firewall rules. Changing this forces a new resource to be created.
    36  
    37  * `managed` - (Optional) USE WITH CAUTION! If enabled all the egress firewall
    38      rules for this network will be managed by this resource. This means it will
    39      delete all firewall rules that are not in your config! (defaults false)
    40  
    41  * `rule` - (Optional) Can be specified multiple times. Each rule block supports
    42      fields documented below. If `managed = false` at least one rule is required!
    43  
    44  * `parallelism` (Optional) Specifies how much rules will be created or deleted
    45      concurrently. (defaults 2)
    46      
    47  The `rule` block supports:
    48  
    49  * `cidr_list` - (Required) A CIDR list to allow access to the given ports.
    50  
    51  * `source_cidr` - (Optional, Deprecated) The source CIDR to allow access to the
    52      given ports. This attribute is deprecated, please use `cidr_list` instead.
    53  
    54  * `protocol` - (Required) The name of the protocol to allow. Valid options are:
    55      `tcp`, `udp` and `icmp`.
    56  
    57  * `icmp_type` - (Optional) The ICMP type to allow. This can only be specified if
    58      the protocol is ICMP.
    59  
    60  * `icmp_code` - (Optional) The ICMP code to allow. This can only be specified if
    61      the protocol is ICMP.
    62  
    63  * `ports` - (Optional) List of ports and/or port ranges to allow. This can only
    64      be specified if the protocol is TCP or UDP.
    65  
    66  ## Attributes Reference
    67  
    68  The following attributes are exported:
    69  
    70  * `id` - The network ID for which the egress firewall rules are created.