github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/website/source/docs/providers/heroku/r/domain.html.markdown (about)

     1  ---
     2  layout: "heroku"
     3  page_title: "Heroku: heroku_domain"
     4  sidebar_current: "docs-heroku-resource-domain"
     5  ---
     6  
     7  # heroku\_domain
     8  
     9  Provides a Heroku App resource. This can be used to
    10  create and manage applications on Heroku.
    11  
    12  ## Example Usage
    13  
    14  ```
    15  # Create a new heroku app
    16  resource "heroku_app" "default" {
    17      name = "test-app"
    18  }
    19  
    20  # Associate a custom domain
    21  resource "heroku_domain" "default" {
    22      app = "${heroku_app.default.name}"
    23      hostname = "terraform.example.com"
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `hostname` - (Required) The hostname to serve requests from.
    32  * `app` - (Required) The Heroku app to link to.
    33  
    34  ## Attributes Reference
    35  
    36  The following attributes are exported:
    37  
    38  * `id` - The ID of the of the domain record
    39  * `hostname` - The hostname traffic will be served as
    40  * `cname` - The cname traffic should route to.
    41