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