website: Activate HCL syntax highlighting for Random provider docs
This commit is contained in:
parent
5fc7414076
commit
af05871e65
|
@ -43,7 +43,7 @@ the same until new random values are desired.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```
|
```hcl
|
||||||
resource "random_id" "server" {
|
resource "random_id" "server" {
|
||||||
keepers = {
|
keepers = {
|
||||||
# Generate a new id each time we switch to a new AMI id
|
# Generate a new id each time we switch to a new AMI id
|
||||||
|
|
|
@ -26,7 +26,7 @@ exist concurrently.
|
||||||
The following example shows how to generate a unique name for an AWS EC2
|
The following example shows how to generate a unique name for an AWS EC2
|
||||||
instance that changes each time a new AMI id is selected.
|
instance that changes each time a new AMI id is selected.
|
||||||
|
|
||||||
```
|
```hcl
|
||||||
resource "random_id" "server" {
|
resource "random_id" "server" {
|
||||||
keepers = {
|
keepers = {
|
||||||
# Generate a new id each time we switch to a new AMI id
|
# Generate a new id each time we switch to a new AMI id
|
||||||
|
|
|
@ -21,7 +21,7 @@ exist concurrently.
|
||||||
The following example shows how to generate a unique pet name for an AWS EC2
|
The following example shows how to generate a unique pet name for an AWS EC2
|
||||||
instance that changes each time a new AMI id is selected.
|
instance that changes each time a new AMI id is selected.
|
||||||
|
|
||||||
```
|
```hcl
|
||||||
resource "random_pet" "server" {
|
resource "random_pet" "server" {
|
||||||
keepers = {
|
keepers = {
|
||||||
# Generate a new pet name each time we switch to a new AMI id
|
# Generate a new pet name each time we switch to a new AMI id
|
||||||
|
|
|
@ -13,7 +13,7 @@ of strings given as an argument.
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```hcl
|
||||||
resource "random_shuffle" "az" {
|
resource "random_shuffle" "az" {
|
||||||
input = ["us-west-1a", "us-west-1c", "us-west-1d", "us-west-1e"]
|
input = ["us-west-1a", "us-west-1c", "us-west-1d", "us-west-1e"]
|
||||||
result_count = 2
|
result_count = 2
|
||||||
|
|
Loading…
Reference in New Issue