website: syntax highlighting and hclfmt layout for TLS provider

This commit is contained in:
Martin Atkins 2017-04-07 16:54:00 -07:00
parent af05871e65
commit 853b411840
5 changed files with 57 additions and 58 deletions

View File

@ -26,7 +26,7 @@ Use the navigation to the left to read about the available resources.
## Example Usage ## Example Usage
``` ```hcl
## This example create a self-signed certificate for a development ## This example create a self-signed certificate for a development
## environment. ## environment.
## THIS IS NOT RECOMMENDED FOR PRODUCTION SERVICES. ## THIS IS NOT RECOMMENDED FOR PRODUCTION SERVICES.

View File

@ -26,10 +26,10 @@ resource form.
## Example Usage ## Example Usage
``` ```hcl
resource "tls_cert_request" "example" { resource "tls_cert_request" "example" {
key_algorithm = "ECDSA" key_algorithm = "ECDSA"
private_key_pem = "${file(\"private_key.pem\")}" private_key_pem = "${file("private_key.pem")}"
subject { subject {
common_name = "example.com" common_name = "example.com"

View File

@ -17,13 +17,12 @@ or when deployed internally to an organization.
## Example Usage ## Example Usage
``` ```hcl
resource "tls_locally_signed_cert" "example" { resource "tls_locally_signed_cert" "example" {
cert_request_pem = "${file(\"cert_request.pem\")}" cert_request_pem = "${file("cert_request.pem")}"
ca_key_algorithm = "ECDSA" ca_key_algorithm = "ECDSA"
ca_private_key_pem = "${file(\"ca_private_key.pem\")}" ca_private_key_pem = "${file("ca_private_key.pem")}"
ca_cert_pem = "${file(\"ca_cert.pem\")}" ca_cert_pem = "${file("ca_cert.pem")}"
validity_period_hours = 12 validity_period_hours = 12

View File

@ -23,7 +23,7 @@ state and does not create any external managed resources.
## Example Usage ## Example Usage
``` ```hcl
resource "tls_private_key" "example" { resource "tls_private_key" "example" {
algorithm = "ECDSA" algorithm = "ECDSA"
ecdsa_curve = "P384" ecdsa_curve = "P384"

View File

@ -27,7 +27,7 @@ Load Balancer*, *Elastic Beanstalk*, *CloudFront* or *OpsWorks*.
## Example Usage ## Example Usage
``` ```hcl
resource "tls_self_signed_cert" "example" { resource "tls_self_signed_cert" "example" {
key_algorithm = "ECDSA" key_algorithm = "ECDSA"
private_key_pem = "${file(\"private_key.pem\")}" private_key_pem = "${file(\"private_key.pem\")}"