github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/docs/providers/heroku/r/cert.html.markdown (about) 1 --- 2 layout: "heroku" 3 page_title: "Heroku: heroku_cert" 4 sidebar_current: "docs-heroku-resource-cert" 5 description: |- 6 Provides a Heroku SSL certificate resource. It allows to set a given certificate for a Heroku app. 7 --- 8 9 # heroku\_cert 10 11 Provides a Heroku SSL certificate resource. It allows to set a given certificate for a Heroku app. 12 13 ## Example Usage 14 15 ``` 16 # Create a new Heroku app 17 resource "heroku_app" "default" { 18 name = "test-app" 19 } 20 21 # Add-on SSL to application 22 resource "heroku_addon" "ssl" { 23 app = "${heroku_app.service.name}" 24 plan = "ssl" 25 } 26 27 # Establish certificate for a given application 28 resource "heroku_cert" "ssl_certificate" { 29 app = "${heroku_app.service.name}" 30 certificate_chain = "${file("server.crt")}" 31 private_key = "${file("server.key")}" 32 depends_on = "heroku_addon.ssl" 33 } 34 ``` 35 36 ## Argument Reference 37 38 The following arguments are supported: 39 40 * `app` - (Required) The Heroku app to add to. 41 * `certificate_chain` - (Required) The certificate chain to add 42 * `private_key` - (Required) The private key for a given certificate chain 43 44 ## Attributes Reference 45 46 The following attributes are exported: 47 48 * `id` - The ID of the add-on 49 * `cname` - The CNAME for the SSL endpoint 50 * `name` - The name of the SSL certificate 51