github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/packet/index.html.markdown (about)

     1  ---
     2  layout: "packet"
     3  page_title: "Provider: Packet"
     4  sidebar_current: "docs-packet-index"
     5  description: |-
     6    The Packet provider is used to interact with the resources supported by Packet. The provider needs to be configured with the proper credentials before it can be used.
     7  ---
     8  
     9  # Packet Provider
    10  
    11  The Packet provider is used to interact with the resources supported by Packet.
    12  The provider needs to be configured with the proper credentials before it can be used.
    13  
    14  Use the navigation to the left to read about the available resources.
    15  
    16  ## Example Usage
    17  
    18  ```
    19  # Configure the Packet Provider
    20  provider "packet" {
    21  		auth_token = "${var.auth_token}"
    22  }
    23  
    24  # Create a project
    25  resource "packet_project" "tf_project_1" {
    26  		name = "My First Terraform Project"
    27  		payment_method = "PAYMENT_METHOD_ID"
    28  }
    29  
    30  # Create a device and add it to tf_project_1
    31  resource "packet_device" "web1" {
    32  		hostname = "tf.coreos2"
    33  		plan = "baremetal_1"
    34  		facility = "ewr1"
    35  		operating_system = "coreos_stable"
    36  		billing_cycle = "hourly"
    37  		project_id = "${packet_project.tf_project_1.id}"
    38  }
    39  ```
    40  
    41  ## Argument Reference
    42  
    43  The following arguments are supported:
    44  
    45  * `auth_token` - (Required) This is your Packet API Auth token. This can also be specified
    46    with the `PACKET_AUTH_TOKEN` shell environment variable.
    47