diff --git a/website/source/docs/commands/index.html.markdown b/website/source/docs/commands/index.html.markdown index 7d95166db..faff71bff 100644 --- a/website/source/docs/commands/index.html.markdown +++ b/website/source/docs/commands/index.html.markdown @@ -19,7 +19,7 @@ most likely expect. To view a list of the available commands at any time, just run terraform with no arguments: -``` +```text $ terraform Usage: terraform [--version] [--help] [args] @@ -58,7 +58,7 @@ All other commands: To get help for any specific command, pass the -h flag to the relevant subcommand. For example, to see help about the graph subcommand: -``` +```text $ terraform graph -h Usage: terraform graph [options] PATH diff --git a/website/source/docs/internals/resource-addressing.html.markdown b/website/source/docs/internals/resource-addressing.html.markdown index d208475c0..a6925382a 100644 --- a/website/source/docs/internals/resource-addressing.html.markdown +++ b/website/source/docs/internals/resource-addressing.html.markdown @@ -48,7 +48,7 @@ resource_type.resource_name[N] Given a Terraform config that includes: -``` +```hcl resource "aws_instance" "web" { # ... count = 4 @@ -57,7 +57,6 @@ resource "aws_instance" "web" { An address like this: - ``` aws_instance.web[3] ``` @@ -68,5 +67,4 @@ Refers to only the last instance in the config, and an address like this: aws_instance.web ``` - Refers to all four "web" instances. diff --git a/website/source/docs/providers/aws/d/billing_service_account.markdown b/website/source/docs/providers/aws/d/billing_service_account.markdown index 2771f6c92..aa6da6550 100644 --- a/website/source/docs/providers/aws/d/billing_service_account.markdown +++ b/website/source/docs/providers/aws/d/billing_service_account.markdown @@ -12,7 +12,7 @@ Use this data source to get the Account ID of the [AWS Billing and Cost Manageme ## Example Usage -``` +```hcl data "aws_billing_service_account" "main" {} resource "aws_s3_bucket" "billing_logs" { diff --git a/website/source/docs/providers/aws/d/eip.html.markdown b/website/source/docs/providers/aws/d/eip.html.markdown index e84669258..a9d5494de 100644 --- a/website/source/docs/providers/aws/d/eip.html.markdown +++ b/website/source/docs/providers/aws/d/eip.html.markdown @@ -18,7 +18,7 @@ public IP as an input variable and needs to determine the other. The following example shows how one might accept a public IP as a variable and use this data source to obtain the allocation ID. -``` +```hcl variable "instance_id" {} variable "public_ip" {} diff --git a/website/source/docs/providers/aws/index.html.markdown b/website/source/docs/providers/aws/index.html.markdown index 958888c92..429039d5a 100644 --- a/website/source/docs/providers/aws/index.html.markdown +++ b/website/source/docs/providers/aws/index.html.markdown @@ -48,7 +48,7 @@ AWS provider block: Usage: -``` +```hcl provider "aws" { region = "us-west-2" access_key = "anaccesskey" diff --git a/website/source/docs/providers/aws/r/alb.html.markdown b/website/source/docs/providers/aws/r/alb.html.markdown index 62a446c8f..7ac9c943c 100644 --- a/website/source/docs/providers/aws/r/alb.html.markdown +++ b/website/source/docs/providers/aws/r/alb.html.markdown @@ -16,7 +16,7 @@ thing. ## Example Usage -``` +```hcl # Create a new load balancer resource "aws_alb" "test" { name = "test-alb-tf" diff --git a/website/source/docs/providers/aws/r/alb_listener.html.markdown b/website/source/docs/providers/aws/r/alb_listener.html.markdown index 479393c77..53e75d795 100644 --- a/website/source/docs/providers/aws/r/alb_listener.html.markdown +++ b/website/source/docs/providers/aws/r/alb_listener.html.markdown @@ -12,7 +12,7 @@ Provides an Application Load Balancer Listener resource. ## Example Usage -``` +```hcl # Create a new load balancer resource "aws_alb" "front_end" { # ... diff --git a/website/source/docs/providers/aws/r/alb_listener_rule.html.markdown b/website/source/docs/providers/aws/r/alb_listener_rule.html.markdown index a868bed44..50de244d0 100644 --- a/website/source/docs/providers/aws/r/alb_listener_rule.html.markdown +++ b/website/source/docs/providers/aws/r/alb_listener_rule.html.markdown @@ -12,7 +12,7 @@ Provides an Application Load Balancer Listener Rule resource. ## Example Usage -``` +```hcl # Create a new load balancer resource "aws_alb" "front_end" { # ... diff --git a/website/source/docs/providers/aws/r/alb_target_group.html.markdown b/website/source/docs/providers/aws/r/alb_target_group.html.markdown index afaa460ba..c554a06d5 100644 --- a/website/source/docs/providers/aws/r/alb_target_group.html.markdown +++ b/website/source/docs/providers/aws/r/alb_target_group.html.markdown @@ -14,7 +14,7 @@ resources. ## Example Usage -``` +```hcl resource "aws_alb_target_group" "test" { name = "tf-example-alb-tg" port = 80 diff --git a/website/source/docs/providers/aws/r/alb_target_group_attachment.html.markdown b/website/source/docs/providers/aws/r/alb_target_group_attachment.html.markdown index 547f4c991..a0cac7241 100644 --- a/website/source/docs/providers/aws/r/alb_target_group_attachment.html.markdown +++ b/website/source/docs/providers/aws/r/alb_target_group_attachment.html.markdown @@ -14,7 +14,7 @@ target group ## Example Usage -``` +```hcl resource "aws_alb_target_group_attachment" "test" { target_group_arn = "${aws_alb_target_group.test.arn}" target_id = "${aws_instance.test.id}" diff --git a/website/source/docs/providers/aws/r/ami.html.markdown b/website/source/docs/providers/aws/r/ami.html.markdown index b275289d2..7c1a64298 100644 --- a/website/source/docs/providers/aws/r/ami.html.markdown +++ b/website/source/docs/providers/aws/r/ami.html.markdown @@ -19,7 +19,7 @@ it's better to use `aws_ami_launch_permission` instead. ## Example Usage -``` +```hcl # Create an AMI that will start a machine whose root device is backed by # an EBS volume populated from a snapshot. It is assumed that such a snapshot # already exists with the id "snap-xxxxxxxx". diff --git a/website/source/docs/providers/aws/r/ami_copy.html.markdown b/website/source/docs/providers/aws/r/ami_copy.html.markdown index e5a31015d..67db233f0 100644 --- a/website/source/docs/providers/aws/r/ami_copy.html.markdown +++ b/website/source/docs/providers/aws/r/ami_copy.html.markdown @@ -22,7 +22,7 @@ block until the new AMI is available for use on new instances. ## Example Usage -``` +```hcl resource "aws_ami_copy" "example" { name = "terraform-example" description = "A copy of ami-xxxxxxxx" diff --git a/website/source/docs/providers/aws/r/ami_from_instance.html.markdown b/website/source/docs/providers/aws/r/ami_from_instance.html.markdown index 6dd088dcb..806cc3b3e 100644 --- a/website/source/docs/providers/aws/r/ami_from_instance.html.markdown +++ b/website/source/docs/providers/aws/r/ami_from_instance.html.markdown @@ -28,7 +28,7 @@ to produce a fresh snapshot. ## Example Usage -``` +```hcl resource "aws_ami_from_instance" "example" { name = "terraform-example" source_instance_id = "i-xxxxxxxx" diff --git a/website/source/docs/providers/aws/r/ami_launch_permission.html.markdown b/website/source/docs/providers/aws/r/ami_launch_permission.html.markdown index 2758af0fc..838d4fb17 100644 --- a/website/source/docs/providers/aws/r/ami_launch_permission.html.markdown +++ b/website/source/docs/providers/aws/r/ami_launch_permission.html.markdown @@ -12,7 +12,7 @@ Adds launch permission to Amazon Machine Image (AMI) from another AWS account. ## Example Usage -``` +```hcl resource "aws_ami_launch_permission" "example" { image_id = "ami-12345678" account_id = "123456789012" diff --git a/website/source/docs/providers/aws/r/api_gateway_account.html.markdown b/website/source/docs/providers/aws/r/api_gateway_account.html.markdown index 58951c5fd..3a6bf993b 100644 --- a/website/source/docs/providers/aws/r/api_gateway_account.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_account.html.markdown @@ -14,7 +14,7 @@ Provides a settings of an API Gateway Account. Settings is applied region-wide p ## Example Usage -``` +```hcl resource "aws_api_gateway_account" "demo" { cloudwatch_role_arn = "${aws_iam_role.cloudwatch.arn}" } diff --git a/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown b/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown index ad7e8413f..75ca5509f 100644 --- a/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_api_key.html.markdown @@ -14,7 +14,7 @@ Provides an API Gateway API Key. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" } diff --git a/website/source/docs/providers/aws/r/api_gateway_authorizer.html.markdown b/website/source/docs/providers/aws/r/api_gateway_authorizer.html.markdown index 39fb5a881..366bb6202 100644 --- a/website/source/docs/providers/aws/r/api_gateway_authorizer.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_authorizer.html.markdown @@ -12,7 +12,7 @@ Provides an API Gateway Authorizer. ## Example Usage -``` +```hcl resource "aws_api_gateway_authorizer" "demo" { name = "demo" rest_api_id = "${aws_api_gateway_rest_api.demo.id}" diff --git a/website/source/docs/providers/aws/r/api_gateway_base_path_mapping.html.markdown b/website/source/docs/providers/aws/r/api_gateway_base_path_mapping.html.markdown index 6b6dc93bf..ef9aca929 100644 --- a/website/source/docs/providers/aws/r/api_gateway_base_path_mapping.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_base_path_mapping.html.markdown @@ -14,7 +14,7 @@ custom domain name. ## Example Usage -``` +```hcl resource "aws_api_gateway_deployment" "example" { # See aws_api_gateway_rest_api_docs for how to create this rest_api_id = "${aws_api_gateway_rest_api.MyDemoAPI.id}" diff --git a/website/source/docs/providers/aws/r/api_gateway_client_certificate.html.markdown b/website/source/docs/providers/aws/r/api_gateway_client_certificate.html.markdown index 2ca05a948..7e99ef63b 100644 --- a/website/source/docs/providers/aws/r/api_gateway_client_certificate.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_client_certificate.html.markdown @@ -12,7 +12,7 @@ Provides an API Gateway Client Certificate. ## Example Usage -``` +```hcl resource "aws_api_gateway_client_certificate" "demo" { description = "My client certificate" } diff --git a/website/source/docs/providers/aws/r/api_gateway_deployment.html.markdown b/website/source/docs/providers/aws/r/api_gateway_deployment.html.markdown index 4ad0a5950..b3ce05046 100644 --- a/website/source/docs/providers/aws/r/api_gateway_deployment.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_deployment.html.markdown @@ -15,7 +15,7 @@ you might need to add an explicit `depends_on = ["aws_api_gateway_integration.na ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" diff --git a/website/source/docs/providers/aws/r/api_gateway_domain_name.html.markdown b/website/source/docs/providers/aws/r/api_gateway_domain_name.html.markdown index a83862b4c..10da7b09a 100644 --- a/website/source/docs/providers/aws/r/api_gateway_domain_name.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_domain_name.html.markdown @@ -27,7 +27,7 @@ traditional CNAME) to the Cloudfront domain name exported in the ## Example Usage -``` +```hcl resource "aws_api_gateway_domain_name" "example" { domain_name = "api.example.com" diff --git a/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown b/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown index cbb2102bb..836c55f46 100644 --- a/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown @@ -12,7 +12,7 @@ Provides an HTTP Method Integration for an API Gateway Integration. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" @@ -54,7 +54,7 @@ EOF ## Lambda integration -``` +```hcl # Variables variable "myregion" {} variable "accountId" {} diff --git a/website/source/docs/providers/aws/r/api_gateway_integration_response.html.markdown b/website/source/docs/providers/aws/r/api_gateway_integration_response.html.markdown index 203bd99c0..c04bbc023 100644 --- a/website/source/docs/providers/aws/r/api_gateway_integration_response.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_integration_response.html.markdown @@ -15,7 +15,7 @@ you might need to add an explicit `depends_on` for clean runs. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" diff --git a/website/source/docs/providers/aws/r/api_gateway_method.html.markdown b/website/source/docs/providers/aws/r/api_gateway_method.html.markdown index 3445f5ca0..fd87fb850 100644 --- a/website/source/docs/providers/aws/r/api_gateway_method.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_method.html.markdown @@ -12,7 +12,7 @@ Provides a HTTP Method for an API Gateway Resource. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" diff --git a/website/source/docs/providers/aws/r/api_gateway_method_response.html.markdown b/website/source/docs/providers/aws/r/api_gateway_method_response.html.markdown index 7b112615c..7e6041ab8 100644 --- a/website/source/docs/providers/aws/r/api_gateway_method_response.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_method_response.html.markdown @@ -12,7 +12,7 @@ Provides an HTTP Method Response for an API Gateway Resource. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" diff --git a/website/source/docs/providers/aws/r/api_gateway_model.html.markdown b/website/source/docs/providers/aws/r/api_gateway_model.html.markdown index 6077fbb14..34e792290 100644 --- a/website/source/docs/providers/aws/r/api_gateway_model.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_model.html.markdown @@ -12,7 +12,7 @@ Provides a Model for a API Gateway. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" diff --git a/website/source/docs/providers/aws/r/api_gateway_resource.html.markdown b/website/source/docs/providers/aws/r/api_gateway_resource.html.markdown index 8abcd4281..4542aca0a 100644 --- a/website/source/docs/providers/aws/r/api_gateway_resource.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_resource.html.markdown @@ -12,7 +12,7 @@ Provides an API Gateway Resource. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" diff --git a/website/source/docs/providers/aws/r/api_gateway_rest_api.html.markdown b/website/source/docs/providers/aws/r/api_gateway_rest_api.html.markdown index 27ef1a2e0..a654804c1 100644 --- a/website/source/docs/providers/aws/r/api_gateway_rest_api.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_rest_api.html.markdown @@ -12,7 +12,7 @@ Provides an API Gateway REST API. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "MyDemoAPI" { name = "MyDemoAPI" description = "This is my API for demonstration purposes" diff --git a/website/source/docs/providers/aws/r/api_gateway_usage_plan.html.markdown b/website/source/docs/providers/aws/r/api_gateway_usage_plan.html.markdown index 6a9a0800b..ee8b70c1f 100644 --- a/website/source/docs/providers/aws/r/api_gateway_usage_plan.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_usage_plan.html.markdown @@ -12,7 +12,7 @@ Provides an API Gateway Usage Plan. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "myapi" { name = "MyDemoAPI" } diff --git a/website/source/docs/providers/aws/r/api_gateway_usage_plan_key.html.markdown b/website/source/docs/providers/aws/r/api_gateway_usage_plan_key.html.markdown index 6ec44fcf1..7b1fdf767 100644 --- a/website/source/docs/providers/aws/r/api_gateway_usage_plan_key.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_usage_plan_key.html.markdown @@ -12,7 +12,7 @@ Provides an API Gateway Usage Plan Key. ## Example Usage -``` +```hcl resource "aws_api_gateway_rest_api" "test" { name = "MyDemoAPI" } diff --git a/website/source/docs/providers/aws/r/app_cookie_stickiness_policy.html.markdown b/website/source/docs/providers/aws/r/app_cookie_stickiness_policy.html.markdown index 3cf8ffdca..aff29db4c 100644 --- a/website/source/docs/providers/aws/r/app_cookie_stickiness_policy.html.markdown +++ b/website/source/docs/providers/aws/r/app_cookie_stickiness_policy.html.markdown @@ -12,7 +12,7 @@ Provides an application cookie stickiness policy, which allows an ELB to wed its ## Example Usage -``` +```hcl resource "aws_elb" "lb" { name = "test-lb" availability_zones = ["us-east-1a"] diff --git a/website/source/docs/providers/aws/r/appautoscaling_policy.html.markdown b/website/source/docs/providers/aws/r/appautoscaling_policy.html.markdown index ef4146af8..4d2f217fa 100644 --- a/website/source/docs/providers/aws/r/appautoscaling_policy.html.markdown +++ b/website/source/docs/providers/aws/r/appautoscaling_policy.html.markdown @@ -11,7 +11,8 @@ description: |- Provides an Application AutoScaling Policy resource. ## Example Usage -``` + +```hcl resource "aws_appautoscaling_target" "ecs_target" { max_capacity = 4 min_capacity = 1 @@ -53,7 +54,7 @@ The following arguments are supported: * `service_namespace` - (Required) The AWS service namespace of the scalable target. Valid values are `ecs` for Amazon ECS services and `ec2` Amazon EC2 Spot fleet requests. * `step_adjustment` - (Optional) A set of adjustments that manage scaling. These have the following structure: - ``` + ```hcl step_adjustment { metric_interval_lower_bound = 1.0 metric_interval_upper_bound = 2.0 diff --git a/website/source/docs/providers/aws/r/appautoscaling_target.html.markdown b/website/source/docs/providers/aws/r/appautoscaling_target.html.markdown index dd1ed34cf..c52834977 100644 --- a/website/source/docs/providers/aws/r/appautoscaling_target.html.markdown +++ b/website/source/docs/providers/aws/r/appautoscaling_target.html.markdown @@ -11,7 +11,8 @@ description: |- Provides an Application AutoScaling ScalableTarget resource. ## Example Usage -``` + +```hcl resource "aws_appautoscaling_target" "ecs_target" { max_capacity = 4 min_capacity = 1 diff --git a/website/source/docs/providers/aws/r/autoscaling_attachment.html.markdown b/website/source/docs/providers/aws/r/autoscaling_attachment.html.markdown index d12560da2..faf877815 100644 --- a/website/source/docs/providers/aws/r/autoscaling_attachment.html.markdown +++ b/website/source/docs/providers/aws/r/autoscaling_attachment.html.markdown @@ -19,7 +19,7 @@ conflict and will overwrite attachments. ## Example Usage -``` +```hcl # Create a new load balancer attachment resource "aws_autoscaling_attachment" "asg_attachment_bar" { autoscaling_group_name = "${aws_autoscaling_group.asg.id}" @@ -27,7 +27,7 @@ resource "aws_autoscaling_attachment" "asg_attachment_bar" { } ``` -``` +```hcl # Create a new ALB Target Group attachment resource "aws_autoscaling_attachment" "asg_attachment_bar" { autoscaling_group_name = "${aws_autoscaling_group.asg.id}" diff --git a/website/source/docs/providers/aws/r/autoscaling_group.html.markdown b/website/source/docs/providers/aws/r/autoscaling_group.html.markdown index 07e21766d..86b92a669 100644 --- a/website/source/docs/providers/aws/r/autoscaling_group.html.markdown +++ b/website/source/docs/providers/aws/r/autoscaling_group.html.markdown @@ -12,7 +12,7 @@ Provides an AutoScaling Group resource. ## Example Usage -``` +```hcl resource "aws_placement_group" "test" { name = "test" strategy = "cluster" diff --git a/website/source/docs/providers/aws/r/autoscaling_lifecycle_hooks.html.markdown b/website/source/docs/providers/aws/r/autoscaling_lifecycle_hooks.html.markdown index 63a17ced7..6a1d9468f 100644 --- a/website/source/docs/providers/aws/r/autoscaling_lifecycle_hooks.html.markdown +++ b/website/source/docs/providers/aws/r/autoscaling_lifecycle_hooks.html.markdown @@ -24,7 +24,7 @@ but take care to not duplicate those hooks with this resource. ## Example Usage -``` +```hcl resource "aws_autoscaling_group" "foobar" { availability_zones = ["us-west-2a"] name = "terraform-test-foobar5" diff --git a/website/source/docs/providers/aws/r/autoscaling_notification.html.markdown b/website/source/docs/providers/aws/r/autoscaling_notification.html.markdown index 5229e66db..fb281f147 100644 --- a/website/source/docs/providers/aws/r/autoscaling_notification.html.markdown +++ b/website/source/docs/providers/aws/r/autoscaling_notification.html.markdown @@ -16,7 +16,7 @@ Services, and are applied to each AutoScaling Group you supply. Basic usage: -``` +```hcl resource "aws_autoscaling_notification" "example_notifications" { group_names = [ "${aws_autoscaling_group.bar.name}", diff --git a/website/source/docs/providers/aws/r/autoscaling_policy.html.markdown b/website/source/docs/providers/aws/r/autoscaling_policy.html.markdown index b57cad5c7..5d37945a8 100644 --- a/website/source/docs/providers/aws/r/autoscaling_policy.html.markdown +++ b/website/source/docs/providers/aws/r/autoscaling_policy.html.markdown @@ -17,7 +17,8 @@ or [dynamic](https://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-sc (policy-based) scaling. ## Example Usage -``` + +```hcl resource "aws_autoscaling_policy" "bat" { name = "foobar3-terraform-test" scaling_adjustment = 4 @@ -59,7 +60,7 @@ The following arguments are only available to "StepScaling" type policies: * `step_adjustments` - (Optional) A set of adjustments that manage group scaling. These have the following structure: -``` +```hcl step_adjustment { scaling_adjustment = -1 metric_interval_lower_bound = 1.0 diff --git a/website/source/docs/providers/aws/r/autoscaling_schedule.html.markdown b/website/source/docs/providers/aws/r/autoscaling_schedule.html.markdown index ba172609e..1392361ac 100644 --- a/website/source/docs/providers/aws/r/autoscaling_schedule.html.markdown +++ b/website/source/docs/providers/aws/r/autoscaling_schedule.html.markdown @@ -11,7 +11,8 @@ description: |- Provides an AutoScaling Schedule resource. ## Example Usage -``` + +```hcl resource "aws_autoscaling_group" "foobar" { availability_zones = ["us-west-2a"] name = "terraform-test-foobar5" diff --git a/website/source/docs/providers/aws/r/cloudformation_stack.html.markdown b/website/source/docs/providers/aws/r/cloudformation_stack.html.markdown index 9ab1a8a19..6948fa97a 100644 --- a/website/source/docs/providers/aws/r/cloudformation_stack.html.markdown +++ b/website/source/docs/providers/aws/r/cloudformation_stack.html.markdown @@ -12,7 +12,7 @@ Provides a CloudFormation Stack resource. ## Example Usage -``` +```hcl resource "aws_cloudformation_stack" "network" { name = "networking-stack" diff --git a/website/source/docs/providers/aws/r/cloudfront_distribution.html.markdown b/website/source/docs/providers/aws/r/cloudfront_distribution.html.markdown index 59cda86b7..cfb25c0d0 100644 --- a/website/source/docs/providers/aws/r/cloudfront_distribution.html.markdown +++ b/website/source/docs/providers/aws/r/cloudfront_distribution.html.markdown @@ -24,7 +24,7 @@ want to wait, you need to use the `retain_on_delete` flag. The following example below creates a CloudFront distribution with an S3 origin. -``` +```hcl resource "aws_s3_bucket" "b" { bucket = "mybucket" acl = "private" diff --git a/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown b/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown index 0b384fd13..b35ebc661 100644 --- a/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown +++ b/website/source/docs/providers/aws/r/cloudfront_origin_access_identity.html.markdown @@ -19,7 +19,7 @@ origin access identities, see The following example below creates a CloudFront origin access identity. -``` +```hcl resource "aws_cloudfront_origin_access_identity" "origin_access_identity" { comment = "Some comment" } @@ -55,7 +55,7 @@ The `cloudfront_access_identity_path` allows this to be circumvented. The below snippet demonstrates use with the `s3_origin_config` structure for the [`aws_cloudfront_web_distribution`][3] resource: -``` +```hcl s3_origin_config { origin_access_identity = "${aws_cloudfront_origin_access_identity.origin_access_identity.cloudfront_access_identity_path}" } @@ -68,7 +68,7 @@ principal into an `AWS` IAM ARN principal when supplied in an [`aws_s3_bucket`][4] bucket policy, causing spurious diffs in Terraform. If you see this behaviour, use the `iam_arn` instead: -``` +```hcl data "aws_iam_policy_document" "s3_policy" { statement { actions = ["s3:GetObject"] diff --git a/website/source/docs/providers/aws/r/cloudtrail.html.markdown b/website/source/docs/providers/aws/r/cloudtrail.html.markdown index bebfe49e7..f03cb5b38 100644 --- a/website/source/docs/providers/aws/r/cloudtrail.html.markdown +++ b/website/source/docs/providers/aws/r/cloudtrail.html.markdown @@ -11,7 +11,8 @@ description: |- Provides a CloudTrail resource. ## Example Usage -``` + +```hcl resource "aws_cloudtrail" "foobar" { name = "tf-trail-foobar" s3_bucket_name = "${aws_s3_bucket.foo.id}" diff --git a/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown index ece65d272..fb07969b2 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Event Rule resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_event_rule" "console" { name = "capture-aws-sign-in" description = "Capture each AWS Console Sign In" diff --git a/website/source/docs/providers/aws/r/cloudwatch_event_target.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_event_target.html.markdown index ff60607a9..161097863 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_event_target.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_event_target.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Event Target resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_event_target" "yada" { target_id = "Yada" rule = "${aws_cloudwatch_event_rule.console.name}" diff --git a/website/source/docs/providers/aws/r/cloudwatch_log_destination.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_log_destination.html.markdown index d1b1e9238..b00ac1dbf 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_log_destination.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_log_destination.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Logs destination resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_log_destination" "test_destination" { name = "test_destination" role_arn = "${aws_iam_role.iam_for_cloudwatch.arn}" diff --git a/website/source/docs/providers/aws/r/cloudwatch_log_destination_policy.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_log_destination_policy.html.markdown index 452e254dd..46172d613 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_log_destination_policy.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_log_destination_policy.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Logs destination policy resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_log_destination" "test_destination" { name = "test_destination" role_arn = "${aws_iam_role.iam_for_cloudwatch.arn}" diff --git a/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown index bfa9fc4ad..88e7e0c62 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Log Group resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_log_group" "yada" { name = "Yada" diff --git a/website/source/docs/providers/aws/r/cloudwatch_log_metric_filter.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_log_metric_filter.html.markdown index 24a8dcaf6..492b111c0 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_log_metric_filter.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_log_metric_filter.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Log Metric Filter resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_log_metric_filter" "yada" { name = "MyAppAccessCount" pattern = "" diff --git a/website/source/docs/providers/aws/r/cloudwatch_log_stream.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_log_stream.html.markdown index b01d3bb9b..0591814a4 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_log_stream.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_log_stream.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Log Stream resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_log_group" "yada" { name = "Yada" } diff --git a/website/source/docs/providers/aws/r/cloudwatch_log_subscription_filter.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_log_subscription_filter.html.markdown index 882654e07..1a41b40f1 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_log_subscription_filter.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_log_subscription_filter.html.markdown @@ -12,7 +12,7 @@ Provides a CloudWatch Logs subscription filter resource. ## Example Usage -``` +```hcl resource "aws_cloudwatch_log_subscription_filter" "test_lambdafunction_logfilter" { name = "test_lambdafunction_logfilter" role_arn = "${aws_iam_role.iam_for_lambda.arn}" diff --git a/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown index 80ed352c8..eaa837bab 100644 --- a/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown +++ b/website/source/docs/providers/aws/r/cloudwatch_metric_alarm.html.markdown @@ -11,7 +11,8 @@ description: |- Provides a CloudWatch Metric Alarm resource. ## Example Usage -``` + +```hcl resource "aws_cloudwatch_metric_alarm" "foobar" { alarm_name = "terraform-test-foobar5" comparison_operator = "GreaterThanOrEqualToThreshold" @@ -27,7 +28,8 @@ resource "aws_cloudwatch_metric_alarm" "foobar" { ``` ## Example in Conjunction with Scaling Policies -``` + +```hcl resource "aws_autoscaling_policy" "bat" { name = "foobar3-terraform-test" scaling_adjustment = 4 @@ -98,7 +100,6 @@ The following attributes are exported: * `id` - The ID of the health check - ## Import Cloud Metric Alarms can be imported using the `alarm_name`, e.g. diff --git a/website/source/docs/providers/aws/r/code_commit_repository.html.markdown b/website/source/docs/providers/aws/r/code_commit_repository.html.markdown index 8fdf43576..b6e88968e 100644 --- a/website/source/docs/providers/aws/r/code_commit_repository.html.markdown +++ b/website/source/docs/providers/aws/r/code_commit_repository.html.markdown @@ -16,7 +16,7 @@ in all regions - available regions are listed ## Example Usage -``` +```hcl resource "aws_codecommit_repository" "test" { repository_name = "MyTestRepository" description = "This is the Sample App Repository" diff --git a/website/source/docs/providers/aws/r/code_commit_trigger.html.markdown b/website/source/docs/providers/aws/r/code_commit_trigger.html.markdown index 70e2e2347..82dd8dc03 100644 --- a/website/source/docs/providers/aws/r/code_commit_trigger.html.markdown +++ b/website/source/docs/providers/aws/r/code_commit_trigger.html.markdown @@ -16,7 +16,7 @@ in all regions - available regions are listed ## Example Usage -``` +```hcl resource "aws_codecommit_trigger" "test" { depends_on = ["aws_codecommit_repository.test"] repository_name = "my_test_repository" diff --git a/website/source/docs/providers/aws/r/codebuild_project.html.markdown b/website/source/docs/providers/aws/r/codebuild_project.html.markdown index b469815b6..b5e18341f 100644 --- a/website/source/docs/providers/aws/r/codebuild_project.html.markdown +++ b/website/source/docs/providers/aws/r/codebuild_project.html.markdown @@ -12,7 +12,7 @@ Provides a CodeBuild Project resource. ## Example Usage -``` +```hcl resource "aws_iam_role" "codebuild_role" { name = "codebuild-role-" diff --git a/website/source/docs/providers/aws/r/codedeploy_app.html.markdown b/website/source/docs/providers/aws/r/codedeploy_app.html.markdown index 146709e61..f22306c93 100644 --- a/website/source/docs/providers/aws/r/codedeploy_app.html.markdown +++ b/website/source/docs/providers/aws/r/codedeploy_app.html.markdown @@ -12,7 +12,7 @@ Provides a CodeDeploy application to be used as a basis for deployments ## Example Usage -``` +```hcl resource "aws_codedeploy_app" "foo" { name = "foo" } diff --git a/website/source/docs/providers/aws/r/codedeploy_deployment_config.html.markdown b/website/source/docs/providers/aws/r/codedeploy_deployment_config.html.markdown index 3b35f4519..9d7cbdd8d 100644 --- a/website/source/docs/providers/aws/r/codedeploy_deployment_config.html.markdown +++ b/website/source/docs/providers/aws/r/codedeploy_deployment_config.html.markdown @@ -12,7 +12,7 @@ Provides a CodeDeploy deployment config for an application ## Example Usage -``` +```hcl resource "aws_codedeploy_deployment_config" "foo" { deployment_config_name = "test-deployment-config" diff --git a/website/source/docs/providers/aws/r/codedeploy_deployment_group.html.markdown b/website/source/docs/providers/aws/r/codedeploy_deployment_group.html.markdown index 35aeda2dc..c7e744049 100644 --- a/website/source/docs/providers/aws/r/codedeploy_deployment_group.html.markdown +++ b/website/source/docs/providers/aws/r/codedeploy_deployment_group.html.markdown @@ -12,7 +12,7 @@ Provides a CodeDeploy deployment group for an application ## Example Usage -``` +```hcl resource "aws_codedeploy_app" "foo_app" { name = "foo_app" } diff --git a/website/source/docs/providers/aws/r/codepipeline.markdown b/website/source/docs/providers/aws/r/codepipeline.markdown index d4dd59aaa..500b21c6d 100644 --- a/website/source/docs/providers/aws/r/codepipeline.markdown +++ b/website/source/docs/providers/aws/r/codepipeline.markdown @@ -14,7 +14,7 @@ Provides a CodePipeline. ## Example Usage -``` +```hcl resource "aws_s3_bucket" "foo" { bucket = "test-bucket" acl = "private" diff --git a/website/source/docs/providers/aws/r/config_config_rule.html.markdown b/website/source/docs/providers/aws/r/config_config_rule.html.markdown index 9261c9fee..552154744 100644 --- a/website/source/docs/providers/aws/r/config_config_rule.html.markdown +++ b/website/source/docs/providers/aws/r/config_config_rule.html.markdown @@ -14,7 +14,7 @@ Provides an AWS Config Rule. ## Example Usage -``` +```hcl resource "aws_config_config_rule" "r" { name = "example" diff --git a/website/source/docs/providers/aws/r/config_configuration_recorder.html.markdown b/website/source/docs/providers/aws/r/config_configuration_recorder.html.markdown index 7b786bec8..da6f1a2c7 100644 --- a/website/source/docs/providers/aws/r/config_configuration_recorder.html.markdown +++ b/website/source/docs/providers/aws/r/config_configuration_recorder.html.markdown @@ -14,7 +14,7 @@ Provides an AWS Config Configuration Recorder. Please note that this resource ** ## Example Usage -``` +```hcl resource "aws_config_configuration_recorder" "foo" { name = "example" role_arn = "${aws_iam_role.r.arn}" diff --git a/website/source/docs/providers/aws/r/config_configuration_recorder_status.html.markdown b/website/source/docs/providers/aws/r/config_configuration_recorder_status.html.markdown index cc682b8b5..8f60cc6bf 100644 --- a/website/source/docs/providers/aws/r/config_configuration_recorder_status.html.markdown +++ b/website/source/docs/providers/aws/r/config_configuration_recorder_status.html.markdown @@ -14,7 +14,7 @@ Manages status (recording / stopped) of an AWS Config Configuration Recorder. ## Example Usage -``` +```hcl resource "aws_config_configuration_recorder_status" "foo" { name = "${aws_config_configuration_recorder.foo.name}" is_enabled = true diff --git a/website/source/docs/providers/aws/r/config_delivery_channel.html.markdown b/website/source/docs/providers/aws/r/config_delivery_channel.html.markdown index 667e66ba7..9f7fcf46f 100644 --- a/website/source/docs/providers/aws/r/config_delivery_channel.html.markdown +++ b/website/source/docs/providers/aws/r/config_delivery_channel.html.markdown @@ -14,7 +14,7 @@ Provides an AWS Config Delivery Channel. ## Example Usage -``` +```hcl resource "aws_config_delivery_channel" "foo" { name = "example" s3_bucket_name = "${aws_s3_bucket.b.bucket}" diff --git a/website/source/docs/providers/aws/r/customer_gateway.html.markdown b/website/source/docs/providers/aws/r/customer_gateway.html.markdown index 2bbc01e76..6eb2d83da 100644 --- a/website/source/docs/providers/aws/r/customer_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/customer_gateway.html.markdown @@ -14,7 +14,7 @@ Provides a customer gateway inside a VPC. These objects can be connected to VPN ## Example Usage -``` +```hcl resource "aws_customer_gateway" "main" { bgp_asn = 65000 ip_address = "172.83.124.10" diff --git a/website/source/docs/providers/aws/r/db_event_subscription.html.markdown b/website/source/docs/providers/aws/r/db_event_subscription.html.markdown index b7146f262..5103121dc 100644 --- a/website/source/docs/providers/aws/r/db_event_subscription.html.markdown +++ b/website/source/docs/providers/aws/r/db_event_subscription.html.markdown @@ -10,7 +10,7 @@ Provides a DB event subscription resource. ## Example Usage -``` +```hcl resource "aws_db_instance" "default" { allocated_storage = 10 engine = "mysql" diff --git a/website/source/docs/providers/aws/r/db_instance.html.markdown b/website/source/docs/providers/aws/r/db_instance.html.markdown index 7e6044425..72b2ab1ef 100644 --- a/website/source/docs/providers/aws/r/db_instance.html.markdown +++ b/website/source/docs/providers/aws/r/db_instance.html.markdown @@ -30,7 +30,7 @@ for more information. ## Example Usage -``` +```hcl resource "aws_db_instance" "default" { allocated_storage = 10 storage_type = "gp2" diff --git a/website/source/docs/providers/aws/r/db_option_group.html.markdown b/website/source/docs/providers/aws/r/db_option_group.html.markdown index ad4c4d5d4..ee1f8804c 100644 --- a/website/source/docs/providers/aws/r/db_option_group.html.markdown +++ b/website/source/docs/providers/aws/r/db_option_group.html.markdown @@ -10,7 +10,7 @@ Provides an RDS DB option group resource. ## Example Usage -``` +```hcl resource "aws_db_option_group" "bar" { name = "option-group-test-terraform" option_group_description = "Terraform Option Group" diff --git a/website/source/docs/providers/aws/r/db_parameter_group.html.markdown b/website/source/docs/providers/aws/r/db_parameter_group.html.markdown index 2e4d362d2..25ea6b539 100644 --- a/website/source/docs/providers/aws/r/db_parameter_group.html.markdown +++ b/website/source/docs/providers/aws/r/db_parameter_group.html.markdown @@ -10,7 +10,7 @@ Provides an RDS DB parameter group resource. ## Example Usage -``` +```hcl resource "aws_db_parameter_group" "default" { name = "rds-pg" family = "mysql5.6" diff --git a/website/source/docs/providers/aws/r/db_security_group.html.markdown b/website/source/docs/providers/aws/r/db_security_group.html.markdown index 788934edd..275c94690 100644 --- a/website/source/docs/providers/aws/r/db_security_group.html.markdown +++ b/website/source/docs/providers/aws/r/db_security_group.html.markdown @@ -15,7 +15,7 @@ attribute instead. ## Example Usage -``` +```hcl resource "aws_db_security_group" "default" { name = "rds_sg" diff --git a/website/source/docs/providers/aws/r/db_subnet_group.html.markdown b/website/source/docs/providers/aws/r/db_subnet_group.html.markdown index bee5eee52..eaf27e030 100644 --- a/website/source/docs/providers/aws/r/db_subnet_group.html.markdown +++ b/website/source/docs/providers/aws/r/db_subnet_group.html.markdown @@ -12,7 +12,7 @@ Provides an RDS DB subnet group resource. ## Example Usage -``` +```hcl resource "aws_db_subnet_group" "default" { name = "main" subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"] diff --git a/website/source/docs/providers/aws/r/default_network_acl.html.markdown b/website/source/docs/providers/aws/r/default_network_acl.html.markdown index c61d4d24a..cbabbd22f 100644 --- a/website/source/docs/providers/aws/r/default_network_acl.html.markdown +++ b/website/source/docs/providers/aws/r/default_network_acl.html.markdown @@ -39,7 +39,7 @@ The following config gives the Default Network ACL the same rules that AWS includes, but pulls the resource under management by Terraform. This means that any ACL rules added or changed will be detected as drift. -``` +```hcl resource "aws_vpc" "mainvpc" { cidr_block = "10.1.0.0/16" } @@ -72,7 +72,7 @@ resource "aws_default_network_acl" "default" { The following denies all Egress traffic by omitting any `egress` rules, while including the default `ingress` rule to allow all traffic. -``` +```hcl resource "aws_vpc" "mainvpc" { cidr_block = "10.1.0.0/16" } @@ -97,7 +97,7 @@ This config denies all traffic in the Default ACL. This can be useful if you want a locked down default to force all resources in the VPC to assign a non-default ACL. -``` +```hcl resource "aws_vpc" "mainvpc" { cidr_block = "10.1.0.0/16" } diff --git a/website/source/docs/providers/aws/r/default_route_table.html.markdown b/website/source/docs/providers/aws/r/default_route_table.html.markdown index 4ef364ea2..30a3bc008 100644 --- a/website/source/docs/providers/aws/r/default_route_table.html.markdown +++ b/website/source/docs/providers/aws/r/default_route_table.html.markdown @@ -42,7 +42,7 @@ a conflict of rule settings and will overwrite routes. ## Example usage with tags: -``` +```hcl resource "aws_default_route_table" "r" { default_route_table_id = "${aws_vpc.foo.default_route_table_id}" diff --git a/website/source/docs/providers/aws/r/default_security_group.html.markdown b/website/source/docs/providers/aws/r/default_security_group.html.markdown index ce79bcd7f..d5300f92b 100644 --- a/website/source/docs/providers/aws/r/default_security_group.html.markdown +++ b/website/source/docs/providers/aws/r/default_security_group.html.markdown @@ -40,7 +40,7 @@ The following config gives the Default Security Group the same rules that AWS provides by default, but pulls the resource under management by Terraform. This means that any ingress or egress rules added or changed will be detected as drift. -``` +```hcl resource "aws_vpc" "mainvpc" { cidr_block = "10.1.0.0/16" } @@ -69,7 +69,7 @@ resource "aws_default_security_group" "default" { The following denies all Egress traffic by omitting any `egress` rules, while including the default `ingress` rule to allow all traffic. -``` +```hcl resource "aws_vpc" "mainvpc" { cidr_block = "10.1.0.0/16" } diff --git a/website/source/docs/providers/aws/r/directory_service_directory.html.markdown b/website/source/docs/providers/aws/r/directory_service_directory.html.markdown index 23b1767bb..16bc9145c 100644 --- a/website/source/docs/providers/aws/r/directory_service_directory.html.markdown +++ b/website/source/docs/providers/aws/r/directory_service_directory.html.markdown @@ -15,7 +15,7 @@ Provides a Simple or Managed Microsoft directory in AWS Directory Service. ## Example Usage -``` +```hcl resource "aws_directory_service_directory" "bar" { name = "corp.notexample.com" password = "SuperSecretPassw0rd" diff --git a/website/source/docs/providers/aws/r/dms_certificate.html.markdown b/website/source/docs/providers/aws/r/dms_certificate.html.markdown index 0e2e50eb6..6e7a06d8f 100644 --- a/website/source/docs/providers/aws/r/dms_certificate.html.markdown +++ b/website/source/docs/providers/aws/r/dms_certificate.html.markdown @@ -15,7 +15,7 @@ Provides a DMS (Data Migration Service) certificate resource. DMS certificates c ## Example Usage -``` +```hcl # Create a new certificate resource "aws_dms_certificate" "test" { certificate_id = "test-dms-certificate-tf" diff --git a/website/source/docs/providers/aws/r/dms_endpoint.html.markdown b/website/source/docs/providers/aws/r/dms_endpoint.html.markdown index 2ef626fad..e88b55a29 100644 --- a/website/source/docs/providers/aws/r/dms_endpoint.html.markdown +++ b/website/source/docs/providers/aws/r/dms_endpoint.html.markdown @@ -15,7 +15,7 @@ Provides a DMS (Data Migration Service) endpoint resource. DMS endpoints can be ## Example Usage -``` +```hcl # Create a new endpoint resource "aws_dms_endpoint" "test" { certificate_arn = "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012" diff --git a/website/source/docs/providers/aws/r/dms_replication_instance.html.markdown b/website/source/docs/providers/aws/r/dms_replication_instance.html.markdown index 0c85ad7d3..c51665817 100644 --- a/website/source/docs/providers/aws/r/dms_replication_instance.html.markdown +++ b/website/source/docs/providers/aws/r/dms_replication_instance.html.markdown @@ -12,7 +12,7 @@ Provides a DMS (Data Migration Service) replication instance resource. DMS repli ## Example Usage -``` +```hcl # Create a new replication instance resource "aws_dms_replication_instance" "test" { allocated_storage = 20 diff --git a/website/source/docs/providers/aws/r/dms_replication_subnet_group.html.markdown b/website/source/docs/providers/aws/r/dms_replication_subnet_group.html.markdown index 84ac1d103..d3aa97fde 100644 --- a/website/source/docs/providers/aws/r/dms_replication_subnet_group.html.markdown +++ b/website/source/docs/providers/aws/r/dms_replication_subnet_group.html.markdown @@ -12,7 +12,7 @@ Provides a DMS (Data Migration Service) replication subnet group resource. DMS r ## Example Usage -``` +```hcl # Create a new replication subnet group resource "aws_dms_replication_subnet_group" "test" { replication_subnet_group_description = "Test replication subnet group" diff --git a/website/source/docs/providers/aws/r/dms_replication_task.html.markdown b/website/source/docs/providers/aws/r/dms_replication_task.html.markdown index 60ef2e99d..eb24c0430 100644 --- a/website/source/docs/providers/aws/r/dms_replication_task.html.markdown +++ b/website/source/docs/providers/aws/r/dms_replication_task.html.markdown @@ -12,7 +12,7 @@ Provides a DMS (Data Migration Service) replication task resource. DMS replicati ## Example Usage -``` +```hcl # Create a new replication task resource "aws_dms_replication_task" "test" { cdc_start_time = 1484346880 diff --git a/website/source/docs/providers/aws/r/dynamodb_table.html.markdown b/website/source/docs/providers/aws/r/dynamodb_table.html.markdown index fe532610a..b3cd64cf4 100644 --- a/website/source/docs/providers/aws/r/dynamodb_table.html.markdown +++ b/website/source/docs/providers/aws/r/dynamodb_table.html.markdown @@ -15,7 +15,7 @@ Provides a DynamoDB table resource The following dynamodb table description models the table and GSI shown in the [AWS SDK example documentation](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html) -``` +```hcl resource "aws_dynamodb_table" "basic-dynamodb-table" { name = "GameScores" read_capacity = 20 diff --git a/website/source/docs/providers/aws/r/ebs_snapshot.html.md b/website/source/docs/providers/aws/r/ebs_snapshot.html.md index 5c6eebe1e..fffa6c978 100644 --- a/website/source/docs/providers/aws/r/ebs_snapshot.html.md +++ b/website/source/docs/providers/aws/r/ebs_snapshot.html.md @@ -12,7 +12,7 @@ Creates a Snapshot of an EBS Volume. ## Example Usage -``` +```hcl resource "aws_ebs_volume" "example" { availability_zone = "us-west-2a" size = 40 diff --git a/website/source/docs/providers/aws/r/ebs_volume.html.md b/website/source/docs/providers/aws/r/ebs_volume.html.md index a5e4cade9..205473f98 100644 --- a/website/source/docs/providers/aws/r/ebs_volume.html.md +++ b/website/source/docs/providers/aws/r/ebs_volume.html.md @@ -12,7 +12,7 @@ Manages a single EBS volume. ## Example Usage -``` +```hcl resource "aws_ebs_volume" "example" { availability_zone = "us-west-2a" size = 40 diff --git a/website/source/docs/providers/aws/r/ecr_repository.html.markdown b/website/source/docs/providers/aws/r/ecr_repository.html.markdown index e591b8509..d9783e0a2 100644 --- a/website/source/docs/providers/aws/r/ecr_repository.html.markdown +++ b/website/source/docs/providers/aws/r/ecr_repository.html.markdown @@ -16,7 +16,7 @@ in all regions - available regions are listed ## Example Usage -``` +```hcl resource "aws_ecr_repository" "foo" { name = "bar" } diff --git a/website/source/docs/providers/aws/r/ecr_repository_policy.html.markdown b/website/source/docs/providers/aws/r/ecr_repository_policy.html.markdown index 70bb3c0db..a6437cf6c 100644 --- a/website/source/docs/providers/aws/r/ecr_repository_policy.html.markdown +++ b/website/source/docs/providers/aws/r/ecr_repository_policy.html.markdown @@ -18,7 +18,7 @@ in all regions - available regions are listed ## Example Usage -``` +```hcl resource "aws_ecr_repository" "foo" { name = "bar" } diff --git a/website/source/docs/providers/aws/r/ecs_cluster.html.markdown b/website/source/docs/providers/aws/r/ecs_cluster.html.markdown index d00e05fab..569bcc9b5 100644 --- a/website/source/docs/providers/aws/r/ecs_cluster.html.markdown +++ b/website/source/docs/providers/aws/r/ecs_cluster.html.markdown @@ -12,7 +12,7 @@ Provides an ECS cluster. ## Example Usage -``` +```hcl resource "aws_ecs_cluster" "foo" { name = "white-hart" } diff --git a/website/source/docs/providers/aws/r/ecs_service.html.markdown b/website/source/docs/providers/aws/r/ecs_service.html.markdown index 8e8c9716f..54558a70a 100644 --- a/website/source/docs/providers/aws/r/ecs_service.html.markdown +++ b/website/source/docs/providers/aws/r/ecs_service.html.markdown @@ -16,7 +16,7 @@ See [ECS Services section in AWS developer guide](https://docs.aws.amazon.com/Am ## Example Usage -``` +```hcl resource "aws_ecs_service" "mongo" { name = "mongodb" cluster = "${aws_ecs_cluster.foo.id}" diff --git a/website/source/docs/providers/aws/r/ecs_task_definition.html.markdown b/website/source/docs/providers/aws/r/ecs_task_definition.html.markdown index 0db84067a..fd40c9ef0 100644 --- a/website/source/docs/providers/aws/r/ecs_task_definition.html.markdown +++ b/website/source/docs/providers/aws/r/ecs_task_definition.html.markdown @@ -12,7 +12,7 @@ Provides an ECS task definition to be used in `aws_ecs_service`. ## Example Usage -``` +```hcl resource "aws_ecs_task_definition" "service" { family = "service" container_definitions = "${file("task-definitions/service.json")}" diff --git a/website/source/docs/providers/aws/r/efs_file_system.html.markdown b/website/source/docs/providers/aws/r/efs_file_system.html.markdown index 834b2c944..c65d1322d 100644 --- a/website/source/docs/providers/aws/r/efs_file_system.html.markdown +++ b/website/source/docs/providers/aws/r/efs_file_system.html.markdown @@ -12,7 +12,7 @@ Provides an Elastic File System (EFS) resource. ## Example Usage -``` +```hcl resource "aws_efs_file_system" "foo" { creation_token = "my-product" diff --git a/website/source/docs/providers/aws/r/efs_mount_target.html.markdown b/website/source/docs/providers/aws/r/efs_mount_target.html.markdown index d91ee0934..eb3f3562e 100644 --- a/website/source/docs/providers/aws/r/efs_mount_target.html.markdown +++ b/website/source/docs/providers/aws/r/efs_mount_target.html.markdown @@ -12,7 +12,7 @@ Provides an Elastic File System (EFS) mount target. ## Example Usage -``` +```hcl resource "aws_efs_mount_target" "alpha" { file_system_id = "${aws_efs_file_system.foo.id}" subnet_id = "${aws_subnet.alpha.id}" diff --git a/website/source/docs/providers/aws/r/egress_only_internet_gateway.html.markdown b/website/source/docs/providers/aws/r/egress_only_internet_gateway.html.markdown index 613a40315..e4238a25a 100644 --- a/website/source/docs/providers/aws/r/egress_only_internet_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/egress_only_internet_gateway.html.markdown @@ -15,7 +15,7 @@ outside of your VPC from initiating an IPv6 connection with your instance. ## Example Usage -``` +```hcl resource "aws_vpc" "foo" { cidr_block = "10.1.0.0/16" assign_amazon_ipv6_cidr_block = true diff --git a/website/source/docs/providers/aws/r/eip.html.markdown b/website/source/docs/providers/aws/r/eip.html.markdown index 615dc0fef..1eb96a092 100644 --- a/website/source/docs/providers/aws/r/eip.html.markdown +++ b/website/source/docs/providers/aws/r/eip.html.markdown @@ -14,7 +14,7 @@ Provides an Elastic IP resource. Single EIP associated with an instance: -``` +```hcl resource "aws_eip" "lb" { instance = "${aws_instance.web.id}" vpc = true @@ -23,7 +23,7 @@ resource "aws_eip" "lb" { Multiple EIPs associated with a single network interface: -``` +```hcl resource "aws_network_interface" "multi-ip" { subnet_id = "${aws_subnet.main.id}" private_ips = ["10.0.0.10", "10.0.0.11"] @@ -44,7 +44,7 @@ resource "aws_eip" "two" { Attaching an EIP to an Instance with a pre-assigned private ip (VPC Only): -``` +```hcl resource "aws_vpc" "default" { cidr_block = "10.0.0.0/16" enable_dns_hostnames = true diff --git a/website/source/docs/providers/aws/r/eip_association.html.markdown b/website/source/docs/providers/aws/r/eip_association.html.markdown index a2f3b8b98..fe473b51f 100644 --- a/website/source/docs/providers/aws/r/eip_association.html.markdown +++ b/website/source/docs/providers/aws/r/eip_association.html.markdown @@ -16,7 +16,7 @@ pre-existing or distributed to customers or users and therefore cannot be change ## Example Usage -``` +```hcl resource "aws_eip_association" "eip_assoc" { instance_id = "${aws_instance.web.id}" allocation_id = "${aws_eip.example.id}" diff --git a/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown b/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown index 2298070cd..d8437fff3 100644 --- a/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_beanstalk_application.html.markdown @@ -17,7 +17,7 @@ This resource creates an application that has one configuration template named ## Example Usage -``` +```hcl resource "aws_elastic_beanstalk_application" "tftest" { name = "tf-test-name" description = "tf-test-desc" diff --git a/website/source/docs/providers/aws/r/elastic_beanstalk_application_version.html.markdown b/website/source/docs/providers/aws/r/elastic_beanstalk_application_version.html.markdown index be8f39000..5cf76b849 100644 --- a/website/source/docs/providers/aws/r/elastic_beanstalk_application_version.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_beanstalk_application_version.html.markdown @@ -27,7 +27,7 @@ Elastic Beanstalk Application. For example <revision>-<environment>. ## Example Usage -``` +```hcl resource "aws_s3_bucket" "default" { bucket = "tftest.applicationversion.bucket" } diff --git a/website/source/docs/providers/aws/r/elastic_beanstalk_configuration_template.html.markdown b/website/source/docs/providers/aws/r/elastic_beanstalk_configuration_template.html.markdown index 56e38ac6c..37b0bc775 100644 --- a/website/source/docs/providers/aws/r/elastic_beanstalk_configuration_template.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_beanstalk_configuration_template.html.markdown @@ -14,8 +14,7 @@ application with the same configuration settings. ## Example Usage - -``` +```hcl resource "aws_elastic_beanstalk_application" "tftest" { name = "tf-test-name" description = "tf-test-desc" diff --git a/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown b/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown index f6d3d5c0b..ef27d6d84 100644 --- a/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_beanstalk_environment.html.markdown @@ -17,8 +17,7 @@ Environments are often things such as `development`, `integration`, or ## Example Usage - -``` +```hcl resource "aws_elastic_beanstalk_application" "tftest" { name = "tf-test-name" description = "tf-test-desc" @@ -80,7 +79,7 @@ The `setting` and `all_settings` mappings support the following format: ### Example With Options -``` +```hcl resource "aws_elastic_beanstalk_application" "tftest" { name = "tf-test-name" description = "tf-test-desc" diff --git a/website/source/docs/providers/aws/r/elastic_transcoder_pipeline.html.markdown b/website/source/docs/providers/aws/r/elastic_transcoder_pipeline.html.markdown index be272ddd3..2db02982d 100644 --- a/website/source/docs/providers/aws/r/elastic_transcoder_pipeline.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_transcoder_pipeline.html.markdown @@ -12,7 +12,7 @@ Provides an Elastic Transcoder pipeline resource. ## Example Usage -``` +```hcl resource "aws_elastictranscoder_pipeline" "bar" { input_bucket = "${aws_s3_bucket.input_bucket.bucket}" name = "aws_elastictranscoder_pipeline_tf_test_" diff --git a/website/source/docs/providers/aws/r/elastic_transcoder_preset.html.markdown b/website/source/docs/providers/aws/r/elastic_transcoder_preset.html.markdown index 44b53dcde..930dc8fce 100644 --- a/website/source/docs/providers/aws/r/elastic_transcoder_preset.html.markdown +++ b/website/source/docs/providers/aws/r/elastic_transcoder_preset.html.markdown @@ -12,7 +12,7 @@ Provides an Elastic Transcoder preset resource. ## Example Usage -``` +```hcl resource "aws_elastictranscoder_preset" "bar" { container = "mp4" description = "Sample Preset" diff --git a/website/source/docs/providers/aws/r/elasticache_cluster.html.markdown b/website/source/docs/providers/aws/r/elasticache_cluster.html.markdown index 31b31346e..d9c5637a0 100644 --- a/website/source/docs/providers/aws/r/elasticache_cluster.html.markdown +++ b/website/source/docs/providers/aws/r/elasticache_cluster.html.markdown @@ -23,7 +23,7 @@ brief downtime as the server reboots. See the AWS Docs on ## Example Usage -``` +```hcl resource "aws_elasticache_cluster" "bar" { cluster_id = "cluster-example" engine = "memcached" diff --git a/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown b/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown index 9b81b525f..b322aaa12 100644 --- a/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown +++ b/website/source/docs/providers/aws/r/elasticache_parameter_group.html.markdown @@ -10,7 +10,7 @@ Provides an ElastiCache parameter group resource. ## Example Usage -``` +```hcl resource "aws_elasticache_parameter_group" "default" { name = "cache-params" family = "redis2.8" diff --git a/website/source/docs/providers/aws/r/elasticache_replication_group.html.markdown b/website/source/docs/providers/aws/r/elasticache_replication_group.html.markdown index bf35205e8..a14d4e855 100644 --- a/website/source/docs/providers/aws/r/elasticache_replication_group.html.markdown +++ b/website/source/docs/providers/aws/r/elasticache_replication_group.html.markdown @@ -12,7 +12,7 @@ Provides an ElastiCache Replication Group resource. ## Example Usage -``` +```hcl resource "aws_elasticache_replication_group" "bar" { replication_group_id = "tf-rep-group-1" replication_group_description = "test description" diff --git a/website/source/docs/providers/aws/r/elasticache_security_group.html.markdown b/website/source/docs/providers/aws/r/elasticache_security_group.html.markdown index dbd7e4176..08b0c2d2d 100644 --- a/website/source/docs/providers/aws/r/elasticache_security_group.html.markdown +++ b/website/source/docs/providers/aws/r/elasticache_security_group.html.markdown @@ -17,7 +17,7 @@ ElastiCache cluster **outside** of a VPC. If you are using a VPC, see the ## Example Usage -``` +```hcl resource "aws_security_group" "bar" { name = "security-group" } diff --git a/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown b/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown index c083ddeb4..dbcc85980 100644 --- a/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown +++ b/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown @@ -16,7 +16,7 @@ ElastiCache cluster **inside** of a VPC. If you are on EC2 Classic, see the ## Example Usage -``` +```hcl resource "aws_vpc" "foo" { cidr_block = "10.0.0.0/16" diff --git a/website/source/docs/providers/aws/r/elasticsearch_domain.html.markdown b/website/source/docs/providers/aws/r/elasticsearch_domain.html.markdown index 050552795..7ee34d9ef 100644 --- a/website/source/docs/providers/aws/r/elasticsearch_domain.html.markdown +++ b/website/source/docs/providers/aws/r/elasticsearch_domain.html.markdown @@ -11,7 +11,7 @@ description: |- ## Example Usage -``` +```hcl resource "aws_elasticsearch_domain" "es" { domain_name = "tf-test" elasticsearch_version = "1.5" diff --git a/website/source/docs/providers/aws/r/elasticsearch_domain_policy.html.markdown b/website/source/docs/providers/aws/r/elasticsearch_domain_policy.html.markdown index 1bc6a71ab..9925d49c2 100644 --- a/website/source/docs/providers/aws/r/elasticsearch_domain_policy.html.markdown +++ b/website/source/docs/providers/aws/r/elasticsearch_domain_policy.html.markdown @@ -12,7 +12,7 @@ Allows setting policy to an ElasticSearch domain while referencing domain attrib ## Example Usage -``` +```hcl resource "aws_elasticsearch_domain" "example" { domain_name = "tf-test" elasticsearch_version = "2.3" diff --git a/website/source/docs/providers/aws/r/elb.html.markdown b/website/source/docs/providers/aws/r/elb.html.markdown index f682817d0..06b1605d8 100644 --- a/website/source/docs/providers/aws/r/elb.html.markdown +++ b/website/source/docs/providers/aws/r/elb.html.markdown @@ -21,7 +21,7 @@ conflict and will overwrite attachments. ## Example Usage -``` +```hcl # Create a new load balancer resource "aws_elb" "bar" { name = "foobar-terraform-elb" diff --git a/website/source/docs/providers/aws/r/elb_attachment.html.markdown b/website/source/docs/providers/aws/r/elb_attachment.html.markdown index 23e68ed20..6ac433b31 100644 --- a/website/source/docs/providers/aws/r/elb_attachment.html.markdown +++ b/website/source/docs/providers/aws/r/elb_attachment.html.markdown @@ -18,7 +18,7 @@ instances in conjunction with an ELB Attachment resource. Doing so will cause a conflict and will overwrite attachments. ## Example Usage -``` +```hcl # Create a new load balancer attachment resource "aws_elb_attachment" "baz" { elb = "${aws_elb.bar.id}" diff --git a/website/source/docs/providers/aws/r/emr_cluster.html.md b/website/source/docs/providers/aws/r/emr_cluster.html.md index e2c19172d..cca374e58 100644 --- a/website/source/docs/providers/aws/r/emr_cluster.html.md +++ b/website/source/docs/providers/aws/r/emr_cluster.html.md @@ -14,7 +14,7 @@ for more information. ## Example Usage -``` +```hcl resource "aws_emr_cluster" "emr-test-cluster" { name = "emr-test-arn" release_label = "emr-4.6.0" diff --git a/website/source/docs/providers/aws/r/emr_instance_group.html.md b/website/source/docs/providers/aws/r/emr_instance_group.html.md index a98c79f02..a5814af27 100644 --- a/website/source/docs/providers/aws/r/emr_instance_group.html.md +++ b/website/source/docs/providers/aws/r/emr_instance_group.html.md @@ -17,7 +17,7 @@ Terraform will resize any Instance Group to zero when destroying the resource. ## Example Usage -``` +```hcl resource "aws_emr_instance_group" "task" { cluster_id = "${aws_emr_cluster.tf-test-cluster.id}" instance_count = 1 diff --git a/website/source/docs/providers/aws/r/glacier_vault.html.markdown b/website/source/docs/providers/aws/r/glacier_vault.html.markdown index b1ff37b1a..142e40323 100644 --- a/website/source/docs/providers/aws/r/glacier_vault.html.markdown +++ b/website/source/docs/providers/aws/r/glacier_vault.html.markdown @@ -14,7 +14,7 @@ Provides a Glacier Vault Resource. You can refer to the [Glacier Developer Guide ## Example Usage -``` +```hcl resource "aws_sns_topic" "aws_sns_topic" { name = "glacier-sns-topic" } diff --git a/website/source/docs/providers/aws/r/iam_access_key.html.markdown b/website/source/docs/providers/aws/r/iam_access_key.html.markdown index f66b35c71..f778bd1b5 100644 --- a/website/source/docs/providers/aws/r/iam_access_key.html.markdown +++ b/website/source/docs/providers/aws/r/iam_access_key.html.markdown @@ -12,7 +12,7 @@ Provides an IAM access key. This is a set of credentials that allow API requests ## Example Usage -``` +```hcl resource "aws_iam_access_key" "lb" { user = "${aws_iam_user.lb.name}" pgp_key = "keybase:some_person_that_exists" diff --git a/website/source/docs/providers/aws/r/iam_account_alias.html.markdown b/website/source/docs/providers/aws/r/iam_account_alias.html.markdown index 7acd08834..67365a541 100644 --- a/website/source/docs/providers/aws/r/iam_account_alias.html.markdown +++ b/website/source/docs/providers/aws/r/iam_account_alias.html.markdown @@ -14,7 +14,7 @@ Manages the account alias for the AWS Account. ## Example Usage -``` +```hcl resource "aws_iam_account_alias" "alias" { account_alias = "my-account-alias" } diff --git a/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown b/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown index 2957c0245..3cb4631dd 100644 --- a/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown +++ b/website/source/docs/providers/aws/r/iam_account_password_policy.html.markdown @@ -16,7 +16,7 @@ in the official AWS docs. ## Example Usage -``` +```hcl resource "aws_iam_account_password_policy" "strict" { minimum_password_length = 8 require_lowercase_characters = true diff --git a/website/source/docs/providers/aws/r/iam_group.html.markdown b/website/source/docs/providers/aws/r/iam_group.html.markdown index 82c884905..da1486d24 100644 --- a/website/source/docs/providers/aws/r/iam_group.html.markdown +++ b/website/source/docs/providers/aws/r/iam_group.html.markdown @@ -12,7 +12,7 @@ Provides an IAM group. ## Example Usage -``` +```hcl resource "aws_iam_group" "developers" { name = "developers" path = "/users/" diff --git a/website/source/docs/providers/aws/r/iam_group_membership.html.markdown b/website/source/docs/providers/aws/r/iam_group_membership.html.markdown index a9f1d95e7..eb929b82e 100644 --- a/website/source/docs/providers/aws/r/iam_group_membership.html.markdown +++ b/website/source/docs/providers/aws/r/iam_group_membership.html.markdown @@ -14,7 +14,7 @@ more information on managing IAM Groups or IAM Users, see [IAM Groups][1] or ## Example Usage -``` +```hcl resource "aws_iam_group_membership" "team" { name = "tf-testing-group-membership" diff --git a/website/source/docs/providers/aws/r/iam_group_policy.html.markdown b/website/source/docs/providers/aws/r/iam_group_policy.html.markdown index 09b6f963b..4bf62e931 100644 --- a/website/source/docs/providers/aws/r/iam_group_policy.html.markdown +++ b/website/source/docs/providers/aws/r/iam_group_policy.html.markdown @@ -12,7 +12,7 @@ Provides an IAM policy attached to a group. ## Example Usage -``` +```hcl resource "aws_iam_group_policy" "my_developer_policy" { name = "my_developer_policy" group = "${aws_iam_group.my_developers.id}" diff --git a/website/source/docs/providers/aws/r/iam_group_policy_attachment.markdown b/website/source/docs/providers/aws/r/iam_group_policy_attachment.markdown index eb3822dfc..4291269d0 100644 --- a/website/source/docs/providers/aws/r/iam_group_policy_attachment.markdown +++ b/website/source/docs/providers/aws/r/iam_group_policy_attachment.markdown @@ -10,7 +10,7 @@ description: |- Attaches a Managed IAM Policy to an IAM group -``` +```hcl resource "aws_iam_group" "group" { name = "test-group" } diff --git a/website/source/docs/providers/aws/r/iam_instance_profile.html.markdown b/website/source/docs/providers/aws/r/iam_instance_profile.html.markdown index 56182dfdf..24b522b32 100644 --- a/website/source/docs/providers/aws/r/iam_instance_profile.html.markdown +++ b/website/source/docs/providers/aws/r/iam_instance_profile.html.markdown @@ -14,7 +14,7 @@ Provides an IAM instance profile. ## Example Usage -``` +```hcl resource "aws_iam_instance_profile" "test_profile" { name = "test_profile" role = "${aws_iam_role.role.name}" diff --git a/website/source/docs/providers/aws/r/iam_openid_connect_provider.html.markdown b/website/source/docs/providers/aws/r/iam_openid_connect_provider.html.markdown index 2e312e5b9..bdd49c4ef 100644 --- a/website/source/docs/providers/aws/r/iam_openid_connect_provider.html.markdown +++ b/website/source/docs/providers/aws/r/iam_openid_connect_provider.html.markdown @@ -12,7 +12,7 @@ Provides an IAM OpenID Connect provider. ## Example Usage -``` +```hcl resource "aws_iam_openid_connect_provider" "default" { url = "https://accounts.google.com" client_id_list = [ diff --git a/website/source/docs/providers/aws/r/iam_policy.html.markdown b/website/source/docs/providers/aws/r/iam_policy.html.markdown index 3f2fdc7a5..e82c4b6f4 100644 --- a/website/source/docs/providers/aws/r/iam_policy.html.markdown +++ b/website/source/docs/providers/aws/r/iam_policy.html.markdown @@ -10,7 +10,7 @@ description: |- Provides an IAM policy. -``` +```hcl resource "aws_iam_policy" "policy" { name = "test_policy" path = "/" diff --git a/website/source/docs/providers/aws/r/iam_policy_attachment.html.markdown b/website/source/docs/providers/aws/r/iam_policy_attachment.html.markdown index f4034dd6c..86fc9ea49 100644 --- a/website/source/docs/providers/aws/r/iam_policy_attachment.html.markdown +++ b/website/source/docs/providers/aws/r/iam_policy_attachment.html.markdown @@ -12,7 +12,7 @@ Attaches a Managed IAM Policy to user(s), role(s), and/or group(s) ~> **NOTE:** The aws_iam_policy_attachment resource is only meant to be used once for each managed policy. All of the users/roles/groups that a single policy is being attached to should be declared by a single aws_iam_policy_attachment resource. -``` +```hcl resource "aws_iam_user" "user" { name = "test-user" } diff --git a/website/source/docs/providers/aws/r/iam_role.html.markdown b/website/source/docs/providers/aws/r/iam_role.html.markdown index 7abee66b0..ecba4be52 100644 --- a/website/source/docs/providers/aws/r/iam_role.html.markdown +++ b/website/source/docs/providers/aws/r/iam_role.html.markdown @@ -12,7 +12,7 @@ Provides an IAM role. ## Example Usage -``` +```hcl resource "aws_iam_role" "test_role" { name = "test_role" @@ -58,7 +58,7 @@ The following attributes are exported: ## Example of Using Data Source for Assume Role Policy -``` +```hcl data "aws_iam_policy_document" "instance-assume-role-policy" { statement { actions = ["sts:AssumeRole"] diff --git a/website/source/docs/providers/aws/r/iam_role_policy.html.markdown b/website/source/docs/providers/aws/r/iam_role_policy.html.markdown index c05db5e51..540ee0105 100644 --- a/website/source/docs/providers/aws/r/iam_role_policy.html.markdown +++ b/website/source/docs/providers/aws/r/iam_role_policy.html.markdown @@ -12,7 +12,7 @@ Provides an IAM role policy. ## Example Usage -``` +```hcl resource "aws_iam_role_policy" "test_policy" { name = "test_policy" role = "${aws_iam_role.test_role.id}" diff --git a/website/source/docs/providers/aws/r/iam_role_policy_attachment.markdown b/website/source/docs/providers/aws/r/iam_role_policy_attachment.markdown index 64cb9c556..f3d826d81 100644 --- a/website/source/docs/providers/aws/r/iam_role_policy_attachment.markdown +++ b/website/source/docs/providers/aws/r/iam_role_policy_attachment.markdown @@ -10,7 +10,7 @@ description: |- Attaches a Managed IAM Policy to an IAM role -``` +```hcl resource "aws_iam_role" "role" { name = "test-role" } diff --git a/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown b/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown index 97500bfd1..05335aed6 100644 --- a/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown +++ b/website/source/docs/providers/aws/r/iam_saml_provider.html.markdown @@ -12,7 +12,7 @@ Provides an IAM SAML provider. ## Example Usage -``` +```hcl resource "aws_iam_saml_provider" "default" { name = "myprovider" saml_metadata_document = "${file("saml-metadata.xml")}" diff --git a/website/source/docs/providers/aws/r/iam_server_certificate.html.markdown b/website/source/docs/providers/aws/r/iam_server_certificate.html.markdown index 15effdc1e..e49f9623b 100644 --- a/website/source/docs/providers/aws/r/iam_server_certificate.html.markdown +++ b/website/source/docs/providers/aws/r/iam_server_certificate.html.markdown @@ -26,7 +26,7 @@ Certificates][2] in AWS Documentation. **Using certs on file:** -``` +```hcl resource "aws_iam_server_certificate" "test_cert" { name = "some_test_cert" certificate_body = "${file("self-ca-cert.pem")}" @@ -36,7 +36,7 @@ resource "aws_iam_server_certificate" "test_cert" { **Example with cert in-line:** -``` +```hcl resource "aws_iam_server_certificate" "test_cert_alt" { name = "alt_test_cert" @@ -63,8 +63,7 @@ recommended you utilize the `name_prefix` attribute and enable the to create a new, updated `aws_iam_server_certificate` resource and replace it in dependant resources before attempting to destroy the old version. - -``` +```hcl resource "aws_iam_server_certificate" "test_cert" { name_prefix = "example-cert" certificate_body = "${file("self-ca-cert.pem")}" diff --git a/website/source/docs/providers/aws/r/iam_user.html.markdown b/website/source/docs/providers/aws/r/iam_user.html.markdown index 4a7bd77db..2966c4b5f 100644 --- a/website/source/docs/providers/aws/r/iam_user.html.markdown +++ b/website/source/docs/providers/aws/r/iam_user.html.markdown @@ -12,7 +12,7 @@ Provides an IAM user. ## Example Usage -``` +```hcl resource "aws_iam_user" "lb" { name = "loadbalancer" path = "/system/" diff --git a/website/source/docs/providers/aws/r/iam_user_login_profile.html.markdown b/website/source/docs/providers/aws/r/iam_user_login_profile.html.markdown index 4b5cef625..6c52caf63 100644 --- a/website/source/docs/providers/aws/r/iam_user_login_profile.html.markdown +++ b/website/source/docs/providers/aws/r/iam_user_login_profile.html.markdown @@ -14,7 +14,7 @@ obtained from Keybase. ## Example Usage -``` +```hcl resource "aws_iam_user" "u" { name = "auser" path = "/" diff --git a/website/source/docs/providers/aws/r/iam_user_policy.html.markdown b/website/source/docs/providers/aws/r/iam_user_policy.html.markdown index 4f3caaead..4d32daeae 100644 --- a/website/source/docs/providers/aws/r/iam_user_policy.html.markdown +++ b/website/source/docs/providers/aws/r/iam_user_policy.html.markdown @@ -12,7 +12,7 @@ Provides an IAM policy attached to a user. ## Example Usage -``` +```hcl resource "aws_iam_user_policy" "lb_ro" { name = "test" user = "${aws_iam_user.lb.name}" diff --git a/website/source/docs/providers/aws/r/iam_user_policy_attachment.markdown b/website/source/docs/providers/aws/r/iam_user_policy_attachment.markdown index 2415cb832..5e80e898f 100644 --- a/website/source/docs/providers/aws/r/iam_user_policy_attachment.markdown +++ b/website/source/docs/providers/aws/r/iam_user_policy_attachment.markdown @@ -10,7 +10,7 @@ description: |- Attaches a Managed IAM Policy to an IAM user -``` +```hcl resource "aws_iam_user" "user" { name = "test-user" } diff --git a/website/source/docs/providers/aws/r/iam_user_ssh_key.html.markdown b/website/source/docs/providers/aws/r/iam_user_ssh_key.html.markdown index 1e5b4f950..d81a650cc 100644 --- a/website/source/docs/providers/aws/r/iam_user_ssh_key.html.markdown +++ b/website/source/docs/providers/aws/r/iam_user_ssh_key.html.markdown @@ -12,7 +12,7 @@ Uploads an SSH public key and associates it with the specified IAM user. ## Example Usage -``` +```hcl resource "aws_iam_user" "user" { name = "test-user" path = "/" diff --git a/website/source/docs/providers/aws/r/inspector_assessment_target.html.markdown b/website/source/docs/providers/aws/r/inspector_assessment_target.html.markdown index e2e5f343e..5072affa7 100644 --- a/website/source/docs/providers/aws/r/inspector_assessment_target.html.markdown +++ b/website/source/docs/providers/aws/r/inspector_assessment_target.html.markdown @@ -12,7 +12,7 @@ Provides a Inspector assessment target ## Example Usage -``` +```hcl resource "aws_inspector_resource_group" "bar" { tags { Name = "foo" diff --git a/website/source/docs/providers/aws/r/inspector_assessment_template.html.markdown b/website/source/docs/providers/aws/r/inspector_assessment_template.html.markdown index f906e1628..255f17965 100644 --- a/website/source/docs/providers/aws/r/inspector_assessment_template.html.markdown +++ b/website/source/docs/providers/aws/r/inspector_assessment_template.html.markdown @@ -12,7 +12,7 @@ Provides a Inspector assessment template ## Example Usage -``` +```hcl resource "aws_inspector_assessment_template" "foo" { name = "bar template" target_arn = "${aws_inspector_assessment_target.foo.arn}" diff --git a/website/source/docs/providers/aws/r/inspector_resource_group.html.markdown b/website/source/docs/providers/aws/r/inspector_resource_group.html.markdown index 362754d59..d6bc5c96f 100644 --- a/website/source/docs/providers/aws/r/inspector_resource_group.html.markdown +++ b/website/source/docs/providers/aws/r/inspector_resource_group.html.markdown @@ -12,7 +12,7 @@ Provides a Inspector resource group ## Example Usage -``` +```hcl resource "aws_inspector_resource_group" "bar" { tags { Name = "foo" diff --git a/website/source/docs/providers/aws/r/instance.html.markdown b/website/source/docs/providers/aws/r/instance.html.markdown index 33ebdc549..4d8725de2 100644 --- a/website/source/docs/providers/aws/r/instance.html.markdown +++ b/website/source/docs/providers/aws/r/instance.html.markdown @@ -13,7 +13,7 @@ and deleted. Instances also support [provisioning](/docs/provisioners/index.html ## Example Usage -``` +```hcl # Create a new instance of the latest Ubuntu 14.04 on an # t2.micro node with an AWS Tag naming it "HelloWorld" provider "aws" { diff --git a/website/source/docs/providers/aws/r/internet_gateway.html.markdown b/website/source/docs/providers/aws/r/internet_gateway.html.markdown index 5b2a29bf9..339a894e6 100644 --- a/website/source/docs/providers/aws/r/internet_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/internet_gateway.html.markdown @@ -12,7 +12,7 @@ Provides a resource to create a VPC Internet Gateway. ## Example Usage -``` +```hcl resource "aws_internet_gateway" "gw" { vpc_id = "${aws_vpc.main.id}" diff --git a/website/source/docs/providers/aws/r/key_pair.html.markdown b/website/source/docs/providers/aws/r/key_pair.html.markdown index acb49999e..89ad0abfb 100644 --- a/website/source/docs/providers/aws/r/key_pair.html.markdown +++ b/website/source/docs/providers/aws/r/key_pair.html.markdown @@ -20,7 +20,7 @@ When importing an existing key pair the public key material may be in any format ## Example Usage -``` +```hcl resource "aws_key_pair" "deployer" { key_name = "deployer-key" public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQz1x2cEikKDEY0aIj41qgxMCP/iteneqXSIFZBp5vizPvaoIR3Um9xK7PGoW8giupGn+EPuxIA4cDM4vzOqOkiMPhz5XK0whEjkVzTo4+S0puvDZuwIsdiW9mxhJc7tgBNL0cYlWSYVkz4G/fslNfRPW5mYAM49f4fhtxPb5ok4Q2Lg9dPKVHO/Bgeu5woMc7RY0p1ej6D4CKFE6lymSDJpW0YHX/wqE9+cfEauh7xZcG0q9t2ta6F6fmX0agvpFyZo8aFbXeUBr7osSCJNgvavWbM/06niWrOvYX2xwWdhXmXSrbX8ZbabVohBK41 email@example.com" diff --git a/website/source/docs/providers/aws/r/kinesis_firehose_delivery_stream.html.markdown b/website/source/docs/providers/aws/r/kinesis_firehose_delivery_stream.html.markdown index 57dca62e1..c77386d2e 100644 --- a/website/source/docs/providers/aws/r/kinesis_firehose_delivery_stream.html.markdown +++ b/website/source/docs/providers/aws/r/kinesis_firehose_delivery_stream.html.markdown @@ -15,7 +15,8 @@ For more details, see the [Amazon Kinesis Firehose Documentation][1]. ## Example Usage ### S3 Destination -``` + +```hcl resource "aws_s3_bucket" "bucket" { bucket = "tf-test-bucket" acl = "private" @@ -54,7 +55,7 @@ resource "aws_kinesis_firehose_delivery_stream" "test_stream" { ### Redshift Destination -``` +```hcl resource "aws_redshift_cluster" "test_cluster" { cluster_identifier = "tf-redshift-cluster-%d" database_name = "test" @@ -90,7 +91,7 @@ resource "aws_kinesis_firehose_delivery_stream" "test_stream" { ### Elasticsearch Destination -``` +```hcl resource "aws_elasticsearch_domain" "test_cluster" { domain_name = "firehose-es-test" } @@ -175,8 +176,6 @@ The `cloudwatch_logging_options` object supports the following: * `log_group_name` - (Optional) The CloudWatch group name for logging. This value is required if `enabled` is true. * `log_stream_name` - (Optional) The CloudWatch log stream name for logging. This value is required if `enabled` is true. - - ## Attributes Reference * `arn` - The Amazon Resource Name (ARN) specifying the Stream diff --git a/website/source/docs/providers/aws/r/kinesis_stream.html.markdown b/website/source/docs/providers/aws/r/kinesis_stream.html.markdown index c4e316ab5..90f0d81a0 100644 --- a/website/source/docs/providers/aws/r/kinesis_stream.html.markdown +++ b/website/source/docs/providers/aws/r/kinesis_stream.html.markdown @@ -15,7 +15,7 @@ For more details, see the [Amazon Kinesis Documentation][1]. ## Example Usage -``` +```hcl resource "aws_kinesis_stream" "test_stream" { name = "terraform-kinesis-test" shard_count = 1 diff --git a/website/source/docs/providers/aws/r/kms_alias.html.markdown b/website/source/docs/providers/aws/r/kms_alias.html.markdown index 368531032..b92bde5bd 100644 --- a/website/source/docs/providers/aws/r/kms_alias.html.markdown +++ b/website/source/docs/providers/aws/r/kms_alias.html.markdown @@ -14,7 +14,7 @@ the [account limits](http://docs.aws.amazon.com/kms/latest/developerguide/limits ## Example Usage -``` +```hcl resource "aws_kms_key" "a" {} resource "aws_kms_alias" "a" { diff --git a/website/source/docs/providers/aws/r/kms_key.html.markdown b/website/source/docs/providers/aws/r/kms_key.html.markdown index 9a494977f..2a7f014e1 100644 --- a/website/source/docs/providers/aws/r/kms_key.html.markdown +++ b/website/source/docs/providers/aws/r/kms_key.html.markdown @@ -12,7 +12,7 @@ Provides a KMS customer master key. ## Example Usage -``` +```hcl resource "aws_kms_key" "a" { description = "KMS key 1" deletion_window_in_days = 10 diff --git a/website/source/docs/providers/aws/r/lambda_alias.html.markdown b/website/source/docs/providers/aws/r/lambda_alias.html.markdown index de057611d..dac242fa0 100644 --- a/website/source/docs/providers/aws/r/lambda_alias.html.markdown +++ b/website/source/docs/providers/aws/r/lambda_alias.html.markdown @@ -15,7 +15,7 @@ For information about function aliases, see [CreateAlias][2] in the API docs. ## Example Usage -``` +```hcl resource "aws_lambda_alias" "test_alias" { name = "testalias" description = "a sample description" diff --git a/website/source/docs/providers/aws/r/lambda_event_source_mapping.html.markdown b/website/source/docs/providers/aws/r/lambda_event_source_mapping.html.markdown index 7fa4b53f2..e9b89bd97 100644 --- a/website/source/docs/providers/aws/r/lambda_event_source_mapping.html.markdown +++ b/website/source/docs/providers/aws/r/lambda_event_source_mapping.html.markdown @@ -15,7 +15,7 @@ For information about event source mappings, see [CreateEventSourceMapping][2] i ## Example Usage -``` +```hcl resource "aws_lambda_event_source_mapping" "event_source_mapping" { batch_size = 100 event_source_arn = "arn:aws:kinesis:REGION:123456789012:stream/stream_name" diff --git a/website/source/docs/providers/aws/r/lambda_function.html.markdown b/website/source/docs/providers/aws/r/lambda_function.html.markdown index bda53ff2a..69e2003ed 100644 --- a/website/source/docs/providers/aws/r/lambda_function.html.markdown +++ b/website/source/docs/providers/aws/r/lambda_function.html.markdown @@ -14,7 +14,7 @@ For information about Lambda and how to use it, see [What is AWS Lambda?][1] ## Example Usage -``` +```hcl resource "aws_iam_role" "iam_for_lambda" { name = "iam_for_lambda" diff --git a/website/source/docs/providers/aws/r/lambda_permission.html.markdown b/website/source/docs/providers/aws/r/lambda_permission.html.markdown index 3360aef2d..9c962ec29 100644 --- a/website/source/docs/providers/aws/r/lambda_permission.html.markdown +++ b/website/source/docs/providers/aws/r/lambda_permission.html.markdown @@ -13,7 +13,7 @@ Creates a Lambda permission to allow external sources invoking the Lambda functi ## Example Usage -``` +```hcl resource "aws_lambda_permission" "allow_cloudwatch" { statement_id = "AllowExecutionFromCloudWatch" action = "lambda:InvokeFunction" @@ -62,7 +62,7 @@ EOF ## Usage with SNS -``` +```hcl resource "aws_lambda_permission" "with_sns" { statement_id = "AllowExecutionFromSNS" action = "lambda:InvokeFunction" diff --git a/website/source/docs/providers/aws/r/launch_configuration.html.markdown b/website/source/docs/providers/aws/r/launch_configuration.html.markdown index b5d283c38..10c6df8bd 100644 --- a/website/source/docs/providers/aws/r/launch_configuration.html.markdown +++ b/website/source/docs/providers/aws/r/launch_configuration.html.markdown @@ -12,7 +12,7 @@ Provides a resource to create a new launch configuration, used for autoscaling g ## Example Usage -``` +```hcl data "aws_ami" "ubuntu" { most_recent = true @@ -46,7 +46,7 @@ it's recommended to specify `create_before_destroy` in a [lifecycle][2] block. Either omit the Launch Configuration `name` attribute, or specify a partial name with `name_prefix`. Example: -``` +```hcl data "aws_ami" "ubuntu" { most_recent = true @@ -98,7 +98,7 @@ reserve your instances at this price. See the [AWS Spot Instance documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html) for more information or how to launch [Spot Instances][3] with Terraform. -``` +```hcl data "aws_ami" "ubuntu" { most_recent = true diff --git a/website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown b/website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown index e6f49169a..08914033f 100644 --- a/website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown +++ b/website/source/docs/providers/aws/r/lb_cookie_stickiness_policy.html.markdown @@ -12,7 +12,7 @@ Provides a load balancer cookie stickiness policy, which allows an ELB to contro ## Example Usage -``` +```hcl resource "aws_elb" "lb" { name = "test-lb" availability_zones = ["us-east-1a"] diff --git a/website/source/docs/providers/aws/r/lb_ssl_negotiation_policy.html.markdown b/website/source/docs/providers/aws/r/lb_ssl_negotiation_policy.html.markdown index 14c820f1d..92a02179e 100644 --- a/website/source/docs/providers/aws/r/lb_ssl_negotiation_policy.html.markdown +++ b/website/source/docs/providers/aws/r/lb_ssl_negotiation_policy.html.markdown @@ -12,7 +12,7 @@ Provides a load balancer SSL negotiation policy, which allows an ELB to control ## Example Usage -``` +```hcl resource "aws_elb" "lb" { name = "test-lb" availability_zones = ["us-east-1a"] diff --git a/website/source/docs/providers/aws/r/lightsail_domain.html.markdown b/website/source/docs/providers/aws/r/lightsail_domain.html.markdown index e3cf9a87d..3714aedb5 100644 --- a/website/source/docs/providers/aws/r/lightsail_domain.html.markdown +++ b/website/source/docs/providers/aws/r/lightsail_domain.html.markdown @@ -18,7 +18,7 @@ this parameter to manage the DNS records for that domain. ## Example Usage, creating a new domain -``` +```hcl resource "aws_lightsail_domain" "domain_test" { domain_name = "mydomain.com" } diff --git a/website/source/docs/providers/aws/r/lightsail_instance.html.markdown b/website/source/docs/providers/aws/r/lightsail_instance.html.markdown index f86c75dff..522041e9c 100644 --- a/website/source/docs/providers/aws/r/lightsail_instance.html.markdown +++ b/website/source/docs/providers/aws/r/lightsail_instance.html.markdown @@ -16,7 +16,7 @@ Note: Lightsail is currently only supported in `us-east-1` region. ## Example Usage -``` +```hcl # Create a new GitLab Lightsail Instance resource "aws_lightsail_instance" "gitlab_test" { name = "custom gitlab" diff --git a/website/source/docs/providers/aws/r/lightsail_key_pair.html.markdown b/website/source/docs/providers/aws/r/lightsail_key_pair.html.markdown index 5ed4be2f2..51b9408b5 100644 --- a/website/source/docs/providers/aws/r/lightsail_key_pair.html.markdown +++ b/website/source/docs/providers/aws/r/lightsail_key_pair.html.markdown @@ -16,7 +16,7 @@ Lightsail. ## Example Usage, creating a new Key Pair -``` +```hcl # Create a new Lightsail Key Pair resource "aws_lightsail_key_pair" "lg_key_pair" { name = "lg_key_pair" @@ -25,7 +25,7 @@ resource "aws_lightsail_key_pair" "lg_key_pair" { ## Create new Key Pair, encrypting the private key with a PGP Key -``` +```hcl resource "aws_lightsail_key_pair" "lg_key_pair" { name = "lg_key_pair" pgp_key = "keybase:keybaseusername" @@ -34,7 +34,7 @@ resource "aws_lightsail_key_pair" "lg_key_pair" { ## Import an existing public key -``` +```hcl resource "aws_lightsail_key_pair" "lg_key_pair" { name = "importing" public_key = "${file("~/.ssh/id_rsa.pub")}" diff --git a/website/source/docs/providers/aws/r/lightsail_static_ip.html.markdown b/website/source/docs/providers/aws/r/lightsail_static_ip.html.markdown index b3617a432..afc8784a8 100644 --- a/website/source/docs/providers/aws/r/lightsail_static_ip.html.markdown +++ b/website/source/docs/providers/aws/r/lightsail_static_ip.html.markdown @@ -14,7 +14,7 @@ Allocates a static IP address. ## Example Usage -``` +```hcl resource "aws_lightsail_static_ip" "test" { name = "example" } diff --git a/website/source/docs/providers/aws/r/lightsail_static_ip_attachment.html.markdown b/website/source/docs/providers/aws/r/lightsail_static_ip_attachment.html.markdown index 063a3cc83..97f9ca7ba 100644 --- a/website/source/docs/providers/aws/r/lightsail_static_ip_attachment.html.markdown +++ b/website/source/docs/providers/aws/r/lightsail_static_ip_attachment.html.markdown @@ -14,7 +14,7 @@ Provides a static IP address attachment - relationship between a Lightsail stati ## Example Usage -``` +```hcl resource "aws_lightsail_static_ip_attachment" "test" { static_ip_name = "${aws_lightsail_static_ip.test.name}" instance_name = "${aws_lightsail_instance.test.name}" diff --git a/website/source/docs/providers/aws/r/load_balancer_backend_server_policy.html.markdown b/website/source/docs/providers/aws/r/load_balancer_backend_server_policy.html.markdown index f40cfbd34..2b4a8c3fe 100644 --- a/website/source/docs/providers/aws/r/load_balancer_backend_server_policy.html.markdown +++ b/website/source/docs/providers/aws/r/load_balancer_backend_server_policy.html.markdown @@ -13,7 +13,7 @@ Attaches a load balancer policy to an ELB backend server. ## Example Usage -``` +```hcl resource "aws_elb" "wu-tang" { name = "wu-tang" availability_zones = ["us-east-1a"] @@ -65,7 +65,7 @@ resource "aws_load_balancer_backend_server_policy" "wu-tang-backend-auth-policie Where the file `pubkey` in the current directory contains only the _public key_ of the certificate. -``` +```shell cat wu-tang-ca.pem | openssl x509 -pubkey -noout | grep -v '\-\-\-\-' | tr -d '\n' > wu-tang-pubkey ``` diff --git a/website/source/docs/providers/aws/r/load_balancer_listener_policy.html.markdown b/website/source/docs/providers/aws/r/load_balancer_listener_policy.html.markdown index ead1331a3..9ef19e262 100644 --- a/website/source/docs/providers/aws/r/load_balancer_listener_policy.html.markdown +++ b/website/source/docs/providers/aws/r/load_balancer_listener_policy.html.markdown @@ -13,7 +13,7 @@ Attaches a load balancer policy to an ELB Listener. ## Example Usage -``` +```hcl resource "aws_elb" "wu-tang" { name = "wu-tang" availability_zones = ["us-east-1a"] diff --git a/website/source/docs/providers/aws/r/load_balancer_policy.html.markdown b/website/source/docs/providers/aws/r/load_balancer_policy.html.markdown index 3dec164ad..178fcfb41 100644 --- a/website/source/docs/providers/aws/r/load_balancer_policy.html.markdown +++ b/website/source/docs/providers/aws/r/load_balancer_policy.html.markdown @@ -12,7 +12,7 @@ Provides a load balancer policy, which can be attached to an ELB listener or bac ## Example Usage -``` +```hcl resource "aws_elb" "wu-tang" { name = "wu-tang" availability_zones = ["us-east-1a"] @@ -89,7 +89,7 @@ resource "aws_load_balancer_listener_policy" "wu-tang-listener-policies-443" { Where the file `pubkey` in the current directory contains only the _public key_ of the certificate. -``` +```shell cat wu-tang-ca.pem | openssl x509 -pubkey -noout | grep -v '\-\-\-\-' | tr -d '\n' > wu-tang-pubkey ``` diff --git a/website/source/docs/providers/aws/r/main_route_table_assoc.html.markdown b/website/source/docs/providers/aws/r/main_route_table_assoc.html.markdown index de4fb7341..2551ad738 100644 --- a/website/source/docs/providers/aws/r/main_route_table_assoc.html.markdown +++ b/website/source/docs/providers/aws/r/main_route_table_assoc.html.markdown @@ -12,7 +12,7 @@ Provides a resource for managing the main routing table of a VPC. ## Example Usage -``` +```hcl resource "aws_main_route_table_association" "a" { vpc_id = "${aws_vpc.foo.id}" route_table_id = "${aws_route_table.bar.id}" diff --git a/website/source/docs/providers/aws/r/nat_gateway.html.markdown b/website/source/docs/providers/aws/r/nat_gateway.html.markdown index 708352086..b5a397b25 100644 --- a/website/source/docs/providers/aws/r/nat_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/nat_gateway.html.markdown @@ -12,7 +12,7 @@ Provides a resource to create a VPC NAT Gateway. ## Example Usage -``` +```hcl resource "aws_nat_gateway" "gw" { allocation_id = "${aws_eip.nat.id}" subnet_id = "${aws_subnet.public.id}" diff --git a/website/source/docs/providers/aws/r/network_acl.html.markdown b/website/source/docs/providers/aws/r/network_acl.html.markdown index 28143f0cc..adb73dcc6 100644 --- a/website/source/docs/providers/aws/r/network_acl.html.markdown +++ b/website/source/docs/providers/aws/r/network_acl.html.markdown @@ -13,7 +13,7 @@ to your security groups in order to add an additional layer of security to your ## Example Usage -``` +```hcl resource "aws_network_acl" "main" { vpc_id = "${aws_vpc.main.id}" diff --git a/website/source/docs/providers/aws/r/network_acl_rule.html.markdown b/website/source/docs/providers/aws/r/network_acl_rule.html.markdown index 87912249a..fc9805526 100644 --- a/website/source/docs/providers/aws/r/network_acl_rule.html.markdown +++ b/website/source/docs/providers/aws/r/network_acl_rule.html.markdown @@ -12,7 +12,7 @@ Creates an entry (a rule) in a network ACL with the specified rule number. ## Example Usage -``` +```hcl resource "aws_network_acl" "bar" { vpc_id = "${aws_vpc.foo.id}" } diff --git a/website/source/docs/providers/aws/r/network_interface.markdown b/website/source/docs/providers/aws/r/network_interface.markdown index eccd979c1..d177da470 100644 --- a/website/source/docs/providers/aws/r/network_interface.markdown +++ b/website/source/docs/providers/aws/r/network_interface.markdown @@ -12,7 +12,7 @@ Provides an Elastic network interface (ENI) resource. ## Example Usage -``` +```hcl resource "aws_network_interface" "test" { subnet_id = "${aws_subnet.public_a.id}" private_ips = ["10.0.0.50"] diff --git a/website/source/docs/providers/aws/r/opsworks_application.html.markdown b/website/source/docs/providers/aws/r/opsworks_application.html.markdown index 34a3e0157..cbe437d69 100644 --- a/website/source/docs/providers/aws/r/opsworks_application.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_application.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks application resource. ## Example Usage -``` +```hcl resource "aws_opsworks_application" "foo-app" { name = "foobar application" short_name = "foobar" diff --git a/website/source/docs/providers/aws/r/opsworks_custom_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_custom_layer.html.markdown index 13ccfc62a..81427aed5 100644 --- a/website/source/docs/providers/aws/r/opsworks_custom_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_custom_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks custom layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_custom_layer" "custlayer" { name = "My Awesome Custom Layer" short_name = "awesome" @@ -66,7 +66,6 @@ The following attributes are exported: * `id` - The id of the layer. - ## Import OpsWorks Custom Layers can be imported using the `id`, e.g. diff --git a/website/source/docs/providers/aws/r/opsworks_ganglia_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_ganglia_layer.html.markdown index 5b43f515a..a3be106ea 100644 --- a/website/source/docs/providers/aws/r/opsworks_ganglia_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_ganglia_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks Ganglia layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_ganglia_layer" "monitor" { stack_id = "${aws_opsworks_stack.main.id}" password = "foobarbaz" diff --git a/website/source/docs/providers/aws/r/opsworks_haproxy_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_haproxy_layer.html.markdown index 447522ec1..ca0427b8a 100644 --- a/website/source/docs/providers/aws/r/opsworks_haproxy_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_haproxy_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks haproxy layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_haproxy_layer" "lb" { stack_id = "${aws_opsworks_stack.main.id}" stats_password = "foobarbaz" diff --git a/website/source/docs/providers/aws/r/opsworks_instance.html.markdown b/website/source/docs/providers/aws/r/opsworks_instance.html.markdown index cebe99dc7..fa06aff52 100644 --- a/website/source/docs/providers/aws/r/opsworks_instance.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_instance.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks instance resource. ## Example Usage -``` +```hcl resource "aws_opsworks_instance" "my-instance" { stack_id = "${aws_opsworks_stack.my-stack.id}" diff --git a/website/source/docs/providers/aws/r/opsworks_java_app_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_java_app_layer.html.markdown index 7a0dd0cd5..25b680175 100644 --- a/website/source/docs/providers/aws/r/opsworks_java_app_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_java_app_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks Java application layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_java_app_layer" "app" { stack_id = "${aws_opsworks_stack.main.id}" } diff --git a/website/source/docs/providers/aws/r/opsworks_memcached_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_memcached_layer.html.markdown index 6af1bb402..b89172fb5 100644 --- a/website/source/docs/providers/aws/r/opsworks_memcached_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_memcached_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks memcached layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_memcached_layer" "cache" { stack_id = "${aws_opsworks_stack.main.id}" } diff --git a/website/source/docs/providers/aws/r/opsworks_mysql_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_mysql_layer.html.markdown index 6032083ef..df9bad717 100644 --- a/website/source/docs/providers/aws/r/opsworks_mysql_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_mysql_layer.html.markdown @@ -15,7 +15,7 @@ Provides an OpsWorks MySQL layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_mysql_layer" "db" { stack_id = "${aws_opsworks_stack.main.id}" } diff --git a/website/source/docs/providers/aws/r/opsworks_nodejs_app_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_nodejs_app_layer.html.markdown index 94cba6a3b..f5e52ac78 100644 --- a/website/source/docs/providers/aws/r/opsworks_nodejs_app_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_nodejs_app_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks NodeJS application layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_nodejs_app_layer" "app" { stack_id = "${aws_opsworks_stack.main.id}" } diff --git a/website/source/docs/providers/aws/r/opsworks_permission.html.markdown b/website/source/docs/providers/aws/r/opsworks_permission.html.markdown index 2c45c22d1..408e2538f 100644 --- a/website/source/docs/providers/aws/r/opsworks_permission.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_permission.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks permission resource. ## Example Usage -``` +```hcl resource "aws_opsworks_permission" "my_stack_permission" { allow_ssh = true allow_sudo = true diff --git a/website/source/docs/providers/aws/r/opsworks_php_app_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_php_app_layer.html.markdown index 4af6cfb6b..963684f87 100644 --- a/website/source/docs/providers/aws/r/opsworks_php_app_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_php_app_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks PHP application layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_php_app_layer" "app" { stack_id = "${aws_opsworks_stack.main.id}" } diff --git a/website/source/docs/providers/aws/r/opsworks_rails_app_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_rails_app_layer.html.markdown index 82a945ccd..84cd69d6c 100644 --- a/website/source/docs/providers/aws/r/opsworks_rails_app_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_rails_app_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks Ruby on Rails application layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_rails_app_layer" "app" { stack_id = "${aws_opsworks_stack.main.id}" } diff --git a/website/source/docs/providers/aws/r/opsworks_rds_db_instance.html.markdown b/website/source/docs/providers/aws/r/opsworks_rds_db_instance.html.markdown index 542dd956f..496d253c0 100644 --- a/website/source/docs/providers/aws/r/opsworks_rds_db_instance.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_rds_db_instance.html.markdown @@ -15,7 +15,7 @@ Provides an OpsWorks RDS DB Instance resource. ## Example Usage -``` +```hcl resource "aws_opsworks_rds_db_instance" "my_instance" { stack_id = "${aws_opsworks_stack.my_stack.id}" rds_db_instance_arn = "${aws_db_instance.my_instance.arn}" diff --git a/website/source/docs/providers/aws/r/opsworks_stack.html.markdown b/website/source/docs/providers/aws/r/opsworks_stack.html.markdown index 1e37b05ec..f9cceee7f 100644 --- a/website/source/docs/providers/aws/r/opsworks_stack.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_stack.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks stack resource. ## Example Usage -``` +```hcl resource "aws_opsworks_stack" "main" { name = "awesome-stack" region = "us-west-1" @@ -78,7 +78,6 @@ The following attributes are exported: * `id` - The id of the stack. - ## Import OpsWorks stacks can be imported using the `id`, e.g. diff --git a/website/source/docs/providers/aws/r/opsworks_static_web_layer.html.markdown b/website/source/docs/providers/aws/r/opsworks_static_web_layer.html.markdown index 930af7b18..967f45fa3 100644 --- a/website/source/docs/providers/aws/r/opsworks_static_web_layer.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_static_web_layer.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks static web server layer resource. ## Example Usage -``` +```hcl resource "aws_opsworks_static_web_layer" "web" { stack_id = "${aws_opsworks_stack.main.id}" } diff --git a/website/source/docs/providers/aws/r/opsworks_user_profile.html.markdown b/website/source/docs/providers/aws/r/opsworks_user_profile.html.markdown index e89541b26..b1f26c70f 100644 --- a/website/source/docs/providers/aws/r/opsworks_user_profile.html.markdown +++ b/website/source/docs/providers/aws/r/opsworks_user_profile.html.markdown @@ -12,7 +12,7 @@ Provides an OpsWorks User Profile resource. ## Example Usage -``` +```hcl resource "aws_opsworks_user_profile" "my_profile" { user_arn = "${aws_iam_user.user.arn}" ssh_username = "my_user" diff --git a/website/source/docs/providers/aws/r/placement_group.html.markdown b/website/source/docs/providers/aws/r/placement_group.html.markdown index 584478805..7c5249544 100644 --- a/website/source/docs/providers/aws/r/placement_group.html.markdown +++ b/website/source/docs/providers/aws/r/placement_group.html.markdown @@ -13,7 +13,7 @@ in [AWS Docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-grou ## Example Usage -``` +```hcl resource "aws_placement_group" "web" { name = "hunky-dory-pg" strategy = "cluster" diff --git a/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown b/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown index 994221089..dbd46ba5b 100644 --- a/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown +++ b/website/source/docs/providers/aws/r/proxy_protocol_policy.html.markdown @@ -12,7 +12,7 @@ Provides a proxy protocol policy, which allows an ELB to carry a client connecti ## Example Usage -``` +```hcl resource "aws_elb" "lb" { name = "test-lb" availability_zones = ["us-east-1a"] diff --git a/website/source/docs/providers/aws/r/rds_cluster.html.markdown b/website/source/docs/providers/aws/r/rds_cluster.html.markdown index 6139824f1..d042fcbbb 100644 --- a/website/source/docs/providers/aws/r/rds_cluster.html.markdown +++ b/website/source/docs/providers/aws/r/rds_cluster.html.markdown @@ -31,7 +31,7 @@ for more information. ## Example Usage -``` +```hcl resource "aws_rds_cluster" "default" { cluster_identifier = "aurora-cluster-demo" availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"] @@ -111,7 +111,6 @@ load-balanced across replicas * `replication_source_identifier` - ARN of the source DB cluster if this DB cluster is created as a Read Replica. [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Replication.html - [2]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html [3]: /docs/providers/aws/r/rds_cluster_instance.html [4]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html diff --git a/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown b/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown index 782e8c161..dcb3a2a66 100644 --- a/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown +++ b/website/source/docs/providers/aws/r/rds_cluster_instance.html.markdown @@ -23,7 +23,7 @@ For more information on Amazon Aurora, see [Aurora on Amazon RDS][2] in the Amaz ## Example Usage -``` +```hcl resource "aws_rds_cluster_instance" "cluster_instances" { count = 2 identifier = "aurora-cluster-demo-${count.index}" diff --git a/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown b/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown index c2fa63d78..b52a4dd08 100644 --- a/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown +++ b/website/source/docs/providers/aws/r/rds_cluster_parameter_group.markdown @@ -10,7 +10,7 @@ Provides an RDS DB cluster parameter group resource. ## Example Usage -``` +```hcl resource "aws_rds_cluster_parameter_group" "default" { name = "rds-cluster-pg" family = "aurora5.6" diff --git a/website/source/docs/providers/aws/r/redshift_cluster.html.markdown b/website/source/docs/providers/aws/r/redshift_cluster.html.markdown index 99d6ac66e..bcee8cdba 100644 --- a/website/source/docs/providers/aws/r/redshift_cluster.html.markdown +++ b/website/source/docs/providers/aws/r/redshift_cluster.html.markdown @@ -13,7 +13,7 @@ Provides a Redshift Cluster Resource. ## Example Usage -``` +```hcl resource "aws_redshift_cluster" "default" { cluster_identifier = "tf-redshift-cluster" database_name = "mydb" diff --git a/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown b/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown index 559e26f17..65472b540 100644 --- a/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown +++ b/website/source/docs/providers/aws/r/redshift_parameter_group.html.markdown @@ -10,7 +10,7 @@ Provides a Redshift Cluster parameter group resource. ## Example Usage -``` +```hcl resource "aws_redshift_parameter_group" "bar" { name = "parameter-group-test-terraform" family = "redshift-1.0" diff --git a/website/source/docs/providers/aws/r/redshift_security_group.html.markdown b/website/source/docs/providers/aws/r/redshift_security_group.html.markdown index 94924d1b8..4d6dc0367 100644 --- a/website/source/docs/providers/aws/r/redshift_security_group.html.markdown +++ b/website/source/docs/providers/aws/r/redshift_security_group.html.markdown @@ -12,7 +12,7 @@ Creates a new Amazon Redshift security group. You use security groups to control ## Example Usage -``` +```hcl resource "aws_redshift_security_group" "default" { name = "redshift-sg" diff --git a/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown b/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown index db454ae08..b5deadfd9 100644 --- a/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown +++ b/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown @@ -12,7 +12,7 @@ Creates a new Amazon Redshift subnet group. You must provide a list of one or mo ## Example Usage -``` +```hcl resource "aws_vpc" "foo" { cidr_block = "10.1.0.0/16" } diff --git a/website/source/docs/providers/aws/r/route.html.markdown b/website/source/docs/providers/aws/r/route.html.markdown index b6589298f..dafe52651 100644 --- a/website/source/docs/providers/aws/r/route.html.markdown +++ b/website/source/docs/providers/aws/r/route.html.markdown @@ -18,7 +18,7 @@ a conflict of rule settings and will overwrite rules. ## Example usage: -``` +```hcl resource "aws_route" "r" { route_table_id = "rtb-4fbb3ac4" destination_cidr_block = "10.0.1.0/22" @@ -29,7 +29,7 @@ resource "aws_route" "r" { ##Example IPv6 Usage: -``` +```hcl resource "aws_vpc" "vpc" { cidr_block = "10.1.0.0/16" assign_generated_ipv6_cidr_block = true diff --git a/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown b/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown index 6efda1363..12f665a5c 100644 --- a/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown +++ b/website/source/docs/providers/aws/r/route53_delegation_set.html.markdown @@ -12,7 +12,7 @@ Provides a [Route53 Delegation Set](https://docs.aws.amazon.com/Route53/latest/A ## Example Usage -``` +```hcl resource "aws_route53_delegation_set" "main" { reference_name = "DynDNS" } diff --git a/website/source/docs/providers/aws/r/route53_health_check.html.markdown b/website/source/docs/providers/aws/r/route53_health_check.html.markdown index 1d9aa73b0..815174759 100644 --- a/website/source/docs/providers/aws/r/route53_health_check.html.markdown +++ b/website/source/docs/providers/aws/r/route53_health_check.html.markdown @@ -11,7 +11,7 @@ Provides a Route53 health check. ## Example Usage -``` +```hcl resource "aws_route53_health_check" "child1" { fqdn = "foobar.terraform.com" port = 80 @@ -38,7 +38,7 @@ resource "aws_route53_health_check" "foo" { ## CloudWatch Alarm Example -``` +```hcl resource "aws_cloudwatch_metric_alarm" "foobar" { alarm_name = "terraform-test-foobar5" comparison_operator = "GreaterThanOrEqualToThreshold" diff --git a/website/source/docs/providers/aws/r/route53_record.html.markdown b/website/source/docs/providers/aws/r/route53_record.html.markdown index 9d5a35db9..ad6a7c725 100644 --- a/website/source/docs/providers/aws/r/route53_record.html.markdown +++ b/website/source/docs/providers/aws/r/route53_record.html.markdown @@ -14,7 +14,7 @@ Provides a Route53 record resource. ### Simple routing policy -``` +```hcl resource "aws_route53_record" "www" { zone_id = "${aws_route53_zone.primary.zone_id}" name = "www.example.com" @@ -27,7 +27,7 @@ resource "aws_route53_record" "www" { ### Weighted routing policy Other routing policies are configured similarly. See [AWS Route53 Developer Guide](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html) for details. -``` +```hcl resource "aws_route53_record" "www-dev" { zone_id = "${aws_route53_zone.primary.zone_id}" name = "www" @@ -64,7 +64,7 @@ to understand differences between alias and non-alias records. TTL for all alias records is [60 seconds](https://aws.amazon.com/route53/faqs/#dns_failover_do_i_need_to_adjust), you cannot change this, therefore `ttl` has to be omitted in alias records. -``` +```hcl resource "aws_elb" "main" { name = "foobar-terraform-elb" availability_zones = ["us-east-1c"] diff --git a/website/source/docs/providers/aws/r/route53_zone.html.markdown b/website/source/docs/providers/aws/r/route53_zone.html.markdown index 2e776f654..bab319f2e 100644 --- a/website/source/docs/providers/aws/r/route53_zone.html.markdown +++ b/website/source/docs/providers/aws/r/route53_zone.html.markdown @@ -12,7 +12,7 @@ Provides a Route53 Hosted Zone resource. ## Example Usage -``` +```hcl resource "aws_route53_zone" "primary" { name = "example.com" } @@ -22,7 +22,7 @@ For use in subdomains, note that you need to create a `aws_route53_record` of type `NS` as well as the subdomain zone. -``` +```hcl resource "aws_route53_zone" "main" { name = "example.com" } diff --git a/website/source/docs/providers/aws/r/route53_zone_association.html.markdown b/website/source/docs/providers/aws/r/route53_zone_association.html.markdown index 82efc89a9..9136e3d2a 100644 --- a/website/source/docs/providers/aws/r/route53_zone_association.html.markdown +++ b/website/source/docs/providers/aws/r/route53_zone_association.html.markdown @@ -12,7 +12,7 @@ Provides a Route53 private Hosted Zone to VPC association resource. ## Example Usage -``` +```hcl resource "aws_vpc" "primary" { cidr_block = "10.6.0.0/16" enable_dns_hostnames = true diff --git a/website/source/docs/providers/aws/r/route_table.html.markdown b/website/source/docs/providers/aws/r/route_table.html.markdown index f8e79d6fa..88ddc17ed 100644 --- a/website/source/docs/providers/aws/r/route_table.html.markdown +++ b/website/source/docs/providers/aws/r/route_table.html.markdown @@ -18,7 +18,7 @@ a conflict of rule settings and will overwrite rules. ## Example usage with tags: -``` +```hcl resource "aws_route_table" "r" { vpc_id = "${aws_vpc.default.id}" diff --git a/website/source/docs/providers/aws/r/route_table_association.html.markdown b/website/source/docs/providers/aws/r/route_table_association.html.markdown index 5c95bf7b2..149b6c54e 100644 --- a/website/source/docs/providers/aws/r/route_table_association.html.markdown +++ b/website/source/docs/providers/aws/r/route_table_association.html.markdown @@ -12,7 +12,7 @@ Provides a resource to create an association between a subnet and routing table. ## Example Usage -``` +```hcl resource "aws_route_table_association" "a" { subnet_id = "${aws_subnet.foo.id}" route_table_id = "${aws_route_table.bar.id}" diff --git a/website/source/docs/providers/aws/r/s3_bucket.html.markdown b/website/source/docs/providers/aws/r/s3_bucket.html.markdown index 07bff02c4..f91cebe65 100644 --- a/website/source/docs/providers/aws/r/s3_bucket.html.markdown +++ b/website/source/docs/providers/aws/r/s3_bucket.html.markdown @@ -14,7 +14,7 @@ Provides a S3 bucket resource. ### Private Bucket w/ Tags -``` +```hcl resource "aws_s3_bucket" "b" { bucket = "my_tf_test_bucket" acl = "private" @@ -28,7 +28,7 @@ resource "aws_s3_bucket" "b" { ### Static Website Hosting -``` +```hcl resource "aws_s3_bucket" "b" { bucket = "s3-website-test.hashicorp.com" acl = "public-read" @@ -54,7 +54,7 @@ EOF ### Using CORS -``` +```hcl resource "aws_s3_bucket" "b" { bucket = "s3-website-test.hashicorp.com" acl = "public-read" @@ -71,7 +71,7 @@ resource "aws_s3_bucket" "b" { ### Using versioning -``` +```hcl resource "aws_s3_bucket" "b" { bucket = "my_tf_test_bucket" acl = "private" @@ -84,7 +84,7 @@ resource "aws_s3_bucket" "b" { ### Enable Logging -``` +```hcl resource "aws_s3_bucket" "log_bucket" { bucket = "my_tf_log_bucket" acl = "log-delivery-write" @@ -103,7 +103,7 @@ resource "aws_s3_bucket" "b" { ### Using object lifecycle -``` +```hcl resource "aws_s3_bucket" "bucket" { bucket = "my-bucket" acl = "private" @@ -170,7 +170,7 @@ resource "aws_s3_bucket" "versioning_bucket" { ### Using replication configuration -``` +```hcl provider "aws" { alias = "west" region = "eu-west-1" diff --git a/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown b/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown index 3198f5602..a3c4826b2 100644 --- a/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown +++ b/website/source/docs/providers/aws/r/s3_bucket_notification.html.markdown @@ -14,7 +14,7 @@ Provides a S3 bucket notification resource. ### Add notification configuration to SNS Topic -``` +```hcl resource "aws_sns_topic" "topic" { name = "s3-event-notification-topic" @@ -51,7 +51,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { ### Add notification configuration to SQS Queue -``` +```hcl resource "aws_sqs_queue" "queue" { name = "s3-event-notification-queue" @@ -90,7 +90,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { ### Add notification configuration to Lambda Function -``` +```hcl resource "aws_iam_role" "iam_for_lambda" { name = "iam_for_lambda" @@ -143,7 +143,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { ### Trigger multiple Lambda functions -``` +```hcl resource "aws_iam_role" "iam_for_lambda" { name = "iam_for_lambda" @@ -218,7 +218,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { ### Add multiple notification configurations to SQS Queue -``` +```hcl resource "aws_sqs_queue" "queue" { name = "s3-event-notification-queue" @@ -265,7 +265,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { For Terraform's [JSON syntax](https://www.terraform.io/docs/configuration/syntax.html), use an array instead of defining the `queue` key twice. -``` +```json { "bucket": "${aws_s3_bucket.bucket.id}", "queue": [ diff --git a/website/source/docs/providers/aws/r/s3_bucket_object.html.markdown b/website/source/docs/providers/aws/r/s3_bucket_object.html.markdown index 322faa943..1432668ea 100644 --- a/website/source/docs/providers/aws/r/s3_bucket_object.html.markdown +++ b/website/source/docs/providers/aws/r/s3_bucket_object.html.markdown @@ -14,7 +14,7 @@ Provides a S3 bucket object resource. ### Uploading a file to a bucket -``` +```hcl resource "aws_s3_bucket_object" "object" { bucket = "your_bucket_name" key = "new_object_key" @@ -25,7 +25,7 @@ resource "aws_s3_bucket_object" "object" { ### Encrypting with KMS Key -``` +```hcl resource "aws_kms_key" "examplekms" { description = "KMS key 1" deletion_window_in_days = 7 @@ -46,7 +46,7 @@ resource "aws_s3_bucket_object" "examplebucket_object" { ### Server Side Encryption with S3 Default Master Key -``` +```hcl resource "aws_s3_bucket" "examplebucket" { bucket = "examplebuckettftest" acl = "private" diff --git a/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown b/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown index b45fadeaf..250ac0439 100644 --- a/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown +++ b/website/source/docs/providers/aws/r/s3_bucket_policy.html.markdown @@ -14,7 +14,7 @@ Attaches a policy to an S3 bucket resource. ### Using versioning -``` +```hcl resource "aws_s3_bucket" "b" { # Arguments } diff --git a/website/source/docs/providers/aws/r/security_group.html.markdown b/website/source/docs/providers/aws/r/security_group.html.markdown index 7404de588..3f8597372 100644 --- a/website/source/docs/providers/aws/r/security_group.html.markdown +++ b/website/source/docs/providers/aws/r/security_group.html.markdown @@ -21,7 +21,7 @@ a conflict of rule settings and will overwrite rules. Basic usage -``` +```hcl resource "aws_security_group" "allow_all" { name = "allow_all" description = "Allow all inbound traffic" diff --git a/website/source/docs/providers/aws/r/security_group_rule.html.markdown b/website/source/docs/providers/aws/r/security_group_rule.html.markdown index 56deb5b47..bdf70c4b6 100644 --- a/website/source/docs/providers/aws/r/security_group_rule.html.markdown +++ b/website/source/docs/providers/aws/r/security_group_rule.html.markdown @@ -22,7 +22,7 @@ a conflict of rule settings and will overwrite rules. Basic usage -``` +```hcl resource "aws_security_group_rule" "allow_all" { type = "ingress" from_port = 0 @@ -60,7 +60,7 @@ Prefix list IDs are manged by AWS internally. Prefix list IDs are associated with a prefix list name, or service name, that is linked to a specific region. Prefix list IDs are exported on VPC Endpoints, so you can use this format: -``` +```hcl resource "aws_security_group_rule" "allow_all" { type = "egress" to_port = 0 diff --git a/website/source/docs/providers/aws/r/ses_active_receipt_rule_set.html.markdown b/website/source/docs/providers/aws/r/ses_active_receipt_rule_set.html.markdown index 49ce6dded..0a581443a 100644 --- a/website/source/docs/providers/aws/r/ses_active_receipt_rule_set.html.markdown +++ b/website/source/docs/providers/aws/r/ses_active_receipt_rule_set.html.markdown @@ -12,7 +12,7 @@ Provides a resource to designate the active SES receipt rule set ## Example Usage -``` +```hcl resource "aws_ses_active_receipt_rule_set" "main" { rule_set_name = "primary-rules" } diff --git a/website/source/docs/providers/aws/r/ses_configuration_set.markdown b/website/source/docs/providers/aws/r/ses_configuration_set.markdown index 7c289aed1..9ea3b374e 100644 --- a/website/source/docs/providers/aws/r/ses_configuration_set.markdown +++ b/website/source/docs/providers/aws/r/ses_configuration_set.markdown @@ -12,7 +12,7 @@ Provides an SES configuration set resource ## Example Usage -``` +```hcl resource "aws_ses_configuration_set" "test" { name = "some-configuration-set-test" } diff --git a/website/source/docs/providers/aws/r/ses_domain_identity.html.markdown b/website/source/docs/providers/aws/r/ses_domain_identity.html.markdown index e005160bf..fc8dfc174 100644 --- a/website/source/docs/providers/aws/r/ses_domain_identity.html.markdown +++ b/website/source/docs/providers/aws/r/ses_domain_identity.html.markdown @@ -30,7 +30,7 @@ The following attributes are exported: ## Example Usage -``` +```hcl resource "aws_ses_domain_identity" "example" { domain = "example.com" } diff --git a/website/source/docs/providers/aws/r/ses_event_destination.markdown b/website/source/docs/providers/aws/r/ses_event_destination.markdown index 5bb004f9e..794953bc5 100644 --- a/website/source/docs/providers/aws/r/ses_event_destination.markdown +++ b/website/source/docs/providers/aws/r/ses_event_destination.markdown @@ -12,7 +12,7 @@ Provides an SES event destination ## Example Usage -``` +```hcl # Add a firehose event destination to a configuration set resource "aws_ses_event_destination" "kinesis" { name = "event-destination-kinesis" diff --git a/website/source/docs/providers/aws/r/ses_receipt_filter.html.markdown b/website/source/docs/providers/aws/r/ses_receipt_filter.html.markdown index eca8cbc57..d45f710dc 100644 --- a/website/source/docs/providers/aws/r/ses_receipt_filter.html.markdown +++ b/website/source/docs/providers/aws/r/ses_receipt_filter.html.markdown @@ -12,7 +12,7 @@ Provides an SES receipt filter resource ## Example Usage -``` +```hcl resource "aws_ses_receipt_filter" "filter" { name = "block-spammer" cidr = "10.10.10.10" diff --git a/website/source/docs/providers/aws/r/ses_receipt_rule.html.markdown b/website/source/docs/providers/aws/r/ses_receipt_rule.html.markdown index ff6cbb83b..d08bf81ab 100644 --- a/website/source/docs/providers/aws/r/ses_receipt_rule.html.markdown +++ b/website/source/docs/providers/aws/r/ses_receipt_rule.html.markdown @@ -12,7 +12,7 @@ Provides an SES receipt rule resource ## Example Usage -``` +```hcl # Add a header to the email and store it in S3 resource "aws_ses_receipt_rule" "store" { name = "store" diff --git a/website/source/docs/providers/aws/r/ses_receipt_rule_set.html.markdown b/website/source/docs/providers/aws/r/ses_receipt_rule_set.html.markdown index 40da25d04..f8ec307ed 100644 --- a/website/source/docs/providers/aws/r/ses_receipt_rule_set.html.markdown +++ b/website/source/docs/providers/aws/r/ses_receipt_rule_set.html.markdown @@ -12,7 +12,7 @@ Provides an SES receipt rule set resource ## Example Usage -``` +```hcl resource "aws_ses_receipt_rule_set" "main" { rule_set_name = "primary-rules" } diff --git a/website/source/docs/providers/aws/r/sfn_activity.html.markdown b/website/source/docs/providers/aws/r/sfn_activity.html.markdown index a5a52d517..e6e9407ec 100644 --- a/website/source/docs/providers/aws/r/sfn_activity.html.markdown +++ b/website/source/docs/providers/aws/r/sfn_activity.html.markdown @@ -12,7 +12,7 @@ Provides a Step Function Activity resource ## Example Usage -``` +```hcl resource "aws_sfn_activity" "sfn_activity" { name = "my-activity" } diff --git a/website/source/docs/providers/aws/r/sfn_state_machine.html.markdown b/website/source/docs/providers/aws/r/sfn_state_machine.html.markdown index 71c31a31f..e9bd9efbd 100644 --- a/website/source/docs/providers/aws/r/sfn_state_machine.html.markdown +++ b/website/source/docs/providers/aws/r/sfn_state_machine.html.markdown @@ -12,7 +12,7 @@ Provides a Step Function State Machine resource ## Example Usage -``` +```hcl # ... resource "aws_sfn_state_machine" "sfn_state_machine" { diff --git a/website/source/docs/providers/aws/r/simpledb_domain.html.markdown b/website/source/docs/providers/aws/r/simpledb_domain.html.markdown index 2b031ec6e..2b78d32b7 100644 --- a/website/source/docs/providers/aws/r/simpledb_domain.html.markdown +++ b/website/source/docs/providers/aws/r/simpledb_domain.html.markdown @@ -12,7 +12,7 @@ Provides a SimpleDB domain resource ## Example Usage -``` +```hcl resource "aws_simpledb_domain" "users" { name = "users" } diff --git a/website/source/docs/providers/aws/r/snapshot_create_volume_permission.html.markdown b/website/source/docs/providers/aws/r/snapshot_create_volume_permission.html.markdown index 6d571725a..247184039 100644 --- a/website/source/docs/providers/aws/r/snapshot_create_volume_permission.html.markdown +++ b/website/source/docs/providers/aws/r/snapshot_create_volume_permission.html.markdown @@ -12,7 +12,7 @@ Adds permission to create volumes off of a given EBS Snapshot. ## Example Usage -``` +```hcl resource "aws_snapshot_create_volume_permission" "example_perm" { snapshot_id = "${aws_ebs_snapshot.example_snapshot.id}" account_id = "12345678" diff --git a/website/source/docs/providers/aws/r/sns_topic.html.markdown b/website/source/docs/providers/aws/r/sns_topic.html.markdown index 13ce6bc9b..c4f1218ef 100644 --- a/website/source/docs/providers/aws/r/sns_topic.html.markdown +++ b/website/source/docs/providers/aws/r/sns_topic.html.markdown @@ -12,7 +12,7 @@ Provides an SNS topic resource ## Example Usage -``` +```hcl resource "aws_sns_topic" "user_updates" { name = "user-updates-topic" } diff --git a/website/source/docs/providers/aws/r/sns_topic_policy.html.markdown b/website/source/docs/providers/aws/r/sns_topic_policy.html.markdown index a21914384..e95312b2e 100644 --- a/website/source/docs/providers/aws/r/sns_topic_policy.html.markdown +++ b/website/source/docs/providers/aws/r/sns_topic_policy.html.markdown @@ -12,7 +12,7 @@ Provides an SNS topic policy resource ## Example Usage -``` +```hcl resource "aws_sns_topic" "test" { name = "my-topic-with-policy" } diff --git a/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown b/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown index b01084186..cba8d5015 100644 --- a/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown +++ b/website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown @@ -25,7 +25,7 @@ probably be SQS queues. You can directly supply a topic and ARN by hand in the `topic_arn` property along with the queue ARN: -``` +```hcl resource "aws_sns_topic_subscription" "user_updates_sqs_target" { topic_arn = "arn:aws:sns:us-west-2:432981146916:user-updates-topic" protocol = "sqs" @@ -35,7 +35,7 @@ resource "aws_sns_topic_subscription" "user_updates_sqs_target" { Alternatively you can use the ARN properties of a managed SNS topic and SQS queue: -``` +```hcl resource "aws_sns_topic" "user_updates" { name = "user-updates-topic" } @@ -50,9 +50,10 @@ resource "aws_sns_topic_subscription" "user_updates_sqs_target" { endpoint = "${aws_sqs_queue.user_updates_queue.arn}" } ``` + You can subscribe SNS topics to SQS queues in different Amazon accounts and regions: -``` +```hcl /* # # Variables @@ -272,7 +273,6 @@ Endpoints have different format requirements according to the protocol that is c * SQS endpoints come in the form of the SQS queue's ARN (not the URL of the queue) e.g: `arn:aws:sqs:us-west-2:432981146916:terraform-queue-too` * Application endpoints are also the endpoint ARN for the mobile app and device. - ## Attributes Reference The following attributes are exported: @@ -283,7 +283,6 @@ The following attributes are exported: * `endpoint` - The full endpoint to send data to (SQS ARN, HTTP(S) URL, Application ARN, SMS number, etc.) * `arn` - The ARN of the subscription stored as a more user-friendly property - ## Import SNS Topic Subscriptions can be imported using the `subscription arn`, e.g. diff --git a/website/source/docs/providers/aws/r/spot_datafeed_subscription.html.markdown b/website/source/docs/providers/aws/r/spot_datafeed_subscription.html.markdown index ea1def561..e1cac15d9 100644 --- a/website/source/docs/providers/aws/r/spot_datafeed_subscription.html.markdown +++ b/website/source/docs/providers/aws/r/spot_datafeed_subscription.html.markdown @@ -15,7 +15,7 @@ This data feed is sent to an Amazon S3 bucket that you specify when you subscrib ## Example Usage -``` +```hcl resource "aws_s3_bucket" "default" { bucket = "tf-spot-datafeed" } @@ -30,7 +30,6 @@ resource "aws_spot_datafeed_subscription" "default" { * `bucket` - (Required) The Amazon S3 bucket in which to store the Spot instance data feed. * `prefix` - (Optional) Path of folder inside bucket to place spot pricing data. - ## Import A Spot Datafeed Subscription can be imported using the word `spot-datafeed-subscription`, e.g. diff --git a/website/source/docs/providers/aws/r/spot_fleet_request.html.markdown b/website/source/docs/providers/aws/r/spot_fleet_request.html.markdown index b4ac14a99..b96e5c847 100644 --- a/website/source/docs/providers/aws/r/spot_fleet_request.html.markdown +++ b/website/source/docs/providers/aws/r/spot_fleet_request.html.markdown @@ -13,7 +13,7 @@ instances to be requested on the Spot market. ## Example Usage -``` +```hcl # Request a Spot fleet resource "aws_spot_fleet_request" "cheap_compute" { iam_fleet_role = "arn:aws:iam::12345678:role/spot-fleet" @@ -48,7 +48,7 @@ resource "aws_spot_fleet_request" "cheap_compute" { ~> **NOTE:** Terraform does not support the functionality where multiple `subnet_id` or `availability_zone` parameters can be specified in the same launch configuration block. If you want to specify multiple values, then separate launch configuration blocks should be used: -``` +```hcl resource "aws_spot_fleet_request" "foo" { iam_fleet_role = "arn:aws:iam::12345678:role/spot-fleet" spot_price = "0.005" @@ -109,7 +109,6 @@ lowestPrice. (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours. - ## Attributes Reference The following attributes are exported: diff --git a/website/source/docs/providers/aws/r/spot_instance_request.html.markdown b/website/source/docs/providers/aws/r/spot_instance_request.html.markdown index 36020b61e..89e4fb824 100644 --- a/website/source/docs/providers/aws/r/spot_instance_request.html.markdown +++ b/website/source/docs/providers/aws/r/spot_instance_request.html.markdown @@ -30,7 +30,7 @@ for more information. ## Example Usage -``` +```hcl # Request a spot instance at $0.03 resource "aws_spot_instance_request" "cheap_worker" { ami = "ami-1234" diff --git a/website/source/docs/providers/aws/r/sqs_queue.html.markdown b/website/source/docs/providers/aws/r/sqs_queue.html.markdown index 38e42ef81..fbe384927 100644 --- a/website/source/docs/providers/aws/r/sqs_queue.html.markdown +++ b/website/source/docs/providers/aws/r/sqs_queue.html.markdown @@ -10,7 +10,7 @@ description: |- ## Example Usage -``` +```hcl resource "aws_sqs_queue" "terraform_queue" { name = "terraform-example-queue" delay_seconds = 90 @@ -23,7 +23,7 @@ resource "aws_sqs_queue" "terraform_queue" { ## FIFO queue -``` +```hcl resource "aws_sqs_queue" "terraform_queue" { name = "terraform-example-queue.fifo" fifo_queue = true diff --git a/website/source/docs/providers/aws/r/sqs_queue_policy.html.markdown b/website/source/docs/providers/aws/r/sqs_queue_policy.html.markdown index 4d96e00e0..ecb0ccb28 100644 --- a/website/source/docs/providers/aws/r/sqs_queue_policy.html.markdown +++ b/website/source/docs/providers/aws/r/sqs_queue_policy.html.markdown @@ -13,7 +13,7 @@ while referencing ARN of the queue within the policy. ## Example Usage -``` +```hcl resource "aws_sqs_queue" "q" { name = "examplequeue" } diff --git a/website/source/docs/providers/aws/r/ssm_activation.html.markdown b/website/source/docs/providers/aws/r/ssm_activation.html.markdown index 8dea12cce..8cba6236e 100644 --- a/website/source/docs/providers/aws/r/ssm_activation.html.markdown +++ b/website/source/docs/providers/aws/r/ssm_activation.html.markdown @@ -12,7 +12,7 @@ Registers an on-premises server or virtual machine with Amazon EC2 so that it ca ## Example Usage -``` +```hcl resource "aws_iam_role" "test_role" { name = "test_role" diff --git a/website/source/docs/providers/aws/r/ssm_association.html.markdown b/website/source/docs/providers/aws/r/ssm_association.html.markdown index ea57ecb9d..ae29a5325 100644 --- a/website/source/docs/providers/aws/r/ssm_association.html.markdown +++ b/website/source/docs/providers/aws/r/ssm_association.html.markdown @@ -12,7 +12,7 @@ Assosciates an SSM Document to an instance. ## Example Usage -``` +```hcl resource "aws_security_group" "tf_test_foo" { name = "tf_test_foo" description = "foo" diff --git a/website/source/docs/providers/aws/r/ssm_document.html.markdown b/website/source/docs/providers/aws/r/ssm_document.html.markdown index 369aff886..a8aace8d3 100644 --- a/website/source/docs/providers/aws/r/ssm_document.html.markdown +++ b/website/source/docs/providers/aws/r/ssm_document.html.markdown @@ -16,7 +16,7 @@ schema version you must recreate the resource. ## Example Usage -``` +```hcl resource "aws_ssm_document" "foo" { name = "test_document" document_type = "Command" diff --git a/website/source/docs/providers/aws/r/subnet.html.markdown b/website/source/docs/providers/aws/r/subnet.html.markdown index f7457d8ee..8fb8aebff 100644 --- a/website/source/docs/providers/aws/r/subnet.html.markdown +++ b/website/source/docs/providers/aws/r/subnet.html.markdown @@ -12,7 +12,7 @@ Provides an VPC subnet resource. ## Example Usage -``` +```hcl resource "aws_subnet" "main" { vpc_id = "${aws_vpc.main.id}" cidr_block = "10.0.1.0/24" @@ -49,8 +49,6 @@ The following attributes are exported: * `cidr_block` - The CIDR block for the subnet. * `vpc_id` - The VPC ID. - - ## Import Subnets can be imported using the `subnet id`, e.g. diff --git a/website/source/docs/providers/aws/r/volume_attachment.html.markdown b/website/source/docs/providers/aws/r/volume_attachment.html.markdown index aad0935f5..75cc933c9 100644 --- a/website/source/docs/providers/aws/r/volume_attachment.html.markdown +++ b/website/source/docs/providers/aws/r/volume_attachment.html.markdown @@ -15,7 +15,7 @@ detach volumes from AWS Instances. ## Example Usage -``` +```hcl resource "aws_volume_attachment" "ebs_att" { device_name = "/dev/sdh" volume_id = "${aws_ebs_volume.example.id}" diff --git a/website/source/docs/providers/aws/r/vpc.html.markdown b/website/source/docs/providers/aws/r/vpc.html.markdown index a05b57d35..115da9d23 100644 --- a/website/source/docs/providers/aws/r/vpc.html.markdown +++ b/website/source/docs/providers/aws/r/vpc.html.markdown @@ -14,7 +14,7 @@ Provides an VPC resource. Basic usage: -``` +```hcl resource "aws_vpc" "main" { cidr_block = "10.0.0.0/16" } @@ -22,7 +22,7 @@ resource "aws_vpc" "main" { Basic usage with tags: -``` +```hcl resource "aws_vpc" "main" { cidr_block = "10.0.0.0/16" instance_tenancy = "dedicated" diff --git a/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown b/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown index 7f5914a63..34bf01cc8 100644 --- a/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown @@ -14,7 +14,7 @@ Provides a VPC DHCP Options resource. Basic usage: -``` +```hcl resource "aws_vpc_dhcp_options" "dns_resolver" { domain_name_servers = ["8.8.8.8", "8.8.4.4"] } @@ -22,7 +22,7 @@ resource "aws_vpc_dhcp_options" "dns_resolver" { Full usage: -``` +```hcl resource "aws_vpc_dhcp_options" "foo" { domain_name = "service.consul" domain_name_servers = ["127.0.0.1", "10.0.0.2"] diff --git a/website/source/docs/providers/aws/r/vpc_dhcp_options_association.html.markdown b/website/source/docs/providers/aws/r/vpc_dhcp_options_association.html.markdown index e2839dfdc..2c55ecf10 100644 --- a/website/source/docs/providers/aws/r/vpc_dhcp_options_association.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_dhcp_options_association.html.markdown @@ -12,7 +12,7 @@ Provides a VPC DHCP Options Association resource. ## Example Usage -``` +```hcl resource "aws_vpc_dhcp_options_association" "dns_resolver" { vpc_id = "${aws_vpc.foo.id}" dhcp_options_id = "${aws_vpc_dhcp_options.foo.id}" diff --git a/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown b/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown index a35cdedc8..4195ecc45 100644 --- a/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown @@ -21,7 +21,7 @@ and will overwrite the association. Basic usage: -``` +```hcl resource "aws_vpc_endpoint" "private-s3" { vpc_id = "${aws_vpc.main.id}" service_name = "com.amazonaws.us-west-2.s3" @@ -45,7 +45,6 @@ The following attributes are exported: * `prefix_list_id` - The prefix list ID of the exposed service. * `cidr_blocks` - The list of CIDR blocks for the exposed service. - ## Import VPC Endpoints can be imported using the `vpc endpoint id`, e.g. diff --git a/website/source/docs/providers/aws/r/vpc_endpoint_route_table_association.html.markdown b/website/source/docs/providers/aws/r/vpc_endpoint_route_table_association.html.markdown index 5f518fbee..61975fe62 100644 --- a/website/source/docs/providers/aws/r/vpc_endpoint_route_table_association.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_endpoint_route_table_association.html.markdown @@ -20,7 +20,7 @@ Table Association resource. Doing so will cause a conflict of associations and w Basic usage: -``` +```hcl resource "aws_vpc_endpoint_route_table_association" "private_s3" { vpc_endpoint_id = "${aws_vpc_endpoint.s3.id}" route_table_id = "${aws_route_table.private.id}" diff --git a/website/source/docs/providers/aws/r/vpc_peering.html.markdown b/website/source/docs/providers/aws/r/vpc_peering.html.markdown index 3f8539192..cc7de2630 100644 --- a/website/source/docs/providers/aws/r/vpc_peering.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_peering.html.markdown @@ -16,7 +16,7 @@ use the `aws_vpc_peering_connection_accepter` resource to manage the accepter's ## Example Usage -``` +```hcl resource "aws_vpc_peering_connection" "foo" { peer_owner_id = "${var.peer_owner_id}" peer_vpc_id = "${aws_vpc.bar.id}" @@ -26,7 +26,7 @@ resource "aws_vpc_peering_connection" "foo" { Basic usage with connection options: -``` +```hcl resource "aws_vpc_peering_connection" "foo" { peer_owner_id = "${var.peer_owner_id}" peer_vpc_id = "${aws_vpc.bar.id}" @@ -44,7 +44,7 @@ resource "aws_vpc_peering_connection" "foo" { Basic usage with tags: -``` +```hcl resource "aws_vpc_peering_connection" "foo" { peer_owner_id = "${var.peer_owner_id}" peer_vpc_id = "${aws_vpc.bar.id}" diff --git a/website/source/docs/providers/aws/r/vpc_peering_accepter.html.markdown b/website/source/docs/providers/aws/r/vpc_peering_accepter.html.markdown index bfa780fe4..c330226b3 100644 --- a/website/source/docs/providers/aws/r/vpc_peering_accepter.html.markdown +++ b/website/source/docs/providers/aws/r/vpc_peering_accepter.html.markdown @@ -18,7 +18,7 @@ connection into management. ## Example Usage -``` +```hcl provider "aws" { // Requester's credentials. } diff --git a/website/source/docs/providers/aws/r/vpn_connection.html.markdown b/website/source/docs/providers/aws/r/vpn_connection.html.markdown index 25ebe2f0e..d2776b24c 100644 --- a/website/source/docs/providers/aws/r/vpn_connection.html.markdown +++ b/website/source/docs/providers/aws/r/vpn_connection.html.markdown @@ -13,7 +13,7 @@ Provides a VPN connection connected to a VPC. These objects can be connected to ## Example Usage -``` +```hcl resource "aws_vpc" "vpc" { cidr_block = "10.0.0.0/16" } diff --git a/website/source/docs/providers/aws/r/vpn_connection_route.html.markdown b/website/source/docs/providers/aws/r/vpn_connection_route.html.markdown index 7dd3fb68c..9d64e9eb0 100644 --- a/website/source/docs/providers/aws/r/vpn_connection_route.html.markdown +++ b/website/source/docs/providers/aws/r/vpn_connection_route.html.markdown @@ -12,7 +12,7 @@ Provides a static route between a VPN connection and a customer gateway. ## Example Usage -``` +```hcl resource "aws_vpc" "vpc" { cidr_block = "10.0.0.0/16" } diff --git a/website/source/docs/providers/aws/r/vpn_gateway.html.markdown b/website/source/docs/providers/aws/r/vpn_gateway.html.markdown index b805c3527..1ec90e744 100644 --- a/website/source/docs/providers/aws/r/vpn_gateway.html.markdown +++ b/website/source/docs/providers/aws/r/vpn_gateway.html.markdown @@ -12,7 +12,7 @@ Provides a resource to create a VPC VPN Gateway. ## Example Usage -``` +```hcl resource "aws_vpn_gateway" "vpn_gw" { vpc_id = "${aws_vpc.main.id}" diff --git a/website/source/docs/providers/aws/r/vpn_gateway_attachment.html.markdown b/website/source/docs/providers/aws/r/vpn_gateway_attachment.html.markdown index 2ae597dfa..6271598ff 100644 --- a/website/source/docs/providers/aws/r/vpn_gateway_attachment.html.markdown +++ b/website/source/docs/providers/aws/r/vpn_gateway_attachment.html.markdown @@ -17,7 +17,7 @@ to an existing VPC by setting the [`vpc_id`](vpn_gateway.html#vpc_id) attribute ## Example Usage -``` +```hcl resource "aws_vpc" "network" { cidr_block = "10.0.0.0/16" } diff --git a/website/source/docs/providers/aws/r/waf_byte_match_set.html.markdown b/website/source/docs/providers/aws/r/waf_byte_match_set.html.markdown index 090f72c6c..0ccf628be 100644 --- a/website/source/docs/providers/aws/r/waf_byte_match_set.html.markdown +++ b/website/source/docs/providers/aws/r/waf_byte_match_set.html.markdown @@ -12,7 +12,7 @@ Provides a WAF Byte Match Set Resource ## Example Usage -``` +```hcl resource "aws_waf_byte_match_set" "byte_set" { name = "tf_waf_byte_match_set" diff --git a/website/source/docs/providers/aws/r/waf_ipset.html.markdown b/website/source/docs/providers/aws/r/waf_ipset.html.markdown index 0fc43b395..042d224e9 100644 --- a/website/source/docs/providers/aws/r/waf_ipset.html.markdown +++ b/website/source/docs/providers/aws/r/waf_ipset.html.markdown @@ -12,7 +12,7 @@ Provides a WAF IPSet Resource ## Example Usage -``` +```hcl resource "aws_waf_ipset" "ipset" { name = "tfIPSet" diff --git a/website/source/docs/providers/aws/r/waf_rule.html.markdown b/website/source/docs/providers/aws/r/waf_rule.html.markdown index 7df474cf9..0db2fa07c 100644 --- a/website/source/docs/providers/aws/r/waf_rule.html.markdown +++ b/website/source/docs/providers/aws/r/waf_rule.html.markdown @@ -12,7 +12,7 @@ Provides a WAF Rule Resource ## Example Usage -``` +```hcl resource "aws_waf_ipset" "ipset" { name = "tfIPSet" diff --git a/website/source/docs/providers/aws/r/waf_size_constraint_set.html.markdown b/website/source/docs/providers/aws/r/waf_size_constraint_set.html.markdown index 3e8c353fd..5b8635e2b 100644 --- a/website/source/docs/providers/aws/r/waf_size_constraint_set.html.markdown +++ b/website/source/docs/providers/aws/r/waf_size_constraint_set.html.markdown @@ -12,7 +12,7 @@ Provides a WAF Size Constraint Set Resource ## Example Usage -``` +```hcl resource "aws_waf_size_constraint_set" "size_constraint_set" { name = "tfsize_constraints" diff --git a/website/source/docs/providers/aws/r/waf_sql_injection_match_set.html.markdown b/website/source/docs/providers/aws/r/waf_sql_injection_match_set.html.markdown index 632528d15..9d8fab08e 100644 --- a/website/source/docs/providers/aws/r/waf_sql_injection_match_set.html.markdown +++ b/website/source/docs/providers/aws/r/waf_sql_injection_match_set.html.markdown @@ -12,7 +12,7 @@ Provides a WAF SQL Injection Match Set Resource ## Example Usage -``` +```hcl resource "aws_waf_sql_injection_match_set" "sql_injection_match_set" { name = "tf-sql_injection_match_set" diff --git a/website/source/docs/providers/aws/r/waf_web_acl.html.markdown b/website/source/docs/providers/aws/r/waf_web_acl.html.markdown index 0f0d5777f..801189657 100644 --- a/website/source/docs/providers/aws/r/waf_web_acl.html.markdown +++ b/website/source/docs/providers/aws/r/waf_web_acl.html.markdown @@ -12,7 +12,7 @@ Provides a WAF Web ACL Resource ## Example Usage -``` +```hcl resource "aws_waf_ipset" "ipset" { name = "tfIPSet" diff --git a/website/source/docs/providers/aws/r/waf_xss_match_set.html.markdown b/website/source/docs/providers/aws/r/waf_xss_match_set.html.markdown index 8a0aff0e8..29fd7ab99 100644 --- a/website/source/docs/providers/aws/r/waf_xss_match_set.html.markdown +++ b/website/source/docs/providers/aws/r/waf_xss_match_set.html.markdown @@ -12,7 +12,7 @@ Provides a WAF XSS Match Set Resource ## Example Usage -``` +```hcl resource "aws_waf_xss_match_set" "xss_match_set" { name = "xss_match_set" diff --git a/website/source/docs/providers/azure/index.html.markdown b/website/source/docs/providers/azure/index.html.markdown index 6abb5f5a2..a4ae0c66d 100644 --- a/website/source/docs/providers/azure/index.html.markdown +++ b/website/source/docs/providers/azure/index.html.markdown @@ -19,7 +19,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Azure Provider provider "azure" { publish_settings = "${file("credentials.publishsettings")}" diff --git a/website/source/docs/providers/azure/r/affinity_group.html.markdown b/website/source/docs/providers/azure/r/affinity_group.html.markdown index db5ff1461..f09a60a53 100644 --- a/website/source/docs/providers/azure/r/affinity_group.html.markdown +++ b/website/source/docs/providers/azure/r/affinity_group.html.markdown @@ -12,7 +12,7 @@ Creates a new affinity group on Azure. ## Example Usage -``` +```hcl resource "azure_affinity_group" "terraform-main-group" { name = "terraform-group" location = "North Europe" diff --git a/website/source/docs/providers/azure/r/data_disk.html.markdown b/website/source/docs/providers/azure/r/data_disk.html.markdown index dca4ca770..484fd6ece 100644 --- a/website/source/docs/providers/azure/r/data_disk.html.markdown +++ b/website/source/docs/providers/azure/r/data_disk.html.markdown @@ -13,7 +13,7 @@ it will attach that disk. Otherwise it will create and attach a new empty disk. ## Example Usage -``` +```hcl resource "azure_data_disk" "data" { lun = 0 size = 10 diff --git a/website/source/docs/providers/azure/r/dns_server.html.markdown b/website/source/docs/providers/azure/r/dns_server.html.markdown index 6394146f1..311c2f59e 100644 --- a/website/source/docs/providers/azure/r/dns_server.html.markdown +++ b/website/source/docs/providers/azure/r/dns_server.html.markdown @@ -12,7 +12,7 @@ Creates a new DNS server definition to be used internally in Azure. ## Example Usage -``` +```hcl resource "azure_dns_server" "google-dns" { name = "google" dns_address = "8.8.8.8" diff --git a/website/source/docs/providers/azure/r/hosted_service.html.markdown b/website/source/docs/providers/azure/r/hosted_service.html.markdown index 9319ebaff..f16783dcc 100644 --- a/website/source/docs/providers/azure/r/hosted_service.html.markdown +++ b/website/source/docs/providers/azure/r/hosted_service.html.markdown @@ -12,7 +12,7 @@ Creates a new hosted service on Azure with its own .cloudapp.net domain. ## Example Usage -``` +```hcl resource "azure_hosted_service" "terraform-service" { name = "terraform-service" location = "North Europe" diff --git a/website/source/docs/providers/azure/r/instance.html.markdown b/website/source/docs/providers/azure/r/instance.html.markdown index 7da3beac6..75e8c20e9 100644 --- a/website/source/docs/providers/azure/r/instance.html.markdown +++ b/website/source/docs/providers/azure/r/instance.html.markdown @@ -13,7 +13,7 @@ machine in the deployment based on the specified configuration. ## Example Usage -``` +```hcl resource "azure_hosted_service" "terraform-service" { name = "terraform-service" location = "North Europe" diff --git a/website/source/docs/providers/azure/r/local_network_connection.html.markdown b/website/source/docs/providers/azure/r/local_network_connection.html.markdown index 85e7d5609..d9b3d3ef6 100644 --- a/website/source/docs/providers/azure/r/local_network_connection.html.markdown +++ b/website/source/docs/providers/azure/r/local_network_connection.html.markdown @@ -12,7 +12,7 @@ Defines a new connection to a remote network through a VPN tunnel. ## Example Usage -``` +```hcl resource "azure_local_network_connection" "localnet" { name = "terraform-local-network-connection" vpn_gateway_address = "45.12.189.2" diff --git a/website/source/docs/providers/azure/r/security_group.html.markdown b/website/source/docs/providers/azure/r/security_group.html.markdown index 8024c9273..31a4ea278 100644 --- a/website/source/docs/providers/azure/r/security_group.html.markdown +++ b/website/source/docs/providers/azure/r/security_group.html.markdown @@ -13,7 +13,7 @@ subscription. ## Example Usage -``` +```hcl resource "azure_security_group" "web" { name = "webservers" location = "West US" diff --git a/website/source/docs/providers/azure/r/security_group_rule.html.markdown b/website/source/docs/providers/azure/r/security_group_rule.html.markdown index c6981fd99..3b01cb092 100644 --- a/website/source/docs/providers/azure/r/security_group_rule.html.markdown +++ b/website/source/docs/providers/azure/r/security_group_rule.html.markdown @@ -24,7 +24,7 @@ updating the state with regards to them. ## Example Usage -``` +```hcl resource "azure_security_group" "web" { # ... } diff --git a/website/source/docs/providers/azure/r/sql_database_server.html.markdown b/website/source/docs/providers/azure/r/sql_database_server.html.markdown index 04afdaee5..baeb32ba4 100644 --- a/website/source/docs/providers/azure/r/sql_database_server.html.markdown +++ b/website/source/docs/providers/azure/r/sql_database_server.html.markdown @@ -12,7 +12,7 @@ Allocates a new SQL Database Server on Azure. ## Example Usage -``` +```hcl resource "azure_sql_database_server" "sql-serv" { name = "" location = "West US" diff --git a/website/source/docs/providers/azure/r/sql_database_server_firewall_rule.html.markdown b/website/source/docs/providers/azure/r/sql_database_server_firewall_rule.html.markdown index 490689c30..b5a02b3b2 100644 --- a/website/source/docs/providers/azure/r/sql_database_server_firewall_rule.html.markdown +++ b/website/source/docs/providers/azure/r/sql_database_server_firewall_rule.html.markdown @@ -12,7 +12,7 @@ Defines a new Firewall Rule to be applied across the given Database Servers. ## Example Usage -``` +```hcl resource "azure_sql_database_server" "sql-serv1" { # ... } diff --git a/website/source/docs/providers/azure/r/sql_database_service.html.markdown b/website/source/docs/providers/azure/r/sql_database_service.html.markdown index c074f7a80..f8cdf9687 100644 --- a/website/source/docs/providers/azure/r/sql_database_service.html.markdown +++ b/website/source/docs/providers/azure/r/sql_database_service.html.markdown @@ -12,7 +12,7 @@ Creates a new SQL database service on an Azure database server. ## Example Usage -``` +```hcl resource "azure_sql_database_service" "sql-server" { name = "terraform-testing-db-renamed" database_server_name = "flibberflabber" diff --git a/website/source/docs/providers/azure/r/storage_blob.html.markdown b/website/source/docs/providers/azure/r/storage_blob.html.markdown index 7778fc762..6f1d56aaf 100644 --- a/website/source/docs/providers/azure/r/storage_blob.html.markdown +++ b/website/source/docs/providers/azure/r/storage_blob.html.markdown @@ -12,7 +12,7 @@ Creates a new storage blob within a given storage container on Azure. ## Example Usage -``` +```hcl resource "azure_storage_blob" "foo" { name = "tftesting-blob" storage_service_name = "tfstorserv" @@ -20,7 +20,7 @@ resource "azure_storage_blob" "foo" { type = "PageBlob" size = 1024 } -```` +``` ## Argument Reference diff --git a/website/source/docs/providers/azure/r/storage_container.html.markdown b/website/source/docs/providers/azure/r/storage_container.html.markdown index c286b6a0e..3b09fd322 100644 --- a/website/source/docs/providers/azure/r/storage_container.html.markdown +++ b/website/source/docs/providers/azure/r/storage_container.html.markdown @@ -12,13 +12,13 @@ Creates a new storage container within a given storage service on Azure. ## Example Usage -``` +```hcl resource "azure_storage_container" "stor-cont" { name = "terraform-storage-container" container_access_type = "blob" storage_service_name = "tfstorserv" } -```` +``` ## Argument Reference diff --git a/website/source/docs/providers/azure/r/storage_queue.html.markdown b/website/source/docs/providers/azure/r/storage_queue.html.markdown index 2f8b4a65a..117d766a9 100644 --- a/website/source/docs/providers/azure/r/storage_queue.html.markdown +++ b/website/source/docs/providers/azure/r/storage_queue.html.markdown @@ -12,12 +12,12 @@ Creates a new storage queue within a given storage service on Azure. ## Example Usage -``` +```hcl resource "azure_storage_queue" "stor-queue" { name = "terraform-storage-queue" storage_service_name = "tfstorserv" } -```` +``` ## Argument Reference diff --git a/website/source/docs/providers/azure/r/storage_service.html.markdown b/website/source/docs/providers/azure/r/storage_service.html.markdown index 006805f46..619f45755 100644 --- a/website/source/docs/providers/azure/r/storage_service.html.markdown +++ b/website/source/docs/providers/azure/r/storage_service.html.markdown @@ -12,14 +12,14 @@ Creates a new storage service on Azure in which storage containers may be create ## Example Usage -``` +```hcl resource "azure_storage_service" "tfstor" { name = "tfstor" location = "West US" description = "Made by Terraform." account_type = "Standard_LRS" } -```` +``` ## Argument Reference diff --git a/website/source/docs/providers/azure/r/virtual_network.html.markdown b/website/source/docs/providers/azure/r/virtual_network.html.markdown index 0711ab9b1..092e013de 100644 --- a/website/source/docs/providers/azure/r/virtual_network.html.markdown +++ b/website/source/docs/providers/azure/r/virtual_network.html.markdown @@ -13,7 +13,7 @@ optionally be configured with a security group to be associated with the subnet. ## Example Usage -``` +```hcl resource "azure_virtual_network" "default" { name = "test-network" address_space = ["10.1.2.0/24"] diff --git a/website/source/docs/providers/azurerm/d/client_config.html.markdown b/website/source/docs/providers/azurerm/d/client_config.html.markdown index ef20b0d42..3bee99162 100644 --- a/website/source/docs/providers/azurerm/d/client_config.html.markdown +++ b/website/source/docs/providers/azurerm/d/client_config.html.markdown @@ -13,7 +13,7 @@ provider. ## Example Usage -``` +```hcl data "azurerm_client_config" "current" {} output "account_id" { diff --git a/website/source/docs/providers/azurerm/index.html.markdown b/website/source/docs/providers/azurerm/index.html.markdown index 1a79ea519..4fc423d8c 100644 --- a/website/source/docs/providers/azurerm/index.html.markdown +++ b/website/source/docs/providers/azurerm/index.html.markdown @@ -20,7 +20,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Microsoft Azure Provider provider "azurerm" { subscription_id = "..." diff --git a/website/source/docs/providers/azurerm/r/availability_set.html.markdown b/website/source/docs/providers/azurerm/r/availability_set.html.markdown index 446444db7..8dd5cd412 100644 --- a/website/source/docs/providers/azurerm/r/availability_set.html.markdown +++ b/website/source/docs/providers/azurerm/r/availability_set.html.markdown @@ -12,7 +12,7 @@ Create an availability set for virtual machines. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/cdn_endpoint.html.markdown b/website/source/docs/providers/azurerm/r/cdn_endpoint.html.markdown index 43e63cf4c..0c64e24ec 100644 --- a/website/source/docs/providers/azurerm/r/cdn_endpoint.html.markdown +++ b/website/source/docs/providers/azurerm/r/cdn_endpoint.html.markdown @@ -12,7 +12,7 @@ A CDN Endpoint is the entity within a CDN Profile containing configuration infor ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/cdn_profile.html.markdown b/website/source/docs/providers/azurerm/r/cdn_profile.html.markdown index 875e795d3..cc2990589 100644 --- a/website/source/docs/providers/azurerm/r/cdn_profile.html.markdown +++ b/website/source/docs/providers/azurerm/r/cdn_profile.html.markdown @@ -12,7 +12,7 @@ Create a CDN Profile to create a collection of CDN Endpoints. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" @@ -57,6 +57,6 @@ The following attributes are exported: CDN Profiles can be imported using the `resource id`, e.g. -``` +```hcl terraform import azurerm_cdn_profile.test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1 ``` diff --git a/website/source/docs/providers/azurerm/r/container_registry.html.markdown b/website/source/docs/providers/azurerm/r/container_registry.html.markdown index df79b7255..d72132f1e 100644 --- a/website/source/docs/providers/azurerm/r/container_registry.html.markdown +++ b/website/source/docs/providers/azurerm/r/container_registry.html.markdown @@ -15,7 +15,7 @@ Create as an Azure Container Registry instance. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/container_service.html.markdown b/website/source/docs/providers/azurerm/r/container_service.html.markdown index 5319ce143..b06052f7d 100644 --- a/website/source/docs/providers/azurerm/r/container_service.html.markdown +++ b/website/source/docs/providers/azurerm/r/container_service.html.markdown @@ -14,7 +14,8 @@ Creates an Azure Container Service Instance [Read more about sensitive data in state](/docs/state/sensitive-data.html). ## Example Usage (DCOS) -``` + +```hcl resource "azurerm_resource_group" "test" { name = "acctestRG1" location = "West US" @@ -59,7 +60,7 @@ resource "azurerm_container_service" "test" { ## Example Usage (Kubernetes) -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestRG1" location = "West US" @@ -108,7 +109,8 @@ resource "azurerm_container_service" "test" { ``` ## Example Usage (Swarm) -``` + +```hcl resource "azurerm_resource_group" "test" { name = "acctestRG1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/dns_a_record.html.markdown b/website/source/docs/providers/azurerm/r/dns_a_record.html.markdown index 317d16709..f1743607d 100644 --- a/website/source/docs/providers/azurerm/r/dns_a_record.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_a_record.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS A Records within Azure DNS. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" @@ -31,6 +31,7 @@ resource "azurerm_dns_a_record" "test" { records = ["10.0.180.17"] } ``` + ## Argument Reference The following arguments are supported: diff --git a/website/source/docs/providers/azurerm/r/dns_aaaa_record.html.markdown b/website/source/docs/providers/azurerm/r/dns_aaaa_record.html.markdown index 021cae113..773bc0ef7 100644 --- a/website/source/docs/providers/azurerm/r/dns_aaaa_record.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_aaaa_record.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS AAAA Records within Azure DNS. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" @@ -31,6 +31,7 @@ resource "azurerm_dns_aaaa_record" "test" { records = ["2607:f8b0:4009:1803::1005"] } ``` + ## Argument Reference The following arguments are supported: diff --git a/website/source/docs/providers/azurerm/r/dns_cname_record.html.markdown b/website/source/docs/providers/azurerm/r/dns_cname_record.html.markdown index 10832dff2..5e00c2e6b 100644 --- a/website/source/docs/providers/azurerm/r/dns_cname_record.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_cname_record.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS CNAME Records within Azure DNS. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" @@ -31,6 +31,7 @@ resource "azurerm_dns_cname_record" "test" { record = "contoso.com" } ``` + ## Argument Reference The following arguments are supported: diff --git a/website/source/docs/providers/azurerm/r/dns_mx_record.html.markdown b/website/source/docs/providers/azurerm/r/dns_mx_record.html.markdown index 20981ea98..197759215 100644 --- a/website/source/docs/providers/azurerm/r/dns_mx_record.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_mx_record.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS MX Records within Azure DNS. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/dns_ns_record.html.markdown b/website/source/docs/providers/azurerm/r/dns_ns_record.html.markdown index 72c630f62..99d6fd946 100644 --- a/website/source/docs/providers/azurerm/r/dns_ns_record.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_ns_record.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS NS Records within Azure DNS. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/dns_srv_record.html.markdown b/website/source/docs/providers/azurerm/r/dns_srv_record.html.markdown index 521686684..34b5719b2 100644 --- a/website/source/docs/providers/azurerm/r/dns_srv_record.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_srv_record.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS SRV Records within Azure DNS. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/dns_txt_record.html.markdown b/website/source/docs/providers/azurerm/r/dns_txt_record.html.markdown index 6177a5448..14299be53 100644 --- a/website/source/docs/providers/azurerm/r/dns_txt_record.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_txt_record.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS TXT Records within Azure DNS. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/dns_zone.html.markdown b/website/source/docs/providers/azurerm/r/dns_zone.html.markdown index 71d555dca..7a896c8aa 100644 --- a/website/source/docs/providers/azurerm/r/dns_zone.html.markdown +++ b/website/source/docs/providers/azurerm/r/dns_zone.html.markdown @@ -12,7 +12,7 @@ Enables you to manage DNS zones within Azure DNS. These zones are hosted on Azur ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/eventhub.html.markdown b/website/source/docs/providers/azurerm/r/eventhub.html.markdown index 12b00ab06..8392fee44 100644 --- a/website/source/docs/providers/azurerm/r/eventhub.html.markdown +++ b/website/source/docs/providers/azurerm/r/eventhub.html.markdown @@ -12,7 +12,7 @@ Creates a new Event Hub as a nested resource within a Event Hub Namespace. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/eventhub_authorization_rule.html.markdown b/website/source/docs/providers/azurerm/r/eventhub_authorization_rule.html.markdown index 7b025170c..08faea08d 100644 --- a/website/source/docs/providers/azurerm/r/eventhub_authorization_rule.html.markdown +++ b/website/source/docs/providers/azurerm/r/eventhub_authorization_rule.html.markdown @@ -12,7 +12,7 @@ Creates a new Event Hub Authorization Rule within an Event Hub. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" @@ -87,7 +87,6 @@ The following attributes are exported: * `secondary_connection_string` - The Secondary Connection String for the Event Hub Authorization Rule. - ## Import EventHubs can be imported using the `resource id`, e.g. diff --git a/website/source/docs/providers/azurerm/r/eventhub_consumer_group.html.markdown b/website/source/docs/providers/azurerm/r/eventhub_consumer_group.html.markdown index f10be3ba9..68758c263 100644 --- a/website/source/docs/providers/azurerm/r/eventhub_consumer_group.html.markdown +++ b/website/source/docs/providers/azurerm/r/eventhub_consumer_group.html.markdown @@ -12,7 +12,7 @@ Creates a new Event Hub Consumer Group as a nested resource within an Event Hub. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/eventhub_namespace.html.markdown b/website/source/docs/providers/azurerm/r/eventhub_namespace.html.markdown index 95a329da4..0d69bdba3 100644 --- a/website/source/docs/providers/azurerm/r/eventhub_namespace.html.markdown +++ b/website/source/docs/providers/azurerm/r/eventhub_namespace.html.markdown @@ -12,7 +12,7 @@ Create an EventHub Namespace. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/key_vault.html.markdown b/website/source/docs/providers/azurerm/r/key_vault.html.markdown index 3977ee6ba..1e869ab7f 100644 --- a/website/source/docs/providers/azurerm/r/key_vault.html.markdown +++ b/website/source/docs/providers/azurerm/r/key_vault.html.markdown @@ -12,7 +12,7 @@ Create a Key Vault. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/loadbalancer.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer.html.markdown index 2a868a109..e659bf2ec 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer.html.markdown @@ -12,7 +12,7 @@ Create a LoadBalancer Resource. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "LoadBalancerRG" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/loadbalancer_backend_address_pool.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer_backend_address_pool.html.markdown index f63b782d9..307fc29ad 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer_backend_address_pool.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer_backend_address_pool.html.markdown @@ -14,7 +14,7 @@ Create a LoadBalancer Backend Address Pool. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "LoadBalancerRG" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/loadbalancer_nat_pool.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer_nat_pool.html.markdown index e4740694b..6e34d5a76 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer_nat_pool.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer_nat_pool.html.markdown @@ -14,7 +14,7 @@ Create a LoadBalancer NAT pool. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "LoadBalancerRG" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/loadbalancer_nat_rule.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer_nat_rule.html.markdown index 4eaaef724..49f87f58e 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer_nat_rule.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer_nat_rule.html.markdown @@ -14,7 +14,7 @@ Create a LoadBalancer NAT Rule. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "LoadBalancerRG" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown index 0add4f613..a2e0853e0 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown @@ -14,7 +14,7 @@ Create a LoadBalancer Probe Resource. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "LoadBalancerRG" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown index ee7e2b9ae..cd8cf97b4 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown @@ -14,7 +14,7 @@ Create a LoadBalancer Rule. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "LoadBalancerRG" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/local_network_gateway.html.markdown b/website/source/docs/providers/azurerm/r/local_network_gateway.html.markdown index b4681b6e4..b70e99741 100644 --- a/website/source/docs/providers/azurerm/r/local_network_gateway.html.markdown +++ b/website/source/docs/providers/azurerm/r/local_network_gateway.html.markdown @@ -12,7 +12,7 @@ Creates a new local network gateway connection over which specific connections c ## Example Usage -``` +```hcl resource "azurerm_local_network_gateway" "home" { name = "backHome" resource_group_name = "${azurerm_resource_group.test.name}" diff --git a/website/source/docs/providers/azurerm/r/managed_disk.html.markdown b/website/source/docs/providers/azurerm/r/managed_disk.html.markdown index e0058df77..1337d94c1 100644 --- a/website/source/docs/providers/azurerm/r/managed_disk.html.markdown +++ b/website/source/docs/providers/azurerm/r/managed_disk.html.markdown @@ -12,7 +12,7 @@ Create a managed disk. ## Example Usage with Create Empty -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "West US 2" @@ -34,7 +34,7 @@ resource "azurerm_managed_disk" "test" { ## Example Usage with Create Copy -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "West US 2" diff --git a/website/source/docs/providers/azurerm/r/network_interface.html.markdown b/website/source/docs/providers/azurerm/r/network_interface.html.markdown index 92e197b06..82e925ac5 100644 --- a/website/source/docs/providers/azurerm/r/network_interface.html.markdown +++ b/website/source/docs/providers/azurerm/r/network_interface.html.markdown @@ -12,7 +12,7 @@ Network interface cards are virtual network cards that form the link between vir ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/network_security_group.html.markdown b/website/source/docs/providers/azurerm/r/network_security_group.html.markdown index 54c20b709..1e49cfc0c 100644 --- a/website/source/docs/providers/azurerm/r/network_security_group.html.markdown +++ b/website/source/docs/providers/azurerm/r/network_security_group.html.markdown @@ -12,7 +12,7 @@ Create a network security group that contains a list of network security rules. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/network_security_rule.html.markdown b/website/source/docs/providers/azurerm/r/network_security_rule.html.markdown index 5ceb39943..c30506706 100644 --- a/website/source/docs/providers/azurerm/r/network_security_rule.html.markdown +++ b/website/source/docs/providers/azurerm/r/network_security_rule.html.markdown @@ -12,7 +12,7 @@ Create a Network Security Rule. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/public_ip.html.markdown b/website/source/docs/providers/azurerm/r/public_ip.html.markdown index af5581686..e83df9321 100644 --- a/website/source/docs/providers/azurerm/r/public_ip.html.markdown +++ b/website/source/docs/providers/azurerm/r/public_ip.html.markdown @@ -12,7 +12,7 @@ Create a Public IP Address. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/redis_cache.html.markdown b/website/source/docs/providers/azurerm/r/redis_cache.html.markdown index 67f919931..f57686514 100644 --- a/website/source/docs/providers/azurerm/r/redis_cache.html.markdown +++ b/website/source/docs/providers/azurerm/r/redis_cache.html.markdown @@ -12,7 +12,7 @@ Creates a new Redis Cache Resource ## Example Usage (Basic) -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" @@ -35,7 +35,7 @@ resource "azurerm_redis_cache" "test" { ## Example Usage (Standard) -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" @@ -57,7 +57,8 @@ resource "azurerm_redis_cache" "test" { ``` ## Example Usage (Premium with Clustering) -``` + +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" @@ -105,7 +106,8 @@ The following arguments are supported: * `shard_count` - (Optional) *Only available when using the Premium SKU* The number of Shards to create on the Redis Cluster. * `redis_configuration` - (Required) Potential Redis configuration values - with some limitations by SKU - defaults/details are shown below. -``` + +```hcl redis_configuration { maxclients = "512" maxmemory_reserve" = "10" diff --git a/website/source/docs/providers/azurerm/r/resource_group.html.markdown b/website/source/docs/providers/azurerm/r/resource_group.html.markdown index 60e7ed282..dcb8fbb0c 100644 --- a/website/source/docs/providers/azurerm/r/resource_group.html.markdown +++ b/website/source/docs/providers/azurerm/r/resource_group.html.markdown @@ -12,7 +12,7 @@ Creates a new resource group on Azure. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "testResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/route.html.markdown b/website/source/docs/providers/azurerm/r/route.html.markdown index c43b20b44..2602150d7 100644 --- a/website/source/docs/providers/azurerm/r/route.html.markdown +++ b/website/source/docs/providers/azurerm/r/route.html.markdown @@ -12,7 +12,7 @@ Creates a new Route Resource ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/route_table.html.markdown b/website/source/docs/providers/azurerm/r/route_table.html.markdown index 76a498857..5b2432662 100644 --- a/website/source/docs/providers/azurerm/r/route_table.html.markdown +++ b/website/source/docs/providers/azurerm/r/route_table.html.markdown @@ -12,7 +12,7 @@ Creates a new Route Table Resource ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/search_service.html.markdown b/website/source/docs/providers/azurerm/r/search_service.html.markdown index 6385e919d..a0e22c201 100644 --- a/website/source/docs/providers/azurerm/r/search_service.html.markdown +++ b/website/source/docs/providers/azurerm/r/search_service.html.markdown @@ -12,7 +12,7 @@ Allows you to manage an Azure Search Service ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/servicebus_namespace.html.markdown b/website/source/docs/providers/azurerm/r/servicebus_namespace.html.markdown index 1a58b3de1..70ff65fee 100644 --- a/website/source/docs/providers/azurerm/r/servicebus_namespace.html.markdown +++ b/website/source/docs/providers/azurerm/r/servicebus_namespace.html.markdown @@ -12,7 +12,7 @@ Create a ServiceBus Namespace. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/servicebus_subscription.html.markdown b/website/source/docs/providers/azurerm/r/servicebus_subscription.html.markdown index 7c58fe339..ea2e72b69 100644 --- a/website/source/docs/providers/azurerm/r/servicebus_subscription.html.markdown +++ b/website/source/docs/providers/azurerm/r/servicebus_subscription.html.markdown @@ -12,7 +12,7 @@ Create a ServiceBus Subscription. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/servicebus_topic.html.markdown b/website/source/docs/providers/azurerm/r/servicebus_topic.html.markdown index a317f57a9..040518788 100644 --- a/website/source/docs/providers/azurerm/r/servicebus_topic.html.markdown +++ b/website/source/docs/providers/azurerm/r/servicebus_topic.html.markdown @@ -15,7 +15,7 @@ higher. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "resourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/sql_database.html.markdown b/website/source/docs/providers/azurerm/r/sql_database.html.markdown index 1fcbe4038..65df58053 100644 --- a/website/source/docs/providers/azurerm/r/sql_database.html.markdown +++ b/website/source/docs/providers/azurerm/r/sql_database.html.markdown @@ -12,7 +12,7 @@ Allows you to manage an Azure SQL Database ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/sql_firewall_rule.html.markdown b/website/source/docs/providers/azurerm/r/sql_firewall_rule.html.markdown index ffc9bfb29..5d31b1062 100644 --- a/website/source/docs/providers/azurerm/r/sql_firewall_rule.html.markdown +++ b/website/source/docs/providers/azurerm/r/sql_firewall_rule.html.markdown @@ -12,7 +12,7 @@ Allows you to manage an Azure SQL Firewall Rule ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/sql_server.html.markdown b/website/source/docs/providers/azurerm/r/sql_server.html.markdown index 58b4a5fbb..8af90f9dc 100644 --- a/website/source/docs/providers/azurerm/r/sql_server.html.markdown +++ b/website/source/docs/providers/azurerm/r/sql_server.html.markdown @@ -15,7 +15,7 @@ Allows you to manage an Azure SQL Database Server ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/storage_account.html.markdown b/website/source/docs/providers/azurerm/r/storage_account.html.markdown index eb08ba7f1..9b4e13064 100644 --- a/website/source/docs/providers/azurerm/r/storage_account.html.markdown +++ b/website/source/docs/providers/azurerm/r/storage_account.html.markdown @@ -12,7 +12,7 @@ Create an Azure Storage Account. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "testrg" { name = "resourceGroupName" location = "westus" diff --git a/website/source/docs/providers/azurerm/r/storage_blob.html.markdown b/website/source/docs/providers/azurerm/r/storage_blob.html.markdown index 83e22a53f..77e13ea92 100644 --- a/website/source/docs/providers/azurerm/r/storage_blob.html.markdown +++ b/website/source/docs/providers/azurerm/r/storage_blob.html.markdown @@ -12,7 +12,7 @@ Create an Azure Storage Blob. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg-%d" location = "westus" diff --git a/website/source/docs/providers/azurerm/r/storage_container.html.markdown b/website/source/docs/providers/azurerm/r/storage_container.html.markdown index 4ccd7da45..f355bb8ed 100644 --- a/website/source/docs/providers/azurerm/r/storage_container.html.markdown +++ b/website/source/docs/providers/azurerm/r/storage_container.html.markdown @@ -12,7 +12,7 @@ Create an Azure Storage Container. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "westus" diff --git a/website/source/docs/providers/azurerm/r/storage_queue.html.markdown b/website/source/docs/providers/azurerm/r/storage_queue.html.markdown index 173c6ccb6..6d0e1f573 100644 --- a/website/source/docs/providers/azurerm/r/storage_queue.html.markdown +++ b/website/source/docs/providers/azurerm/r/storage_queue.html.markdown @@ -12,7 +12,7 @@ Create an Azure Storage Queue. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg-%d" location = "westus" diff --git a/website/source/docs/providers/azurerm/r/storage_share.html.markdown b/website/source/docs/providers/azurerm/r/storage_share.html.markdown index f27756210..0e36586c4 100644 --- a/website/source/docs/providers/azurerm/r/storage_share.html.markdown +++ b/website/source/docs/providers/azurerm/r/storage_share.html.markdown @@ -12,7 +12,7 @@ Create an Azure Storage File Share. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg-%d" location = "westus" diff --git a/website/source/docs/providers/azurerm/r/storage_table.html.markdown b/website/source/docs/providers/azurerm/r/storage_table.html.markdown index 4881825c4..ff597cc64 100644 --- a/website/source/docs/providers/azurerm/r/storage_table.html.markdown +++ b/website/source/docs/providers/azurerm/r/storage_table.html.markdown @@ -12,7 +12,7 @@ Create an Azure Storage Table. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg-%d" location = "westus" diff --git a/website/source/docs/providers/azurerm/r/subnet.html.markdown b/website/source/docs/providers/azurerm/r/subnet.html.markdown index b5a8380da..34f4d97ea 100644 --- a/website/source/docs/providers/azurerm/r/subnet.html.markdown +++ b/website/source/docs/providers/azurerm/r/subnet.html.markdown @@ -12,7 +12,7 @@ Creates a new subnet. Subnets represent network segments within the IP space def ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acceptanceTestResourceGroup1" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/template_deployment.html.markdown b/website/source/docs/providers/azurerm/r/template_deployment.html.markdown index 298286b43..5dbc67762 100644 --- a/website/source/docs/providers/azurerm/r/template_deployment.html.markdown +++ b/website/source/docs/providers/azurerm/r/template_deployment.html.markdown @@ -12,7 +12,7 @@ Create a template deployment of resources ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg-01" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/traffic_manager_endpoint.html.markdown b/website/source/docs/providers/azurerm/r/traffic_manager_endpoint.html.markdown index 8ddf80d24..5808a5cee 100644 --- a/website/source/docs/providers/azurerm/r/traffic_manager_endpoint.html.markdown +++ b/website/source/docs/providers/azurerm/r/traffic_manager_endpoint.html.markdown @@ -12,7 +12,7 @@ Creates a Traffic Manager Endpoint. ## Example Usage -``` +```hcl resource "azurerm_traffic_manager_profile" "test" { name = "profile1" resource_group_name = "${azurerm_resource_group.test.name}" diff --git a/website/source/docs/providers/azurerm/r/traffic_manager_profile.html.markdown b/website/source/docs/providers/azurerm/r/traffic_manager_profile.html.markdown index 5d95a4306..d93072a4c 100644 --- a/website/source/docs/providers/azurerm/r/traffic_manager_profile.html.markdown +++ b/website/source/docs/providers/azurerm/r/traffic_manager_profile.html.markdown @@ -12,7 +12,7 @@ Creates a Traffic Manager Profile to which multiple endpoints can be attached. ## Example Usage -``` +```hcl resource "azurerm_traffic_manager_profile" "test" { name = "profile1" resource_group_name = "${azurerm_resource_group.test.name}" diff --git a/website/source/docs/providers/azurerm/r/virtual_machine.html.markdown b/website/source/docs/providers/azurerm/r/virtual_machine.html.markdown index 565a8accb..abf232d2e 100644 --- a/website/source/docs/providers/azurerm/r/virtual_machine.html.markdown +++ b/website/source/docs/providers/azurerm/r/virtual_machine.html.markdown @@ -12,7 +12,7 @@ Create a virtual machine. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "West US" @@ -101,7 +101,7 @@ resource "azurerm_virtual_machine" "test" { ## Example Usage with additional Empty DataDisk -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "West US" @@ -198,7 +198,7 @@ resource "azurerm_virtual_machine" "test" { ## Example Usage with Managed Disks -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "West US 2" @@ -410,7 +410,7 @@ For more information on the different example configurations, please check out t * `certificate_url` - (Required) Specifies the URI of the key vault secrets in the format of `https:///secrets//`. Stored secret is the Base64 encoding of a JSON Object that which is encoded in UTF-8 of which the contents need to be -``` +```json { "data":"", "dataType":"pfx", diff --git a/website/source/docs/providers/azurerm/r/virtual_machine_extension.html.markdown b/website/source/docs/providers/azurerm/r/virtual_machine_extension.html.markdown index b61e4fd6b..adbb87142 100644 --- a/website/source/docs/providers/azurerm/r/virtual_machine_extension.html.markdown +++ b/website/source/docs/providers/azurerm/r/virtual_machine_extension.html.markdown @@ -14,7 +14,7 @@ and run automated tasks. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/virtual_machine_scale_sets.html.markdown b/website/source/docs/providers/azurerm/r/virtual_machine_scale_sets.html.markdown index 559c7f2fc..35cad3503 100644 --- a/website/source/docs/providers/azurerm/r/virtual_machine_scale_sets.html.markdown +++ b/website/source/docs/providers/azurerm/r/virtual_machine_scale_sets.html.markdown @@ -15,7 +15,7 @@ Create a virtual machine scale set. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "acctestrg" location = "West US" diff --git a/website/source/docs/providers/azurerm/r/virtual_network.html.markdown b/website/source/docs/providers/azurerm/r/virtual_network.html.markdown index 987cb15e1..697960072 100644 --- a/website/source/docs/providers/azurerm/r/virtual_network.html.markdown +++ b/website/source/docs/providers/azurerm/r/virtual_network.html.markdown @@ -13,7 +13,7 @@ optionally be configured with a security group to be associated with the subnet. ## Example Usage -``` +```hcl resource "azurerm_virtual_network" "test" { name = "virtualNetwork1" resource_group_name = "${azurerm_resource_group.test.name}" diff --git a/website/source/docs/providers/azurerm/r/virtual_network_peering.html.markdown b/website/source/docs/providers/azurerm/r/virtual_network_peering.html.markdown index 15ddb1788..4376a0ced 100644 --- a/website/source/docs/providers/azurerm/r/virtual_network_peering.html.markdown +++ b/website/source/docs/providers/azurerm/r/virtual_network_peering.html.markdown @@ -14,7 +14,7 @@ resources in the linked virtual network. ## Example Usage -``` +```hcl resource "azurerm_resource_group" "test" { name = "peeredvnets-rg" location = "West US" diff --git a/website/source/docs/providers/bitbucket/index.html.markdown b/website/source/docs/providers/bitbucket/index.html.markdown index a5b91806f..638a1a6c1 100644 --- a/website/source/docs/providers/bitbucket/index.html.markdown +++ b/website/source/docs/providers/bitbucket/index.html.markdown @@ -15,7 +15,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Bitbucket Provider provider "bitbucket" { username = "GobBluthe" diff --git a/website/source/docs/providers/bitbucket/r/default_reviewers.html.markdown b/website/source/docs/providers/bitbucket/r/default_reviewers.html.markdown index be2333dd7..810813e89 100644 --- a/website/source/docs/providers/bitbucket/r/default_reviewers.html.markdown +++ b/website/source/docs/providers/bitbucket/r/default_reviewers.html.markdown @@ -12,7 +12,7 @@ Provides support for setting up default reviewers for your repository. ## Example Usage -``` +```hcl # Manage your repository resource "bitbucket_default_reviewers" "infrastructure" { owner = "myteam" diff --git a/website/source/docs/providers/bitbucket/r/hook.html.markdown b/website/source/docs/providers/bitbucket/r/hook.html.markdown index 404759e18..7e5a54d4e 100644 --- a/website/source/docs/providers/bitbucket/r/hook.html.markdown +++ b/website/source/docs/providers/bitbucket/r/hook.html.markdown @@ -14,7 +14,7 @@ This allows you to manage your webhooks on a repository. ## Example Usage -``` +```hcl # Manage your repositories hooks resource "bitbucket_hook" "deploy_on_push" { owner = "myteam" diff --git a/website/source/docs/providers/bitbucket/r/repository.html.markdown b/website/source/docs/providers/bitbucket/r/repository.html.markdown index cc584d9b1..fcff7c53b 100644 --- a/website/source/docs/providers/bitbucket/r/repository.html.markdown +++ b/website/source/docs/providers/bitbucket/r/repository.html.markdown @@ -15,7 +15,7 @@ private, how to fork the repository and other options. ## Example Usage -``` +```hcl # Manage your repository resource "bitbucket_repository" "infrastructure" { owner = "myteam" diff --git a/website/source/docs/providers/do/index.html.markdown b/website/source/docs/providers/do/index.html.markdown index cc92160dc..1c7571f9f 100644 --- a/website/source/docs/providers/do/index.html.markdown +++ b/website/source/docs/providers/do/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Set the variable value in *.tfvars file # or using -var="do_token=..." CLI option variable "do_token" {} diff --git a/website/source/docs/providers/do/r/domain.html.markdown b/website/source/docs/providers/do/r/domain.html.markdown index 85d3f258c..c90ae150e 100644 --- a/website/source/docs/providers/do/r/domain.html.markdown +++ b/website/source/docs/providers/do/r/domain.html.markdown @@ -12,7 +12,7 @@ Provides a DigitalOcean domain resource. ## Example Usage -``` +```hcl # Create a new domain resource "digitalocean_domain" "default" { name = "www.example.com" diff --git a/website/source/docs/providers/do/r/droplet.html.markdown b/website/source/docs/providers/do/r/droplet.html.markdown index a3b026000..f2fd16c6c 100644 --- a/website/source/docs/providers/do/r/droplet.html.markdown +++ b/website/source/docs/providers/do/r/droplet.html.markdown @@ -14,7 +14,7 @@ modify, and delete Droplets. Droplets also support ## Example Usage -``` +```hcl # Create a new Web Droplet in the nyc2 region resource "digitalocean_droplet" "web" { image = "ubuntu-14-04-x64" diff --git a/website/source/docs/providers/do/r/floating_ip.html.markdown b/website/source/docs/providers/do/r/floating_ip.html.markdown index 0c1a823d8..63196b09d 100644 --- a/website/source/docs/providers/do/r/floating_ip.html.markdown +++ b/website/source/docs/providers/do/r/floating_ip.html.markdown @@ -12,7 +12,7 @@ Provides a DigitalOcean Floating IP to represent a publicly-accessible static IP ## Example Usage -``` +```hcl resource "digitalocean_droplet" "foobar" { name = "baz" size = "1gb" diff --git a/website/source/docs/providers/do/r/loadbalancer.html.markdown b/website/source/docs/providers/do/r/loadbalancer.html.markdown index dd36ff917..ec51ebcad 100644 --- a/website/source/docs/providers/do/r/loadbalancer.html.markdown +++ b/website/source/docs/providers/do/r/loadbalancer.html.markdown @@ -13,7 +13,7 @@ modify, and delete Load Balancers. ## Example Usage -``` +```hcl resource "digitalocean_droplet" "web" { name = "web-1" size = "512mb" diff --git a/website/source/docs/providers/do/r/record.html.markdown b/website/source/docs/providers/do/r/record.html.markdown index d4feb953a..a9ddb50d6 100644 --- a/website/source/docs/providers/do/r/record.html.markdown +++ b/website/source/docs/providers/do/r/record.html.markdown @@ -12,7 +12,7 @@ Provides a DigitalOcean DNS record resource. ## Example Usage -``` +```hcl # Create a new domain resource "digitalocean_domain" "default" { name = "www.example.com" diff --git a/website/source/docs/providers/do/r/ssh_key.html.markdown b/website/source/docs/providers/do/r/ssh_key.html.markdown index e500b5aa1..4d27039fe 100644 --- a/website/source/docs/providers/do/r/ssh_key.html.markdown +++ b/website/source/docs/providers/do/r/ssh_key.html.markdown @@ -15,7 +15,7 @@ fingerprint. ## Example Usage -``` +```hcl # Create a new SSH key resource "digitalocean_ssh_key" "default" { name = "Terraform Example" diff --git a/website/source/docs/providers/do/r/tag.html.markdown b/website/source/docs/providers/do/r/tag.html.markdown index 42c9b0357..4ec09795a 100644 --- a/website/source/docs/providers/do/r/tag.html.markdown +++ b/website/source/docs/providers/do/r/tag.html.markdown @@ -15,7 +15,7 @@ configuration via their ID or name. ## Example Usage -``` +```hcl # Create a new tag resource "digitalocean_tag" "foobar" { name = "foobar" diff --git a/website/source/docs/providers/do/r/volume.markdown b/website/source/docs/providers/do/r/volume.markdown index 0a25284c9..23ffedfb8 100644 --- a/website/source/docs/providers/do/r/volume.markdown +++ b/website/source/docs/providers/do/r/volume.markdown @@ -12,7 +12,7 @@ Provides a DigitalOcean Block Storage volume which can be attached to a Droplet ## Example Usage -``` +```hcl resource "digitalocean_volume" "foobar" { region = "nyc1" name = "baz" diff --git a/website/source/docs/providers/docker/d/registry_image.html.markdown b/website/source/docs/providers/docker/d/registry_image.html.markdown index 9ec583625..f8d0f8dea 100644 --- a/website/source/docs/providers/docker/d/registry_image.html.markdown +++ b/website/source/docs/providers/docker/d/registry_image.html.markdown @@ -16,7 +16,7 @@ to date on the latest available version of the tag. ## Example Usage -``` +```hcl data "docker_registry_image" "ubuntu" { name = "ubuntu:precise" } diff --git a/website/source/docs/providers/docker/index.html.markdown b/website/source/docs/providers/docker/index.html.markdown index bff8f6140..f55e0973a 100644 --- a/website/source/docs/providers/docker/index.html.markdown +++ b/website/source/docs/providers/docker/index.html.markdown @@ -18,7 +18,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Docker provider provider "docker" { host = "tcp://127.0.0.1:2376/" diff --git a/website/source/docs/providers/docker/r/container.html.markdown b/website/source/docs/providers/docker/r/container.html.markdown index 8a7671591..d0996c992 100644 --- a/website/source/docs/providers/docker/r/container.html.markdown +++ b/website/source/docs/providers/docker/r/container.html.markdown @@ -12,7 +12,7 @@ Manages the lifecycle of a Docker container. ## Example Usage -``` +```hcl # Start a container resource "docker_container" "ubuntu" { name = "foo" @@ -93,7 +93,7 @@ The following arguments are supported: Example: -``` +```hcl resource "docker_container" "ubuntu" { name = "foo" image = "${docker_image.ubuntu.latest}" diff --git a/website/source/docs/providers/docker/r/image.html.markdown b/website/source/docs/providers/docker/r/image.html.markdown index 2520ce3a6..c08f016ea 100644 --- a/website/source/docs/providers/docker/r/image.html.markdown +++ b/website/source/docs/providers/docker/r/image.html.markdown @@ -18,7 +18,7 @@ data source to update the `pull_triggers` field. ## Example Usage -``` +```hcl # Find the latest Ubuntu precise image. resource "docker_image" "ubuntu" { name = "ubuntu:precise" @@ -30,7 +30,7 @@ resource "docker_image" "ubuntu" { ### Dynamic image -``` +```hcl data "docker_registry_image" "ubuntu" { name = "ubuntu:precise" } diff --git a/website/source/docs/providers/docker/r/network.html.markdown b/website/source/docs/providers/docker/r/network.html.markdown index d931e0b4e..d0636d499 100644 --- a/website/source/docs/providers/docker/r/network.html.markdown +++ b/website/source/docs/providers/docker/r/network.html.markdown @@ -14,7 +14,7 @@ to create virtual networks within the docker environment. ## Example Usage -``` +```hcl # Find the latest Ubuntu precise image. resource "docker_network" "private_network" { name = "my_network" diff --git a/website/source/docs/providers/docker/r/volume.html.markdown b/website/source/docs/providers/docker/r/volume.html.markdown index e9a31d364..f5d9dee94 100644 --- a/website/source/docs/providers/docker/r/volume.html.markdown +++ b/website/source/docs/providers/docker/r/volume.html.markdown @@ -14,7 +14,7 @@ to prepare volumes that can be shared across containers. ## Example Usage -``` +```hcl # Creates a docker volume "shared_volume". resource "docker_volume" "shared_volume" { name = "shared_volume" diff --git a/website/source/docs/providers/dyn/index.html.markdown b/website/source/docs/providers/dyn/index.html.markdown index f7417e6b6..8811bb7bc 100644 --- a/website/source/docs/providers/dyn/index.html.markdown +++ b/website/source/docs/providers/dyn/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Dyn provider provider "dyn" { customer_name = "${var.dyn_customer_name}" diff --git a/website/source/docs/providers/dyn/r/record.html.markdown b/website/source/docs/providers/dyn/r/record.html.markdown index 9aaf3f7d6..92cd3b510 100644 --- a/website/source/docs/providers/dyn/r/record.html.markdown +++ b/website/source/docs/providers/dyn/r/record.html.markdown @@ -12,7 +12,7 @@ Provides a Dyn DNS record resource. ## Example Usage -``` +```hcl # Add a record to the domain resource "dyn_record" "foobar" { zone = "${var.dyn_zone}" diff --git a/website/source/docs/providers/google/index.html.markdown b/website/source/docs/providers/google/index.html.markdown index 256a1c940..d0eecd113 100644 --- a/website/source/docs/providers/google/index.html.markdown +++ b/website/source/docs/providers/google/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -```js +```hcl // Configure the Google Cloud provider provider "google" { credentials = "${file("account.json")}" diff --git a/website/source/docs/providers/google/r/compute_address.html.markdown b/website/source/docs/providers/google/r/compute_address.html.markdown index df0c8fad5..8fb5427f9 100644 --- a/website/source/docs/providers/google/r/compute_address.html.markdown +++ b/website/source/docs/providers/google/r/compute_address.html.markdown @@ -15,7 +15,7 @@ Creates a static IP address resource for Google Compute Engine. For more informa ## Example Usage -```js +```hcl resource "google_compute_address" "default" { name = "test-address" } diff --git a/website/source/docs/providers/google/r/compute_autoscaler.html.markdown b/website/source/docs/providers/google/r/compute_autoscaler.html.markdown index d2bd362b8..c963e537f 100644 --- a/website/source/docs/providers/google/r/compute_autoscaler.html.markdown +++ b/website/source/docs/providers/google/r/compute_autoscaler.html.markdown @@ -20,7 +20,7 @@ documentation](https://cloud.google.com/compute/docs/autoscaler/) and ## Example Usage -```js +```hcl resource "google_compute_instance_template" "foobar" { name = "foobar" machine_type = "n1-standard-1" diff --git a/website/source/docs/providers/google/r/compute_backend_service.html.markdown b/website/source/docs/providers/google/r/compute_backend_service.html.markdown index a8eaffa0f..551c29883 100644 --- a/website/source/docs/providers/google/r/compute_backend_service.html.markdown +++ b/website/source/docs/providers/google/r/compute_backend_service.html.markdown @@ -12,7 +12,7 @@ A Backend Service defines a group of virtual machines that will serve traffic fo ## Example Usage -```js +```hcl resource "google_compute_backend_service" "foobar" { name = "blablah" description = "Hello World 1234" diff --git a/website/source/docs/providers/google/r/compute_disk.html.markdown b/website/source/docs/providers/google/r/compute_disk.html.markdown index 08e73c23f..ef723cb1b 100644 --- a/website/source/docs/providers/google/r/compute_disk.html.markdown +++ b/website/source/docs/providers/google/r/compute_disk.html.markdown @@ -15,7 +15,7 @@ Creates a new persistent disk within GCE, based on another disk. ## Example Usage -```js +```hcl resource "google_compute_disk" "default" { name = "test-disk" type = "pd-ssd" diff --git a/website/source/docs/providers/google/r/compute_firewall.html.markdown b/website/source/docs/providers/google/r/compute_firewall.html.markdown index c495b3a1c..bc1f93c28 100644 --- a/website/source/docs/providers/google/r/compute_firewall.html.markdown +++ b/website/source/docs/providers/google/r/compute_firewall.html.markdown @@ -12,7 +12,7 @@ Manages a firewall resource within GCE. ## Example Usage -```js +```hcl resource "google_compute_firewall" "default" { name = "test" network = "${google_compute_network.other.name}" diff --git a/website/source/docs/providers/google/r/compute_global_address.html.markdown b/website/source/docs/providers/google/r/compute_global_address.html.markdown index dbfab2937..3b7f4de2b 100644 --- a/website/source/docs/providers/google/r/compute_global_address.html.markdown +++ b/website/source/docs/providers/google/r/compute_global_address.html.markdown @@ -15,7 +15,7 @@ Creates a static IP address resource global to a Google Compute Engine project. ## Example Usage -```js +```hcl resource "google_compute_global_address" "default" { name = "test-address" } diff --git a/website/source/docs/providers/google/r/compute_global_forwarding_rule.html.markdown b/website/source/docs/providers/google/r/compute_global_forwarding_rule.html.markdown index 62d1d06ce..df04a6935 100644 --- a/website/source/docs/providers/google/r/compute_global_forwarding_rule.html.markdown +++ b/website/source/docs/providers/google/r/compute_global_forwarding_rule.html.markdown @@ -15,7 +15,7 @@ documentation](https://cloud.google.com/compute/docs/load-balancing/http/global- ## Example Usage -```js +```hcl resource "google_compute_global_forwarding_rule" "default" { name = "test" target = "${google_compute_target_http_proxy.default.self_link}" diff --git a/website/source/docs/providers/google/r/compute_http_health_check.html.markdown b/website/source/docs/providers/google/r/compute_http_health_check.html.markdown index 230386555..c5ee13755 100644 --- a/website/source/docs/providers/google/r/compute_http_health_check.html.markdown +++ b/website/source/docs/providers/google/r/compute_http_health_check.html.markdown @@ -17,7 +17,7 @@ and ## Example Usage -```js +```hcl resource "google_compute_http_health_check" "default" { name = "test" request_path = "/health_check" diff --git a/website/source/docs/providers/google/r/compute_https_health_check.html.markdown b/website/source/docs/providers/google/r/compute_https_health_check.html.markdown index e04054bcc..79bb102ce 100644 --- a/website/source/docs/providers/google/r/compute_https_health_check.html.markdown +++ b/website/source/docs/providers/google/r/compute_https_health_check.html.markdown @@ -17,7 +17,7 @@ and ## Example Usage -```js +```hcl resource "google_compute_https_health_check" "default" { name = "test" request_path = "/health_check" diff --git a/website/source/docs/providers/google/r/compute_image.html.markdown b/website/source/docs/providers/google/r/compute_image.html.markdown index 3983d9817..fe5bea7af 100644 --- a/website/source/docs/providers/google/r/compute_image.html.markdown +++ b/website/source/docs/providers/google/r/compute_image.html.markdown @@ -15,7 +15,7 @@ tarball. For more information see [the official documentation](https://cloud.goo ## Example Usage -```js +```hcl resource "google_compute_image" "bootable-image" { name = "my-custom-image" diff --git a/website/source/docs/providers/google/r/compute_instance.html.markdown b/website/source/docs/providers/google/r/compute_instance.html.markdown index 3481d4009..3ed964a13 100644 --- a/website/source/docs/providers/google/r/compute_instance.html.markdown +++ b/website/source/docs/providers/google/r/compute_instance.html.markdown @@ -16,7 +16,7 @@ and ## Example Usage -```js +```hcl resource "google_compute_instance" "default" { name = "test" machine_type = "n1-standard-1" diff --git a/website/source/docs/providers/google/r/compute_instance_group.html.markdown b/website/source/docs/providers/google/r/compute_instance_group.html.markdown index 2fe520621..b7ed3db1e 100644 --- a/website/source/docs/providers/google/r/compute_instance_group.html.markdown +++ b/website/source/docs/providers/google/r/compute_instance_group.html.markdown @@ -16,7 +16,8 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) ## Example Usage ### Empty instance group -```js + +```hcl resource "google_compute_instance_group" "test" { name = "terraform-test" description = "Terraform test instance group" @@ -25,7 +26,8 @@ resource "google_compute_instance_group" "test" { ``` ### With instances and named ports -```js + +```hcl resource "google_compute_instance_group" "webservers" { name = "terraform-webservers" description = "Terraform test instance group" diff --git a/website/source/docs/providers/google/r/compute_instance_group_manager.html.markdown b/website/source/docs/providers/google/r/compute_instance_group_manager.html.markdown index 610263ac3..b7d8c6cd9 100644 --- a/website/source/docs/providers/google/r/compute_instance_group_manager.html.markdown +++ b/website/source/docs/providers/google/r/compute_instance_group_manager.html.markdown @@ -15,7 +15,7 @@ and [API](https://cloud.google.com/compute/docs/instance-groups/manager/v1beta2/ ## Example Usage -```js +```hcl resource "google_compute_instance_group_manager" "foobar" { name = "terraform-test" description = "Terraform test instance group manager" diff --git a/website/source/docs/providers/google/r/compute_instance_template.html.markdown b/website/source/docs/providers/google/r/compute_instance_template.html.markdown index 5670409b7..78bd47bca 100644 --- a/website/source/docs/providers/google/r/compute_instance_template.html.markdown +++ b/website/source/docs/providers/google/r/compute_instance_template.html.markdown @@ -17,7 +17,7 @@ and ## Example Usage -```js +```hcl resource "google_compute_instance_template" "foobar" { name = "terraform-test" description = "template description" @@ -71,7 +71,7 @@ it's recommended to specify `create_before_destroy` in a [lifecycle][2] block. Either omit the Instance Template `name` attribute, or specify a partial name with `name_prefix`. Example: -``` +```hcl resource "google_compute_instance_template" "instance_template" { name_prefix = "instance-template-" machine_type = "n1-standard-1" diff --git a/website/source/docs/providers/google/r/compute_network.html.markdown b/website/source/docs/providers/google/r/compute_network.html.markdown index cd03ad2bb..0146dc8a9 100644 --- a/website/source/docs/providers/google/r/compute_network.html.markdown +++ b/website/source/docs/providers/google/r/compute_network.html.markdown @@ -12,7 +12,7 @@ Manages a network within GCE. ## Example Usage -```js +```hcl resource "google_compute_network" "default" { name = "test" auto_create_subnetworks = "true" diff --git a/website/source/docs/providers/google/r/compute_project_metadata.html.markdown b/website/source/docs/providers/google/r/compute_project_metadata.html.markdown index dfe9c2501..3b7dd19df 100644 --- a/website/source/docs/providers/google/r/compute_project_metadata.html.markdown +++ b/website/source/docs/providers/google/r/compute_project_metadata.html.markdown @@ -12,7 +12,7 @@ Manages metadata common to all instances for a project in GCE. ## Example Usage -``` +```hcl resource "google_compute_project_metadata" "default" { metadata { foo = "bar" diff --git a/website/source/docs/providers/google/r/compute_route.html.markdown b/website/source/docs/providers/google/r/compute_route.html.markdown index d7d9fbe71..c44566209 100644 --- a/website/source/docs/providers/google/r/compute_route.html.markdown +++ b/website/source/docs/providers/google/r/compute_route.html.markdown @@ -12,7 +12,7 @@ Manages a network route within GCE. ## Example Usage -```js +```hcl resource "google_compute_network" "foobar" { name = "test" ipv4_range = "10.0.0.0/16" diff --git a/website/source/docs/providers/google/r/compute_ssl_certificate.html.markdown b/website/source/docs/providers/google/r/compute_ssl_certificate.html.markdown index 63437bbed..48d94742a 100644 --- a/website/source/docs/providers/google/r/compute_ssl_certificate.html.markdown +++ b/website/source/docs/providers/google/r/compute_ssl_certificate.html.markdown @@ -16,7 +16,7 @@ For more information see ## Example Usage -```js +```hcl resource "google_compute_ssl_certificate" "default" { name_prefix = "my-certificate-" description = "a description" diff --git a/website/source/docs/providers/google/r/compute_subnetwork.html.markdown b/website/source/docs/providers/google/r/compute_subnetwork.html.markdown index 81f7c1387..2879f8a79 100644 --- a/website/source/docs/providers/google/r/compute_subnetwork.html.markdown +++ b/website/source/docs/providers/google/r/compute_subnetwork.html.markdown @@ -12,7 +12,7 @@ Manages a subnetwork within GCE. ## Example Usage -```js +```hcl resource "google_compute_subnetwork" "default-us-east1" { name = "default-us-east1" ip_cidr_range = "10.0.0.0/16" diff --git a/website/source/docs/providers/google/r/compute_target_http_proxy.html.markdown b/website/source/docs/providers/google/r/compute_target_http_proxy.html.markdown index 18071e416..dc23841bf 100644 --- a/website/source/docs/providers/google/r/compute_target_http_proxy.html.markdown +++ b/website/source/docs/providers/google/r/compute_target_http_proxy.html.markdown @@ -16,7 +16,7 @@ documentation](https://cloud.google.com/compute/docs/load-balancing/http/target- ## Example Usage -```js +```hcl resource "google_compute_target_http_proxy" "default" { name = "test-proxy" description = "a description" diff --git a/website/source/docs/providers/google/r/compute_target_https_proxy.html.markdown b/website/source/docs/providers/google/r/compute_target_https_proxy.html.markdown index 932c71b7b..c8c2e398e 100644 --- a/website/source/docs/providers/google/r/compute_target_https_proxy.html.markdown +++ b/website/source/docs/providers/google/r/compute_target_https_proxy.html.markdown @@ -16,7 +16,7 @@ documentation](https://cloud.google.com/compute/docs/load-balancing/http/target- ## Example Usage -```js +```hcl resource "google_compute_target_https_proxy" "default" { name = "test-proxy" description = "a description" diff --git a/website/source/docs/providers/google/r/compute_target_pool.html.markdown b/website/source/docs/providers/google/r/compute_target_pool.html.markdown index 0192c7a72..72a3ce153 100644 --- a/website/source/docs/providers/google/r/compute_target_pool.html.markdown +++ b/website/source/docs/providers/google/r/compute_target_pool.html.markdown @@ -17,7 +17,7 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/targetPools). ## Example Usage -```js +```hcl resource "google_compute_target_pool" "default" { name = "test" diff --git a/website/source/docs/providers/google/r/compute_url_map.html.markdown b/website/source/docs/providers/google/r/compute_url_map.html.markdown index c3e127963..faad2a1ee 100644 --- a/website/source/docs/providers/google/r/compute_url_map.html.markdown +++ b/website/source/docs/providers/google/r/compute_url_map.html.markdown @@ -16,7 +16,7 @@ and ## Example Usage -```js +```hcl resource "google_compute_url_map" "foobar" { name = "urlmap" description = "a description" diff --git a/website/source/docs/providers/google/r/compute_vpn_gateway.html.markdown b/website/source/docs/providers/google/r/compute_vpn_gateway.html.markdown index 0c511b554..c0f100a03 100644 --- a/website/source/docs/providers/google/r/compute_vpn_gateway.html.markdown +++ b/website/source/docs/providers/google/r/compute_vpn_gateway.html.markdown @@ -14,7 +14,7 @@ Manages a VPN Gateway in the GCE network. For more info, read the ## Example Usage -```js +```hcl resource "google_compute_network" "network1" { name = "network1" ipv4_range = "10.120.0.0/16" diff --git a/website/source/docs/providers/google/r/compute_vpn_tunnel.html.markdown b/website/source/docs/providers/google/r/compute_vpn_tunnel.html.markdown index a3673273c..059527882 100644 --- a/website/source/docs/providers/google/r/compute_vpn_tunnel.html.markdown +++ b/website/source/docs/providers/google/r/compute_vpn_tunnel.html.markdown @@ -13,7 +13,7 @@ Manages a VPN Tunnel to the GCE network. For more info, read the ## Example Usage -```js +```hcl resource "google_compute_network" "network1" { name = "network1" } diff --git a/website/source/docs/providers/google/r/container_cluster.html.markdown b/website/source/docs/providers/google/r/container_cluster.html.markdown index 7679f1fd2..b72d5b822 100644 --- a/website/source/docs/providers/google/r/container_cluster.html.markdown +++ b/website/source/docs/providers/google/r/container_cluster.html.markdown @@ -17,7 +17,7 @@ whole cluster! ## Example usage -```js +```hcl resource "google_container_cluster" "primary" { name = "marcellus-wallace" zone = "us-central1-a" diff --git a/website/source/docs/providers/google/r/container_node_pool.html.markdown b/website/source/docs/providers/google/r/container_node_pool.html.markdown index 12a24cbc7..386d912ee 100644 --- a/website/source/docs/providers/google/r/container_node_pool.html.markdown +++ b/website/source/docs/providers/google/r/container_node_pool.html.markdown @@ -15,7 +15,7 @@ and ## Example usage -```tf +```hcl resource "google_container_node_pool" "np" { name = "my-node-pool" zone = "us-central1-a" diff --git a/website/source/docs/providers/google/r/dns_managed_zone.markdown b/website/source/docs/providers/google/r/dns_managed_zone.markdown index 25d227ddb..5f5bc95ad 100644 --- a/website/source/docs/providers/google/r/dns_managed_zone.markdown +++ b/website/source/docs/providers/google/r/dns_managed_zone.markdown @@ -12,7 +12,7 @@ Manages a zone within Google Cloud DNS. ## Example Usage -```js +```hcl resource "google_dns_managed_zone" "prod" { name = "prod-zone" dns_name = "prod.mydomain.com." diff --git a/website/source/docs/providers/google/r/dns_record_set.markdown b/website/source/docs/providers/google/r/dns_record_set.markdown index 1f4b39d22..dcf33371c 100644 --- a/website/source/docs/providers/google/r/dns_record_set.markdown +++ b/website/source/docs/providers/google/r/dns_record_set.markdown @@ -14,7 +14,7 @@ Manages a set of DNS records within Google Cloud DNS. This example is the common case of binding a DNS name to the ephemeral IP of a new instance: -```js +```hcl resource "google_compute_instance" "frontend" { name = "frontend" machine_type = "g1-small" diff --git a/website/source/docs/providers/google/r/google_project.html.markdown b/website/source/docs/providers/google/r/google_project.html.markdown index 6fb0e7c7f..4e8693919 100755 --- a/website/source/docs/providers/google/r/google_project.html.markdown +++ b/website/source/docs/providers/google/r/google_project.html.markdown @@ -39,7 +39,7 @@ Terraform. Only newly added projects are affected. ## Example Usage -```js +```hcl resource "google_project" "my_project" { project_id = "your-project-id" org_id = "1234567" diff --git a/website/source/docs/providers/google/r/google_project_iam_policy.html.markdown b/website/source/docs/providers/google/r/google_project_iam_policy.html.markdown index dcc9d87b7..4dbc8a625 100644 --- a/website/source/docs/providers/google/r/google_project_iam_policy.html.markdown +++ b/website/source/docs/providers/google/r/google_project_iam_policy.html.markdown @@ -16,7 +16,7 @@ Platform project. ## Example Usage -```js +```hcl resource "google_project_iam_policy" "project" { project = "your-project-id" policy_data = "${data.google_iam_policy.admin.policy_data}" diff --git a/website/source/docs/providers/google/r/google_project_services.html.markdown b/website/source/docs/providers/google/r/google_project_services.html.markdown index d6d2eff13..0637816a0 100644 --- a/website/source/docs/providers/google/r/google_project_services.html.markdown +++ b/website/source/docs/providers/google/r/google_project_services.html.markdown @@ -14,7 +14,7 @@ in the config will be removed. ## Example Usage -```js +```hcl resource "google_project_services" "project" { project = "your-project-id" services = ["iam.googleapis.com", "cloudresourcemanager.googleapis.com"] diff --git a/website/source/docs/providers/google/r/google_service_account.html.markdown b/website/source/docs/providers/google/r/google_service_account.html.markdown index 7c0c6350d..c3cd1c899 100644 --- a/website/source/docs/providers/google/r/google_service_account.html.markdown +++ b/website/source/docs/providers/google/r/google_service_account.html.markdown @@ -15,7 +15,7 @@ Allows management of a [Google Cloud Platform service account](https://cloud.goo This snippet creates a service account, then gives it objectViewer permission in a project. -```js +```hcl resource "google_service_account" "object_viewer" { account_id = "object-viewer" display_name = "Object viewer" diff --git a/website/source/docs/providers/google/r/pubsub_subscription.html.markdown b/website/source/docs/providers/google/r/pubsub_subscription.html.markdown index d5b7aed18..ce375b12d 100644 --- a/website/source/docs/providers/google/r/pubsub_subscription.html.markdown +++ b/website/source/docs/providers/google/r/pubsub_subscription.html.markdown @@ -15,7 +15,7 @@ Creates a subscription in Google's pubsub queueing system. For more information ## Example Usage -```js +```hcl resource "google_pubsub_subscription" "default" { name = "default-subscription" topic = "default-topic" diff --git a/website/source/docs/providers/google/r/pubsub_topic.html.markdown b/website/source/docs/providers/google/r/pubsub_topic.html.markdown index 3f794e435..ceb3aebc2 100644 --- a/website/source/docs/providers/google/r/pubsub_topic.html.markdown +++ b/website/source/docs/providers/google/r/pubsub_topic.html.markdown @@ -15,7 +15,7 @@ Creates a topic in Google's pubsub queueing system. For more information see ## Example Usage -```js +```hcl resource "google_pubsub_topic" "default" { name = "default-topic" } diff --git a/website/source/docs/providers/google/r/sql_database.html.markdown b/website/source/docs/providers/google/r/sql_database.html.markdown index 8d6958c8f..d4c6b9802 100644 --- a/website/source/docs/providers/google/r/sql_database.html.markdown +++ b/website/source/docs/providers/google/r/sql_database.html.markdown @@ -14,7 +14,7 @@ Creates a new Google SQL Database on a Google SQL Database Instance. For more in Example creating a SQL Database. -```js +```hcl resource "google_sql_database_instance" "master" { name = "master-instance" diff --git a/website/source/docs/providers/google/r/sql_database_instance.html.markdown b/website/source/docs/providers/google/r/sql_database_instance.html.markdown index 88535670e..cb96a7234 100644 --- a/website/source/docs/providers/google/r/sql_database_instance.html.markdown +++ b/website/source/docs/providers/google/r/sql_database_instance.html.markdown @@ -20,7 +20,7 @@ a restricted host and strong password. Example creating a SQL Database. -```js +```hcl resource "google_sql_database_instance" "master" { name = "master-instance" diff --git a/website/source/docs/providers/google/r/sql_user.html.markdown b/website/source/docs/providers/google/r/sql_user.html.markdown index 7e4937d8e..a486a6b9e 100644 --- a/website/source/docs/providers/google/r/sql_user.html.markdown +++ b/website/source/docs/providers/google/r/sql_user.html.markdown @@ -17,7 +17,7 @@ Creates a new Google SQL User on a Google SQL User Instance. For more informatio Example creating a SQL User. -```js +```hcl resource "google_sql_database_instance" "master" { name = "master-instance" diff --git a/website/source/docs/providers/google/r/storage_bucket.html.markdown b/website/source/docs/providers/google/r/storage_bucket.html.markdown index dbd482c6c..08c9b9972 100644 --- a/website/source/docs/providers/google/r/storage_bucket.html.markdown +++ b/website/source/docs/providers/google/r/storage_bucket.html.markdown @@ -15,7 +15,7 @@ Creates a new bucket in Google cloud storage service(GCS). Currently, it will no Example creating a private bucket in standard storage, in the EU region. -```js +```hcl resource "google_storage_bucket" "image-store" { name = "image-store-bucket" location = "EU" diff --git a/website/source/docs/providers/google/r/storage_bucket_acl.html.markdown b/website/source/docs/providers/google/r/storage_bucket_acl.html.markdown index 5e5117557..dc8daa22e 100644 --- a/website/source/docs/providers/google/r/storage_bucket_acl.html.markdown +++ b/website/source/docs/providers/google/r/storage_bucket_acl.html.markdown @@ -14,7 +14,7 @@ Creates a new bucket ACL in Google cloud storage service(GCS). Example creating an ACL on a bucket with one owner, and one reader. -```js +```hcl resource "google_storage_bucket" "image-store" { name = "image-store-bucket" location = "EU" diff --git a/website/source/docs/providers/google/r/storage_bucket_object.html.markdown b/website/source/docs/providers/google/r/storage_bucket_object.html.markdown index 20092b0ee..49f7e24e0 100644 --- a/website/source/docs/providers/google/r/storage_bucket_object.html.markdown +++ b/website/source/docs/providers/google/r/storage_bucket_object.html.markdown @@ -15,7 +15,7 @@ Creates a new object inside an exisiting bucket in Google cloud storage service Example creating a public object in an existing `image-store` bucket. -```js +```hcl resource "google_storage_bucket_object" "picture" { name = "butterfly01" source = "/images/nature/garden-tiger-moth.jpg" diff --git a/website/source/docs/providers/google/r/storage_object_acl.html.markdown b/website/source/docs/providers/google/r/storage_object_acl.html.markdown index 1b27da3f4..63f69dc08 100644 --- a/website/source/docs/providers/google/r/storage_object_acl.html.markdown +++ b/website/source/docs/providers/google/r/storage_object_acl.html.markdown @@ -14,7 +14,7 @@ Creates a new object ACL in Google cloud storage service (GCS) Create an object ACL with one owner and one reader. -```js +```hcl resource "google_storage_bucket" "image-store" { name = "image-store-bucket" location = "EU" diff --git a/website/source/docs/providers/grafana/index.html.markdown b/website/source/docs/providers/grafana/index.html.markdown index 09d4d0cd2..afecda124 100644 --- a/website/source/docs/providers/grafana/index.html.markdown +++ b/website/source/docs/providers/grafana/index.html.markdown @@ -26,7 +26,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl provider "grafana" { url = "http://grafana.example.com/" auth = "1234abcd" diff --git a/website/source/docs/providers/grafana/r/dashboard.html.md b/website/source/docs/providers/grafana/r/dashboard.html.md index d00fc17f8..b37a69e7f 100644 --- a/website/source/docs/providers/grafana/r/dashboard.html.md +++ b/website/source/docs/providers/grafana/r/dashboard.html.md @@ -12,7 +12,7 @@ The dashboard resource allows a dashboard to created on a Grafana server. ## Example Usage -``` +```hcl resource "grafana_dashboard" "metrics" { config_json = "${file("grafana-dashboard.json")}" } @@ -28,7 +28,7 @@ using the `grafana_data_source` resource. In order to ensure that a data source is created before a dashboard that refers to it, use the `depends_on` meta-parameter: -``` +```hcl depends_on = ["grafana_data_source.metrics"] ``` diff --git a/website/source/docs/providers/grafana/r/data_source.html.md b/website/source/docs/providers/grafana/r/data_source.html.md index 182e5690e..aa3df4f8c 100644 --- a/website/source/docs/providers/grafana/r/data_source.html.md +++ b/website/source/docs/providers/grafana/r/data_source.html.md @@ -18,7 +18,7 @@ InfluxDB. See [Grafana's *Data Sources Guides*](http://docs.grafana.org/#data-sources-guides) for more details on the supported data source types and the arguments they use. -``` +```hcl resource "grafana_data_source" "metrics" { type = "influxdb" name = "myapp-metrics" diff --git a/website/source/docs/providers/heroku/index.html.markdown b/website/source/docs/providers/heroku/index.html.markdown index b72c1dfcf..2bec7aa85 100644 --- a/website/source/docs/providers/heroku/index.html.markdown +++ b/website/source/docs/providers/heroku/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Heroku provider provider "heroku" { email = "ops@company.com" diff --git a/website/source/docs/providers/heroku/r/addon.html.markdown b/website/source/docs/providers/heroku/r/addon.html.markdown index 4720da83f..cfe4931b4 100644 --- a/website/source/docs/providers/heroku/r/addon.html.markdown +++ b/website/source/docs/providers/heroku/r/addon.html.markdown @@ -13,7 +13,7 @@ services to a Heroku app. ## Example Usage -``` +```hcl # Create a new Heroku app resource "heroku_app" "default" { name = "test-app" diff --git a/website/source/docs/providers/heroku/r/app.html.markdown b/website/source/docs/providers/heroku/r/app.html.markdown index 6f9143d34..410f01ead 100644 --- a/website/source/docs/providers/heroku/r/app.html.markdown +++ b/website/source/docs/providers/heroku/r/app.html.markdown @@ -13,7 +13,7 @@ create and manage applications on Heroku. ## Example Usage -``` +```hcl # Create a new Heroku app resource "heroku_app" "default" { name = "my-cool-app" diff --git a/website/source/docs/providers/heroku/r/cert.html.markdown b/website/source/docs/providers/heroku/r/cert.html.markdown index dbe2aab96..0a2f8a530 100644 --- a/website/source/docs/providers/heroku/r/cert.html.markdown +++ b/website/source/docs/providers/heroku/r/cert.html.markdown @@ -12,7 +12,7 @@ Provides a Heroku SSL certificate resource. It allows to set a given certificate ## Example Usage -``` +```hcl # Create a new Heroku app resource "heroku_app" "default" { name = "test-app" diff --git a/website/source/docs/providers/heroku/r/domain.html.markdown b/website/source/docs/providers/heroku/r/domain.html.markdown index ba4915eaf..451c3f411 100644 --- a/website/source/docs/providers/heroku/r/domain.html.markdown +++ b/website/source/docs/providers/heroku/r/domain.html.markdown @@ -13,7 +13,7 @@ create and manage applications on Heroku. ## Example Usage -``` +```hcl # Create a new Heroku app resource "heroku_app" "default" { name = "test-app" diff --git a/website/source/docs/providers/heroku/r/drain.html.markdown b/website/source/docs/providers/heroku/r/drain.html.markdown index 662843bdf..a91fced45 100644 --- a/website/source/docs/providers/heroku/r/drain.html.markdown +++ b/website/source/docs/providers/heroku/r/drain.html.markdown @@ -13,7 +13,7 @@ create and manage Log Drains on Heroku. ## Example Usage -``` +```hcl resource "heroku_drain" "default" { app = "test-app" url = "syslog://terraform.example.com:1234" diff --git a/website/source/docs/providers/icinga2/index.html.markdown b/website/source/docs/providers/icinga2/index.html.markdown index e5103813c..9c8850dee 100644 --- a/website/source/docs/providers/icinga2/index.html.markdown +++ b/website/source/docs/providers/icinga2/index.html.markdown @@ -16,7 +16,7 @@ for an API user with the appropriate permissions. ## Example Usage -``` +```hcl # Configure the Icinga2 provider provider "icinga2" { api_url = "https://192.168.33.5:5665/v1" @@ -40,7 +40,7 @@ icinga2 provider block: Usage: -``` +```hcl provider "icinga2" { api_url = "https://192.168.33.5:5665/v1" api_user = "root" @@ -55,13 +55,13 @@ You can provide your credentials via `ICINGA2_API_USER` and `ICINGA2_API_PASSWOR environment variables, storing your Icinga2 API user and password, respectively. `ICINGA2_API_URL` and `ICINGA2_INSECURE_SKIP_TLS_VERIFY` are also used, if applicable: -``` +```hcl provider "icinga" {} ``` Usage: -``` +```hcl $ export ICINGA2_API_URL=https://192.168.33.5:5665/v1 $ export ICINGA2_API_USER=root $ export ICINGA2_API_PASSWORD=icinga diff --git a/website/source/docs/providers/icinga2/r/checkcommands.html.markdown b/website/source/docs/providers/icinga2/r/checkcommands.html.markdown index 98c830f6a..1055bb6eb 100644 --- a/website/source/docs/providers/icinga2/r/checkcommands.html.markdown +++ b/website/source/docs/providers/icinga2/r/checkcommands.html.markdown @@ -13,7 +13,7 @@ and deleted. ## Example Usage -``` +```hcl # Configure a new checkcommand on an Icinga2 Server, that can be used to monitor hosts and/or services provider "icinga2" { api_url = "https://192.168.33.5:5665/v1" diff --git a/website/source/docs/providers/icinga2/r/host.html.markdown b/website/source/docs/providers/icinga2/r/host.html.markdown index 9b3ca962a..1cdc7c103 100644 --- a/website/source/docs/providers/icinga2/r/host.html.markdown +++ b/website/source/docs/providers/icinga2/r/host.html.markdown @@ -13,7 +13,7 @@ and deleted. ## Example Usage -``` +```hcl # Configure a new host to be monitored by an Icinga2 Server provider "icinga2" { api_url = "https://192.168.33.5:5665/v1" diff --git a/website/source/docs/providers/icinga2/r/hostgroup.html.markdown b/website/source/docs/providers/icinga2/r/hostgroup.html.markdown index 58684373c..ce9578f7e 100644 --- a/website/source/docs/providers/icinga2/r/hostgroup.html.markdown +++ b/website/source/docs/providers/icinga2/r/hostgroup.html.markdown @@ -13,7 +13,7 @@ and deleted. ## Example Usage -``` +```hcl # Configure a new hostgroup to be monitored by an Icinga2 Server provider "icinga2" { api_url = "https://192.168.33.5:5665/v1" diff --git a/website/source/docs/providers/icinga2/r/service.html.markdown b/website/source/docs/providers/icinga2/r/service.html.markdown index 13f654bae..968d8cef0 100644 --- a/website/source/docs/providers/icinga2/r/service.html.markdown +++ b/website/source/docs/providers/icinga2/r/service.html.markdown @@ -13,7 +13,7 @@ and deleted. ## Example Usage -``` +```hcl # Configure a new service to be monitored by an Icinga2 Server provider "icinga2" { api_url = "https://192.168.33.5:5665/v1" diff --git a/website/source/docs/providers/ignition/d/config.html.md b/website/source/docs/providers/ignition/d/config.html.md index d565758ff..bbf68bee7 100644 --- a/website/source/docs/providers/ignition/d/config.html.md +++ b/website/source/docs/providers/ignition/d/config.html.md @@ -12,7 +12,7 @@ Renders an ignition configuration as JSON. It contains all the disks, partition ## Example Usage -``` +```hcl data "ignition_config" "example" { systemd = [ "${data.ignition_systemd_unit.example.id}", diff --git a/website/source/docs/providers/ignition/d/disk.html.md b/website/source/docs/providers/ignition/d/disk.html.md index 2fc64ffc2..c061ceeb0 100644 --- a/website/source/docs/providers/ignition/d/disk.html.md +++ b/website/source/docs/providers/ignition/d/disk.html.md @@ -12,7 +12,7 @@ Describes the desired state of a system’s disk. ## Example Usage -``` +```hcl data "ignition_disk" "foo" { device = "/dev/sda" partition { diff --git a/website/source/docs/providers/ignition/d/file.html.md b/website/source/docs/providers/ignition/d/file.html.md index 9628730f2..b851bbbcd 100644 --- a/website/source/docs/providers/ignition/d/file.html.md +++ b/website/source/docs/providers/ignition/d/file.html.md @@ -14,8 +14,7 @@ Describes a file to be written in a particular filesystem. File with inline content: - -``` +```hcl data "ignition_file" "hello" { filesystem = "foo" path = "/hello.txt" @@ -27,7 +26,7 @@ data "ignition_file" "hello" { File with remote content: -``` +```hcl data "ignition_file" "hello" { filesystem = "qux" path = "/hello.txt" diff --git a/website/source/docs/providers/ignition/d/filesystem.html.md b/website/source/docs/providers/ignition/d/filesystem.html.md index b8ed0eaf4..68e66f207 100644 --- a/website/source/docs/providers/ignition/d/filesystem.html.md +++ b/website/source/docs/providers/ignition/d/filesystem.html.md @@ -12,7 +12,7 @@ Describes the desired state of a the system’s filesystems to be configured and ## Example Usage -``` +```hcl data "ignition_filesystem" "foo" { name = "root" mount { diff --git a/website/source/docs/providers/ignition/d/group.html.md b/website/source/docs/providers/ignition/d/group.html.md index ba360507a..807e72dd6 100644 --- a/website/source/docs/providers/ignition/d/group.html.md +++ b/website/source/docs/providers/ignition/d/group.html.md @@ -12,7 +12,7 @@ Describes the desired group additions to the passwd database. ## Example Usage -``` +```hcl data "ignition_group" "foo" { name = "foo" } diff --git a/website/source/docs/providers/ignition/d/networkd_unit.html.md b/website/source/docs/providers/ignition/d/networkd_unit.html.md index a60b5e67c..bf45e345b 100644 --- a/website/source/docs/providers/ignition/d/networkd_unit.html.md +++ b/website/source/docs/providers/ignition/d/networkd_unit.html.md @@ -12,7 +12,7 @@ Describes the desired state of the networkd units. ## Example Usage -``` +```hcl data "ignition_networkd_unit" "example" { name = "00-eth0.network" content = "[Match]\nName=eth0\n\n[Network]\nAddress=10.0.1.7" diff --git a/website/source/docs/providers/ignition/d/raid.html.md b/website/source/docs/providers/ignition/d/raid.html.md index 4cb32da0d..47219a251 100644 --- a/website/source/docs/providers/ignition/d/raid.html.md +++ b/website/source/docs/providers/ignition/d/raid.html.md @@ -12,7 +12,7 @@ Describes the desired state of the system’s RAID. ## Example Usage -``` +```hcl data "ignition_raid" "md" { name = "data" level = "stripe" diff --git a/website/source/docs/providers/ignition/d/systemd_unit.html.md b/website/source/docs/providers/ignition/d/systemd_unit.html.md index 58502caac..a97e32147 100644 --- a/website/source/docs/providers/ignition/d/systemd_unit.html.md +++ b/website/source/docs/providers/ignition/d/systemd_unit.html.md @@ -12,7 +12,7 @@ Describes the desired state of the systemd units. ## Example Usage -``` +```hcl data "ignition_systemd_unit" "example" { name = "example.service" content = "[Service]\nType=oneshot\nExecStart=/usr/bin/echo Hello World\n\n[Install]\nWantedBy=multi-user.target" diff --git a/website/source/docs/providers/ignition/d/user.html.md b/website/source/docs/providers/ignition/d/user.html.md index 5c0ec8f8d..c4975a739 100644 --- a/website/source/docs/providers/ignition/d/user.html.md +++ b/website/source/docs/providers/ignition/d/user.html.md @@ -12,7 +12,7 @@ Describes the desired user additions to the passwd database. ## Example Usage -``` +```hcl data "ignition_user" "foo" { name = "foo" home_dir = "/home/foo/" diff --git a/website/source/docs/providers/ignition/index.html.markdown b/website/source/docs/providers/ignition/index.html.markdown index 5b26fc075..25d067470 100644 --- a/website/source/docs/providers/ignition/index.html.markdown +++ b/website/source/docs/providers/ignition/index.html.markdown @@ -18,7 +18,7 @@ Use the navigation to the left to read about the available resources. This config will write a single service unit (shown below) with the contents of an example service. This unit will be enabled as a dependency of multi-user.target and therefore start on boot -``` +```hcl # Systemd unit data resource containing the unit definition data "ignition_systemd_unit" "example" { name = "example.service" diff --git a/website/source/docs/providers/influxdb/index.html.markdown b/website/source/docs/providers/influxdb/index.html.markdown index 45400b231..4b500ac02 100644 --- a/website/source/docs/providers/influxdb/index.html.markdown +++ b/website/source/docs/providers/influxdb/index.html.markdown @@ -28,7 +28,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl provider "influxdb" { url = "http://influxdb.example.com/" username = "terraform" diff --git a/website/source/docs/providers/influxdb/r/continuous_query.html.md b/website/source/docs/providers/influxdb/r/continuous_query.html.md index 1f62af799..7e8b596fc 100644 --- a/website/source/docs/providers/influxdb/r/continuous_query.html.md +++ b/website/source/docs/providers/influxdb/r/continuous_query.html.md @@ -12,7 +12,7 @@ The continuous_query resource allows a continuous query to be created on an Infl ## Example Usage -``` +```hcl resource "influxdb_database" "test" { name = "terraform-test" } diff --git a/website/source/docs/providers/influxdb/r/database.html.md b/website/source/docs/providers/influxdb/r/database.html.md index 0508e5fb3..0e0cf4933 100644 --- a/website/source/docs/providers/influxdb/r/database.html.md +++ b/website/source/docs/providers/influxdb/r/database.html.md @@ -12,7 +12,7 @@ The database resource allows a database to be created on an InfluxDB server. ## Example Usage -``` +```hcl resource "influxdb_database" "metrics" { name = "awesome_app" } diff --git a/website/source/docs/providers/influxdb/r/user.html.md b/website/source/docs/providers/influxdb/r/user.html.md index 6ff0397e4..a1911b5e9 100644 --- a/website/source/docs/providers/influxdb/r/user.html.md +++ b/website/source/docs/providers/influxdb/r/user.html.md @@ -12,7 +12,7 @@ The user resource allows a user to be created on an InfluxDB server. ## Example Usage -``` +```hcl resource "influxdb_database" "green" { name = "terraform-green" } diff --git a/website/source/docs/providers/librato/index.html.markdown b/website/source/docs/providers/librato/index.html.markdown index 58413cca2..b80d83081 100644 --- a/website/source/docs/providers/librato/index.html.markdown +++ b/website/source/docs/providers/librato/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Librato provider provider "librato" { email = "ops@company.com" diff --git a/website/source/docs/providers/librato/r/alert.html.markdown b/website/source/docs/providers/librato/r/alert.html.markdown index 67a904dfd..85dc6a7bf 100644 --- a/website/source/docs/providers/librato/r/alert.html.markdown +++ b/website/source/docs/providers/librato/r/alert.html.markdown @@ -13,7 +13,7 @@ create and manage alerts on Librato. ## Example Usage -``` +```hcl # Create a new Librato alert resource "librato_alert" "myalert" { name = "MyAlert" diff --git a/website/source/docs/providers/librato/r/service.html.markdown b/website/source/docs/providers/librato/r/service.html.markdown index f1b0221d9..1e579bf77 100644 --- a/website/source/docs/providers/librato/r/service.html.markdown +++ b/website/source/docs/providers/librato/r/service.html.markdown @@ -13,7 +13,7 @@ create and manage notification services on Librato. ## Example Usage -``` +```hcl # Create a new Librato service resource "librato_service" "email" { title = "Email the admins" diff --git a/website/source/docs/providers/librato/r/space.html.markdown b/website/source/docs/providers/librato/r/space.html.markdown index 2ddb3401e..1d6670d7a 100644 --- a/website/source/docs/providers/librato/r/space.html.markdown +++ b/website/source/docs/providers/librato/r/space.html.markdown @@ -13,7 +13,7 @@ create and manage spaces on Librato. ## Example Usage -``` +```hcl # Create a new Librato space resource "librato_space" "default" { name = "My New Space" diff --git a/website/source/docs/providers/librato/r/space_chart.html.markdown b/website/source/docs/providers/librato/r/space_chart.html.markdown index 5e5db1e8a..90ad75898 100644 --- a/website/source/docs/providers/librato/r/space_chart.html.markdown +++ b/website/source/docs/providers/librato/r/space_chart.html.markdown @@ -13,7 +13,7 @@ create and manage charts in Librato Spaces. ## Example Usage -``` +```hcl # Create a new Librato space resource "librato_space" "my_space" { name = "My New Space" diff --git a/website/source/docs/providers/logentries/index.html.markdown b/website/source/docs/providers/logentries/index.html.markdown index 77eecc70c..31d9f57f6 100644 --- a/website/source/docs/providers/logentries/index.html.markdown +++ b/website/source/docs/providers/logentries/index.html.markdown @@ -14,7 +14,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Logentries provider provider "logentries" { account_key = "${var.logentries_account_key}" diff --git a/website/source/docs/providers/logentries/r/log.html.markdown b/website/source/docs/providers/logentries/r/log.html.markdown index 44b0da278..dbdbd1d6c 100644 --- a/website/source/docs/providers/logentries/r/log.html.markdown +++ b/website/source/docs/providers/logentries/r/log.html.markdown @@ -12,7 +12,7 @@ Provides a Logentries log resource. ## Example Usage -``` +```hcl # Create a log and add it to the log set resource "logentries_log" "app_log" { logset_id = "${logentries_logset.host_logs.id}" diff --git a/website/source/docs/providers/logentries/r/logset.html.markdown b/website/source/docs/providers/logentries/r/logset.html.markdown index 1c7f5a119..119347ee7 100644 --- a/website/source/docs/providers/logentries/r/logset.html.markdown +++ b/website/source/docs/providers/logentries/r/logset.html.markdown @@ -12,7 +12,7 @@ Provides a Logentries logset resource. A logset is a collection of `logentries_l ## Example Usage -``` +```hcl # Create a log set resource "logentries_logset" "host_logs" { name = "${var.server}-logs" diff --git a/website/source/docs/providers/mailgun/index.html.markdown b/website/source/docs/providers/mailgun/index.html.markdown index b46b5581c..e4057287c 100644 --- a/website/source/docs/providers/mailgun/index.html.markdown +++ b/website/source/docs/providers/mailgun/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Mailgun provider provider "mailgun" { api_key = "${var.mailgun_api_key}" diff --git a/website/source/docs/providers/mailgun/r/domain.html.markdown b/website/source/docs/providers/mailgun/r/domain.html.markdown index f417d7e27..791fa6052 100644 --- a/website/source/docs/providers/mailgun/r/domain.html.markdown +++ b/website/source/docs/providers/mailgun/r/domain.html.markdown @@ -13,7 +13,7 @@ create and manage applications on Mailgun. ## Example Usage -``` +```hcl # Create a new Mailgun domain resource "mailgun_domain" "default" { name = "test.example.com" diff --git a/website/source/docs/providers/newrelic/d/application.html.markdown b/website/source/docs/providers/newrelic/d/application.html.markdown index a0f383952..8d0f4a209 100644 --- a/website/source/docs/providers/newrelic/d/application.html.markdown +++ b/website/source/docs/providers/newrelic/d/application.html.markdown @@ -12,7 +12,7 @@ Use this data source to get information about a specific application in New Reli ## Example Usage -``` +```hcl data "newrelic_application" "app" { name = "my-app" } diff --git a/website/source/docs/providers/newrelic/index.html.markdown b/website/source/docs/providers/newrelic/index.html.markdown index faaa7fc37..ad1e4a3fc 100644 --- a/website/source/docs/providers/newrelic/index.html.markdown +++ b/website/source/docs/providers/newrelic/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the New Relic provider provider "newrelic" { api_key = "${var.newrelic_api_key}" diff --git a/website/source/docs/providers/newrelic/r/alert_channel.html.markdown b/website/source/docs/providers/newrelic/r/alert_channel.html.markdown index 906700250..eb533a778 100644 --- a/website/source/docs/providers/newrelic/r/alert_channel.html.markdown +++ b/website/source/docs/providers/newrelic/r/alert_channel.html.markdown @@ -10,7 +10,7 @@ description: |- ## Example Usage -``` +```hcl resource "newrelic_alert_channel" "foo" { name = "foo" type = "email" diff --git a/website/source/docs/providers/newrelic/r/alert_condition.html.markdown b/website/source/docs/providers/newrelic/r/alert_condition.html.markdown index 6b41f92e9..bbbcb2c27 100644 --- a/website/source/docs/providers/newrelic/r/alert_condition.html.markdown +++ b/website/source/docs/providers/newrelic/r/alert_condition.html.markdown @@ -10,7 +10,7 @@ description: |- ## Example Usage -``` +```hcl data "newrelic_application" "app" { name = "my-app" } diff --git a/website/source/docs/providers/newrelic/r/alert_policy.html.markdown b/website/source/docs/providers/newrelic/r/alert_policy.html.markdown index abb77c6f9..fddb20461 100644 --- a/website/source/docs/providers/newrelic/r/alert_policy.html.markdown +++ b/website/source/docs/providers/newrelic/r/alert_policy.html.markdown @@ -10,7 +10,7 @@ description: |- ## Example Usage -``` +```hcl resource "newrelic_alert_policy" "foo" { name = "foo" } diff --git a/website/source/docs/providers/newrelic/r/alert_policy_channel.html.markdown b/website/source/docs/providers/newrelic/r/alert_policy_channel.html.markdown index fae8a4327..310d14876 100644 --- a/website/source/docs/providers/newrelic/r/alert_policy_channel.html.markdown +++ b/website/source/docs/providers/newrelic/r/alert_policy_channel.html.markdown @@ -10,7 +10,7 @@ description: |- ## Example Usage -``` +```hcl resource "newrelic_alert_policy" "foo" { name = "foo" } diff --git a/website/source/docs/providers/ns1/index.html.markdown b/website/source/docs/providers/ns1/index.html.markdown index 7260065a8..c4d4ccf4a 100644 --- a/website/source/docs/providers/ns1/index.html.markdown +++ b/website/source/docs/providers/ns1/index.html.markdown @@ -15,7 +15,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the NS1 provider provider "ns1" { apikey = "${var.ns1_apikey}" diff --git a/website/source/docs/providers/ns1/r/apikey.html.markdown b/website/source/docs/providers/ns1/r/apikey.html.markdown index b44dc1ea0..5a065ada8 100644 --- a/website/source/docs/providers/ns1/r/apikey.html.markdown +++ b/website/source/docs/providers/ns1/r/apikey.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 Api Key resource. This can be used to create, modify, and delete ## Example Usage -``` +```hcl resource "ns1_team" "example" { name = "Example team" } diff --git a/website/source/docs/providers/ns1/r/datafeed.html.markdown b/website/source/docs/providers/ns1/r/datafeed.html.markdown index 753c13401..a02dcbbb7 100644 --- a/website/source/docs/providers/ns1/r/datafeed.html.markdown +++ b/website/source/docs/providers/ns1/r/datafeed.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 Data Feed resource. This can be used to create, modify, and delet ## Example Usage -``` +```hcl resource "ns1_datasource" "example" { name = "example" sourcetype = "nsone_v1" diff --git a/website/source/docs/providers/ns1/r/datasource.html.markdown b/website/source/docs/providers/ns1/r/datasource.html.markdown index 077299c48..d41c861d9 100644 --- a/website/source/docs/providers/ns1/r/datasource.html.markdown +++ b/website/source/docs/providers/ns1/r/datasource.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 Data Source resource. This can be used to create, modify, and del ## Example Usage -``` +```hcl resource "ns1_datasource" "example" { name = "example" sourcetype = "nsone_v1" diff --git a/website/source/docs/providers/ns1/r/monitoringjob.html.markdown b/website/source/docs/providers/ns1/r/monitoringjob.html.markdown index 1def3e4a2..8220c1c6c 100644 --- a/website/source/docs/providers/ns1/r/monitoringjob.html.markdown +++ b/website/source/docs/providers/ns1/r/monitoringjob.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 Monitoring Job resource. This can be used to create, modify, and ## Example Usage -``` +```hcl resource "ns1_monitoringjob" "uswest_monitor" { name = "uswest" active = true diff --git a/website/source/docs/providers/ns1/r/notifylist.html.markdown b/website/source/docs/providers/ns1/r/notifylist.html.markdown index 35f6f67e8..af4500bca 100644 --- a/website/source/docs/providers/ns1/r/notifylist.html.markdown +++ b/website/source/docs/providers/ns1/r/notifylist.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 Notify List resource. This can be used to create, modify, and del ## Example Usage -``` +```hcl resource "ns1_notifylist" "nl" { name = "my notify list" notifications = { diff --git a/website/source/docs/providers/ns1/r/record.html.markdown b/website/source/docs/providers/ns1/r/record.html.markdown index 05b2bde50..fb03a78f5 100644 --- a/website/source/docs/providers/ns1/r/record.html.markdown +++ b/website/source/docs/providers/ns1/r/record.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 Record resource. This can be used to create, modify, and delete r ## Example Usage -``` +```hcl resource "ns1_zone" "tld" { zone = "terraform.example" } diff --git a/website/source/docs/providers/ns1/r/team.html.markdown b/website/source/docs/providers/ns1/r/team.html.markdown index acd137aa7..76cba4e4b 100644 --- a/website/source/docs/providers/ns1/r/team.html.markdown +++ b/website/source/docs/providers/ns1/r/team.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 Team resource. This can be used to create, modify, and delete tea ## Example Usage -``` +```hcl # Create a new NS1 Team resource "ns1_team" "example" { name = "Example team" diff --git a/website/source/docs/providers/ns1/r/user.html.markdown b/website/source/docs/providers/ns1/r/user.html.markdown index 0451f9ce4..50b0faa69 100644 --- a/website/source/docs/providers/ns1/r/user.html.markdown +++ b/website/source/docs/providers/ns1/r/user.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 User resource. Creating a user sends an invitation email to the u ## Example Usage -``` +```hcl resource "ns1_team" "example" { name = "Example team" diff --git a/website/source/docs/providers/ns1/r/zone.html.markdown b/website/source/docs/providers/ns1/r/zone.html.markdown index 17e2450da..bd23ed4be 100644 --- a/website/source/docs/providers/ns1/r/zone.html.markdown +++ b/website/source/docs/providers/ns1/r/zone.html.markdown @@ -12,7 +12,7 @@ Provides a NS1 DNS Zone resource. This can be used to create, modify, and delete ## Example Usage -``` +```hcl # Create a new DNS zone resource "ns1_zone" "example" { zone = "terraform.example.io" diff --git a/website/source/docs/providers/openstack/d/images_image_v2.html.markdown b/website/source/docs/providers/openstack/d/images_image_v2.html.markdown index 70283acf4..5e9f724c3 100644 --- a/website/source/docs/providers/openstack/d/images_image_v2.html.markdown +++ b/website/source/docs/providers/openstack/d/images_image_v2.html.markdown @@ -12,7 +12,7 @@ Use this data source to get the ID of an available OpenStack image. ## Example Usage -``` +```hcl data "openstack_images_image_v2" "ubuntu" { name = "Ubuntu 16.04" most_recent = true diff --git a/website/source/docs/providers/openstack/d/networking_network_v2.html.markdown b/website/source/docs/providers/openstack/d/networking_network_v2.html.markdown index 571a698f1..c297769c2 100644 --- a/website/source/docs/providers/openstack/d/networking_network_v2.html.markdown +++ b/website/source/docs/providers/openstack/d/networking_network_v2.html.markdown @@ -12,7 +12,7 @@ Use this data source to get the ID of an available OpenStack network. ## Example Usage -``` +```hcl data "openstack_networking_network_v2" "network" { name = "tf_test_network" } diff --git a/website/source/docs/providers/openstack/index.html.markdown b/website/source/docs/providers/openstack/index.html.markdown index adbb7db72..378af04c1 100644 --- a/website/source/docs/providers/openstack/index.html.markdown +++ b/website/source/docs/providers/openstack/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the OpenStack Provider provider "openstack" { user_name = "admin" diff --git a/website/source/docs/providers/openstack/r/blockstorage_volume_attach_v2.html.markdown b/website/source/docs/providers/openstack/r/blockstorage_volume_attach_v2.html.markdown index bf5a13f10..f7d078b09 100644 --- a/website/source/docs/providers/openstack/r/blockstorage_volume_attach_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/blockstorage_volume_attach_v2.html.markdown @@ -24,7 +24,7 @@ the `openstack_compute_volume_attach_v2` resource for that. ## Example Usage -``` +```hcl resource "openstack_blockstorage_volume_v2" "volume_1" { name = "volume_1" size = 1 diff --git a/website/source/docs/providers/openstack/r/blockstorage_volume_v1.html.markdown b/website/source/docs/providers/openstack/r/blockstorage_volume_v1.html.markdown index 93fc85dc4..c0282bf7b 100644 --- a/website/source/docs/providers/openstack/r/blockstorage_volume_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/blockstorage_volume_v1.html.markdown @@ -12,7 +12,7 @@ Manages a V1 volume resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_blockstorage_volume_v1" "volume_1" { region = "RegionOne" name = "tf-test-volume" diff --git a/website/source/docs/providers/openstack/r/blockstorage_volume_v2.html.markdown b/website/source/docs/providers/openstack/r/blockstorage_volume_v2.html.markdown index 4aaa9c575..951084d4d 100644 --- a/website/source/docs/providers/openstack/r/blockstorage_volume_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/blockstorage_volume_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 volume resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_blockstorage_volume_v2" "volume_1" { region = "RegionOne" name = "volume_1" diff --git a/website/source/docs/providers/openstack/r/compute_floatingip_associate_v2.html.markdown b/website/source/docs/providers/openstack/r/compute_floatingip_associate_v2.html.markdown index d729e36b5..698869f6e 100644 --- a/website/source/docs/providers/openstack/r/compute_floatingip_associate_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/compute_floatingip_associate_v2.html.markdown @@ -15,7 +15,7 @@ Associate a floating IP to an instance. This can be used instead of the ### Automatically detect the correct network -``` +```hcl resource "openstack_compute_instance_v2" "instance_1" { name = "instance_1" image_id = "ad091b52-742f-469e-8f3c-fd81cadf0743" @@ -36,7 +36,7 @@ resource "openstack_compute_floatingip_associate_v2" "fip_1" { ### Explicitly set the network to attach to -``` +```hcl resource "openstack_compute_instance_v2" "instance_1" { name = "instance_1" image_id = "ad091b52-742f-469e-8f3c-fd81cadf0743" diff --git a/website/source/docs/providers/openstack/r/compute_floatingip_v2.html.markdown b/website/source/docs/providers/openstack/r/compute_floatingip_v2.html.markdown index cbaee21ce..c00945e13 100644 --- a/website/source/docs/providers/openstack/r/compute_floatingip_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/compute_floatingip_v2.html.markdown @@ -15,7 +15,7 @@ but only networking floating IPs can be used with load balancers. ## Example Usage -``` +```hcl resource "openstack_compute_floatingip_v2" "floatip_1" { pool = "public" } diff --git a/website/source/docs/providers/openstack/r/compute_instance_v2.html.markdown b/website/source/docs/providers/openstack/r/compute_instance_v2.html.markdown index 7466b4301..87492d433 100644 --- a/website/source/docs/providers/openstack/r/compute_instance_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/compute_instance_v2.html.markdown @@ -14,7 +14,7 @@ Manages a V2 VM instance resource within OpenStack. ### Basic Instance -``` +```hcl resource "openstack_compute_instance_v2" "basic" { name = "basic" image_id = "ad091b52-742f-469e-8f3c-fd81cadf0743" @@ -34,7 +34,7 @@ resource "openstack_compute_instance_v2" "basic" { ### Instance With Attached Volume -``` +```hcl resource "openstack_blockstorage_volume_v2" "myvol" { name = "myvol" size = 1 @@ -60,7 +60,7 @@ resource "openstack_compute_volume_attach_v2" "attached" { ### Boot From Volume -``` +```hcl resource "openstack_compute_instance_v2" "boot-from-volume" { name = "boot-from-volume" flavor_id = "3" @@ -84,7 +84,7 @@ resource "openstack_compute_instance_v2" "boot-from-volume" { ### Boot From an Existing Volume -``` +```hcl resource "openstack_blockstorage_volume_v1" "myvol" { name = "myvol" size = 5 @@ -113,7 +113,7 @@ resource "openstack_compute_instance_v2" "boot-from-volume" { ### Boot Instance, Create Volume, and Attach Volume as a Block Device -``` +```hcl resource "openstack_compute_instance_v2" "instance_1" { name = "instance_1" image_id = "" @@ -141,7 +141,7 @@ resource "openstack_compute_instance_v2" "instance_1" { ### Boot Instance and Attach Existing Volume as a Block Device -``` +```hcl resource "openstack_blockstorage_volume_v2" "volume_1" { name = "volume_1" size = 1 @@ -174,7 +174,7 @@ resource "openstack_compute_instance_v2" "instance_1" { ### Instance With Multiple Networks -``` +```hcl resource "openstack_networking_floatingip_v2" "myip" { pool = "my_pool" } @@ -204,7 +204,7 @@ resource "openstack_compute_floatingip_associate_v2" "myip" { ### Instance With Personality -``` +```hcl resource "openstack_compute_instance_v2" "personality" { name = "personality" image_id = "ad091b52-742f-469e-8f3c-fd81cadf0743" @@ -225,7 +225,7 @@ resource "openstack_compute_instance_v2" "personality" { ### Instance with Multiple Ephemeral Disks -``` +```hcl resource "openstack_compute_instance_v2" "multi-eph" { name = "multi_eph" image_id = "ad091b52-742f-469e-8f3c-fd81cadf0743" @@ -532,7 +532,7 @@ single IP address the user would want returned to the Instance's state information. Therefore, in order for a Provisioner to connect to an Instance via it's network Port, customize the `connection` information: -``` +```hcl resource "openstack_networking_port_v2" "port_1" { name = "port_1" admin_state_up = "true" diff --git a/website/source/docs/providers/openstack/r/compute_keypair_v2.html.markdown b/website/source/docs/providers/openstack/r/compute_keypair_v2.html.markdown index 16bade7a7..9f788060b 100644 --- a/website/source/docs/providers/openstack/r/compute_keypair_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/compute_keypair_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 keypair resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_compute_keypair_v2" "test-keypair" { name = "my-keypair" public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAjpC1hwiOCCmKEWxJ4qzTTsJbKzndLotBCz5PcwtUnflmU+gHJtWMZKpuEGVi29h0A/+ydKek1O18k10Ff+4tyFjiHDQAnOfgWf7+b1yK+qDip3X1C0UPMbwHlTfSGWLGZqd9LvEFx9k3h/M+VtMvwR1lJ9LUyTAImnNjWG7TaIPmui30HvM2UiFEmqkr4ijq45MyX2+fLIePLRIF61p4whjHAQYufqyno3BS48icQb4p6iVEZPo4AE2o9oIyQvj2mx4dk5Y8CgSETOZTYDOR3rU2fZTRDRgPJDH9FWvQjF5tA0p3d9CoWWd2s6GKKbfoUIi8R/Db1BSPJwkqB" diff --git a/website/source/docs/providers/openstack/r/compute_secgroup_v2.html.markdown b/website/source/docs/providers/openstack/r/compute_secgroup_v2.html.markdown index d542c6a4f..7385524bb 100644 --- a/website/source/docs/providers/openstack/r/compute_secgroup_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/compute_secgroup_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 security group resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_compute_secgroup_v2" "secgroup_1" { name = "my_secgroup" description = "my security group" @@ -92,7 +92,7 @@ The following attributes are exported: When using ICMP as the `ip_protocol`, the `from_port` sets the ICMP _type_ and the `to_port` sets the ICMP _code_. To allow all ICMP types, set each value to `-1`, like so: -``` +```hcl rule { from_port = -1 to_port = -1 @@ -107,7 +107,7 @@ A list of ICMP types and codes can be found [here](https://en.wikipedia.org/wiki When referencing a security group in a configuration (for example, a configuration creates a new security group and then needs to apply it to an instance being created in the same configuration), it is currently recommended to reference the security group by name and not by ID, like this: -``` +```hcl resource "openstack_compute_instance_v2" "test-server" { name = "tf-test" image_id = "ad091b52-742f-469e-8f3c-fd81cadf0743" diff --git a/website/source/docs/providers/openstack/r/compute_servergroup_v2.html.markdown b/website/source/docs/providers/openstack/r/compute_servergroup_v2.html.markdown index 340d5ed48..75f8f426d 100644 --- a/website/source/docs/providers/openstack/r/compute_servergroup_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/compute_servergroup_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 Server Group resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_compute_servergroup_v2" "test-sg" { name = "my-sg" policies = ["anti-affinity"] diff --git a/website/source/docs/providers/openstack/r/compute_volume_attach_v2.html.markdown b/website/source/docs/providers/openstack/r/compute_volume_attach_v2.html.markdown index 694eb6c3c..1b9b2fdf1 100644 --- a/website/source/docs/providers/openstack/r/compute_volume_attach_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/compute_volume_attach_v2.html.markdown @@ -13,7 +13,7 @@ Compute (Nova) v2 API. ## Example Usage -``` +```hcl resource "openstack_blockstorage_volume_v2" "volume_1" { name = "volume_1" size = 1 diff --git a/website/source/docs/providers/openstack/r/fw_firewall_v1.html.markdown b/website/source/docs/providers/openstack/r/fw_firewall_v1.html.markdown index 90c626b57..9df57dc08 100644 --- a/website/source/docs/providers/openstack/r/fw_firewall_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/fw_firewall_v1.html.markdown @@ -12,7 +12,7 @@ Manages a v1 firewall resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_fw_rule_v1" "rule_1" { name = "my-rule-1" description = "drop TELNET traffic" diff --git a/website/source/docs/providers/openstack/r/fw_policy_v1.html.markdown b/website/source/docs/providers/openstack/r/fw_policy_v1.html.markdown index 6443c9496..e2eabf3a8 100644 --- a/website/source/docs/providers/openstack/r/fw_policy_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/fw_policy_v1.html.markdown @@ -12,7 +12,7 @@ Manages a v1 firewall policy resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_fw_rule_v1" "rule_1" { name = "my-rule-1" description = "drop TELNET traffic" diff --git a/website/source/docs/providers/openstack/r/fw_rule_v1.html.markdown b/website/source/docs/providers/openstack/r/fw_rule_v1.html.markdown index dbc4d15ba..69ea31a00 100644 --- a/website/source/docs/providers/openstack/r/fw_rule_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/fw_rule_v1.html.markdown @@ -12,7 +12,7 @@ Manages a v1 firewall rule resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_fw_rule_v1" "rule_1" { name = "my_rule" description = "drop TELNET traffic" diff --git a/website/source/docs/providers/openstack/r/images_image_v2.html.markdown b/website/source/docs/providers/openstack/r/images_image_v2.html.markdown index 252e40374..91ec99463 100644 --- a/website/source/docs/providers/openstack/r/images_image_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/images_image_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 Image resource within OpenStack Glance. ## Example Usage -``` +```hcl resource "openstack_images_image_v2" "rancheros" { name = "RancherOS" image_source_url = "https://releases.rancher.com/os/latest/rancheros-openstack.img" diff --git a/website/source/docs/providers/openstack/r/lb_listener_v2.html.markdown b/website/source/docs/providers/openstack/r/lb_listener_v2.html.markdown index 7062bb348..579d2f744 100644 --- a/website/source/docs/providers/openstack/r/lb_listener_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_listener_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 listener resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_listener_v2" "listener_1" { protocol = "HTTP" protocol_port = 8080 diff --git a/website/source/docs/providers/openstack/r/lb_loadbalancer_v2.html.markdown b/website/source/docs/providers/openstack/r/lb_loadbalancer_v2.html.markdown index 7da4f3178..e8ee33e9c 100644 --- a/website/source/docs/providers/openstack/r/lb_loadbalancer_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_loadbalancer_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 loadbalancer resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_loadbalancer_v2" "lb_1" { vip_subnet_id = "d9415786-5f1a-428b-b35f-2f1523e146d2" } diff --git a/website/source/docs/providers/openstack/r/lb_member_v1.html.markdown b/website/source/docs/providers/openstack/r/lb_member_v1.html.markdown index 00032f6da..a6bf9d544 100644 --- a/website/source/docs/providers/openstack/r/lb_member_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_member_v1.html.markdown @@ -12,7 +12,7 @@ Manages a V1 load balancer member resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_member_v1" "member_1" { pool_id = "d9415786-5f1a-428b-b35f-2f1523e146d2" address = "192.168.0.10" diff --git a/website/source/docs/providers/openstack/r/lb_member_v2.html.markdown b/website/source/docs/providers/openstack/r/lb_member_v2.html.markdown index e2ff0c637..ea5e7ecfb 100644 --- a/website/source/docs/providers/openstack/r/lb_member_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_member_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 member resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_member_v2" "member_1" { address = "192.168.199.23" protocol_port = 8080 diff --git a/website/source/docs/providers/openstack/r/lb_monitor_v1.html.markdown b/website/source/docs/providers/openstack/r/lb_monitor_v1.html.markdown index a599da803..a03f748ed 100644 --- a/website/source/docs/providers/openstack/r/lb_monitor_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_monitor_v1.html.markdown @@ -12,7 +12,7 @@ Manages a V1 load balancer monitor resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_monitor_v1" "monitor_1" { type = "PING" delay = 30 diff --git a/website/source/docs/providers/openstack/r/lb_monitor_v2.html.markdown b/website/source/docs/providers/openstack/r/lb_monitor_v2.html.markdown index a60ed9a8f..86c65aa5c 100644 --- a/website/source/docs/providers/openstack/r/lb_monitor_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_monitor_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 monitor resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_monitor_v2" "monitor_1" { type = "PING" delay = 20 diff --git a/website/source/docs/providers/openstack/r/lb_pool_v1.html.markdown b/website/source/docs/providers/openstack/r/lb_pool_v1.html.markdown index dae4471ba..54afa16d3 100644 --- a/website/source/docs/providers/openstack/r/lb_pool_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_pool_v1.html.markdown @@ -12,7 +12,7 @@ Manages a V1 load balancer pool resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_pool_v1" "pool_1" { name = "tf_test_lb_pool" protocol = "HTTP" diff --git a/website/source/docs/providers/openstack/r/lb_pool_v2.html.markdown b/website/source/docs/providers/openstack/r/lb_pool_v2.html.markdown index aff0550ad..1613ad72a 100644 --- a/website/source/docs/providers/openstack/r/lb_pool_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_pool_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 pool resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_pool_v2" "pool_1" { protocol = "ProtocolHTTP" lb_method = "ROUND_ROBIN" diff --git a/website/source/docs/providers/openstack/r/lb_vip_v1.html.markdown b/website/source/docs/providers/openstack/r/lb_vip_v1.html.markdown index c08e45158..403354a99 100644 --- a/website/source/docs/providers/openstack/r/lb_vip_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/lb_vip_v1.html.markdown @@ -12,7 +12,7 @@ Manages a V1 load balancer vip resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_lb_vip_v1" "vip_1" { name = "tf_test_lb_vip" subnet_id = "12345" diff --git a/website/source/docs/providers/openstack/r/networking_floatingip_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_floatingip_v2.html.markdown index f9dfb5cd3..a59f9d341 100644 --- a/website/source/docs/providers/openstack/r/networking_floatingip_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_floatingip_v2.html.markdown @@ -15,7 +15,7 @@ but only compute floating IPs can be used with compute instances. ## Example Usage -``` +```hcl resource "openstack_networking_floatingip_v2" "floatip_1" { pool = "public" } diff --git a/website/source/docs/providers/openstack/r/networking_network_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_network_v2.html.markdown index b16c08eaa..5eb4ca0fd 100644 --- a/website/source/docs/providers/openstack/r/networking_network_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_network_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 Neutron network resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_networking_network_v2" "network_1" { name = "network_1" admin_state_up = "true" diff --git a/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown index 9cb62ac40..5cbef5478 100644 --- a/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_port_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 port resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_networking_network_v2" "network_1" { name = "network_1" admin_state_up = "true" diff --git a/website/source/docs/providers/openstack/r/networking_router_interface_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_router_interface_v2.html.markdown index a245f5c13..610c04ed1 100644 --- a/website/source/docs/providers/openstack/r/networking_router_interface_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_router_interface_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 router interface resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_networking_network_v2" "network_1" { name = "tf_test_network" admin_state_up = "true" diff --git a/website/source/docs/providers/openstack/r/networking_router_route_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_router_route_v2.html.markdown index 9a380fda4..fac11c0f1 100644 --- a/website/source/docs/providers/openstack/r/networking_router_route_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_router_route_v2.html.markdown @@ -12,7 +12,7 @@ Creates a routing entry on a OpenStack V2 router. ## Example Usage -``` +```hcl resource "openstack_networking_router_v2" "router_1" { name = "router_1" admin_state_up = "true" diff --git a/website/source/docs/providers/openstack/r/networking_router_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_router_v2.html.markdown index 4518226bf..be760746f 100644 --- a/website/source/docs/providers/openstack/r/networking_router_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_router_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 router resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_networking_router_v2" "router_1" { name = "my_router" external_gateway = "f67f0d72-0ddf-11e4-9d95-e1f29f417e2f" diff --git a/website/source/docs/providers/openstack/r/networking_secgroup_rule_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_secgroup_rule_v2.html.markdown index 2770f5783..67db99516 100644 --- a/website/source/docs/providers/openstack/r/networking_secgroup_rule_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_secgroup_rule_v2.html.markdown @@ -14,7 +14,7 @@ and also allows an admin to target a specific tenant_id. ## Example Usage -``` +```hcl resource "openstack_networking_secgroup_v2" "secgroup_1" { name = "secgroup_1" description = "My neutron security group" diff --git a/website/source/docs/providers/openstack/r/networking_secgroup_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_secgroup_v2.html.markdown index 6d3d8d330..e3f2a30e5 100644 --- a/website/source/docs/providers/openstack/r/networking_secgroup_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_secgroup_v2.html.markdown @@ -14,7 +14,7 @@ and also allows an admin to target a specific tenant_id. ## Example Usage -``` +```hcl resource "openstack_networking_secgroup_v2" "secgroup_1" { name = "secgroup_1" description = "My neutron security group" @@ -61,7 +61,7 @@ Terraform, so if you prefer to have *all* aspects of your infrastructure managed by Terraform, set `delete_default_rules` to `true` and then create separate security group rules such as the following: -``` +```hcl resource "openstack_networking_secgroup_rule_v2" "secgroup_rule_v4" { direction = "egress" ethertype = "IPv4" diff --git a/website/source/docs/providers/openstack/r/networking_subnet_v2.html.markdown b/website/source/docs/providers/openstack/r/networking_subnet_v2.html.markdown index b604484d4..0d094591c 100644 --- a/website/source/docs/providers/openstack/r/networking_subnet_v2.html.markdown +++ b/website/source/docs/providers/openstack/r/networking_subnet_v2.html.markdown @@ -12,7 +12,7 @@ Manages a V2 Neutron subnet resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_networking_network_v2" "network_1" { name = "tf_test_network" admin_state_up = "true" diff --git a/website/source/docs/providers/openstack/r/objectstorage_container_v1.html.markdown b/website/source/docs/providers/openstack/r/objectstorage_container_v1.html.markdown index 807927240..21ca25c6a 100644 --- a/website/source/docs/providers/openstack/r/objectstorage_container_v1.html.markdown +++ b/website/source/docs/providers/openstack/r/objectstorage_container_v1.html.markdown @@ -12,7 +12,7 @@ Manages a V1 container resource within OpenStack. ## Example Usage -``` +```hcl resource "openstack_objectstorage_container_v1" "container_1" { region = "RegionOne" name = "tf-test-container-1" diff --git a/website/source/docs/providers/opsgenie/d/user.html.markdown b/website/source/docs/providers/opsgenie/d/user.html.markdown index c0424197b..253a10df3 100644 --- a/website/source/docs/providers/opsgenie/d/user.html.markdown +++ b/website/source/docs/providers/opsgenie/d/user.html.markdown @@ -12,7 +12,7 @@ Use this data source to get information about a specific user within OpsGenie. ## Example Usage -``` +```hcl data "opsgenie_user" "cookie_monster" { username = "me@cookie-monster.com" } diff --git a/website/source/docs/providers/opsgenie/index.html.markdown b/website/source/docs/providers/opsgenie/index.html.markdown index 849779435..526764fc0 100644 --- a/website/source/docs/providers/opsgenie/index.html.markdown +++ b/website/source/docs/providers/opsgenie/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the OpenStack Provider provider "opsgenie" { api_key = "key" diff --git a/website/source/docs/providers/opsgenie/r/team.html.markdown b/website/source/docs/providers/opsgenie/r/team.html.markdown index 45cfdf988..3991ee680 100644 --- a/website/source/docs/providers/opsgenie/r/team.html.markdown +++ b/website/source/docs/providers/opsgenie/r/team.html.markdown @@ -12,7 +12,7 @@ Manages a Team within OpsGenie. ## Example Usage -``` +```hcl resource "opsgenie_user" "first" { username = "user@domain.com" full_name = "Cookie Monster" diff --git a/website/source/docs/providers/opsgenie/r/user.html.markdown b/website/source/docs/providers/opsgenie/r/user.html.markdown index 0194fda33..88cb904bb 100644 --- a/website/source/docs/providers/opsgenie/r/user.html.markdown +++ b/website/source/docs/providers/opsgenie/r/user.html.markdown @@ -12,7 +12,7 @@ Manages a User within OpsGenie. ## Example Usage -``` +```hcl resource "opsgenie_user" "test" { username = "user@domain.com" full_name = "Cookie Monster" diff --git a/website/source/docs/providers/packet/index.html.markdown b/website/source/docs/providers/packet/index.html.markdown index 6663127be..c29833542 100644 --- a/website/source/docs/providers/packet/index.html.markdown +++ b/website/source/docs/providers/packet/index.html.markdown @@ -15,7 +15,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Packet Provider provider "packet" { auth_token = "${var.auth_token}" diff --git a/website/source/docs/providers/packet/r/device.html.markdown b/website/source/docs/providers/packet/r/device.html.markdown index 91dfbdd90..5b8cb1615 100644 --- a/website/source/docs/providers/packet/r/device.html.markdown +++ b/website/source/docs/providers/packet/r/device.html.markdown @@ -13,7 +13,7 @@ modify, and delete devices. ## Example Usage -``` +```hcl # Create a device and add it to cool_project resource "packet_device" "web1" { hostname = "tf.coreos2" diff --git a/website/source/docs/providers/packet/r/project.html.markdown b/website/source/docs/providers/packet/r/project.html.markdown index 0aad6557f..f7ee09db3 100644 --- a/website/source/docs/providers/packet/r/project.html.markdown +++ b/website/source/docs/providers/packet/r/project.html.markdown @@ -13,7 +13,7 @@ in your projects. ## Example Usage -``` +```hcl # Create a new Project resource "packet_project" "tf_project_1" { name = "Terraform Fun" diff --git a/website/source/docs/providers/packet/r/ssh_key.html.markdown b/website/source/docs/providers/packet/r/ssh_key.html.markdown index 6fbe6f70a..7eaaa042a 100644 --- a/website/source/docs/providers/packet/r/ssh_key.html.markdown +++ b/website/source/docs/providers/packet/r/ssh_key.html.markdown @@ -15,7 +15,7 @@ device creation. ## Example Usage -``` +```hcl # Create a new SSH key resource "packet_ssh_key" "key1" { name = "terraform-1" diff --git a/website/source/docs/providers/packet/r/volume.html.markdown b/website/source/docs/providers/packet/r/volume.html.markdown index 5b654bc91..3ea4a292f 100644 --- a/website/source/docs/providers/packet/r/volume.html.markdown +++ b/website/source/docs/providers/packet/r/volume.html.markdown @@ -16,7 +16,7 @@ scripts. ## Example Usage -``` +```hcl # Create a new block volume resource "packet_volume" "volume1" { description = "terraform-volume-1" diff --git a/website/source/docs/providers/pagerduty/d/escalation_policy.html.markdown b/website/source/docs/providers/pagerduty/d/escalation_policy.html.markdown index 7b0362996..916ed72c8 100644 --- a/website/source/docs/providers/pagerduty/d/escalation_policy.html.markdown +++ b/website/source/docs/providers/pagerduty/d/escalation_policy.html.markdown @@ -14,7 +14,7 @@ Use this data source to get information about a specific [escalation policy][1] ## Example Usage -``` +```hcl data "pagerduty_escalation_policy" "test" { name = "Engineering Escalation Policy" } diff --git a/website/source/docs/providers/pagerduty/d/schedule.html.markdown b/website/source/docs/providers/pagerduty/d/schedule.html.markdown index 0127f2b46..842e0f7d4 100644 --- a/website/source/docs/providers/pagerduty/d/schedule.html.markdown +++ b/website/source/docs/providers/pagerduty/d/schedule.html.markdown @@ -14,7 +14,7 @@ Use this data source to get information about a specific [schedule][1] that you ## Example Usage -``` +```hcl data "pagerduty_schedule" "test" { name = "Daily Engineering Rotation" } diff --git a/website/source/docs/providers/pagerduty/d/user.html.markdown b/website/source/docs/providers/pagerduty/d/user.html.markdown index 216851aa0..3af946c02 100644 --- a/website/source/docs/providers/pagerduty/d/user.html.markdown +++ b/website/source/docs/providers/pagerduty/d/user.html.markdown @@ -12,7 +12,7 @@ Use this data source to get information about a specific [user][1] that you can ## Example Usage -``` +```hcl data "pagerduty_user" "me" { email = "me@example.com" } diff --git a/website/source/docs/providers/pagerduty/d/vendor.html.markdown b/website/source/docs/providers/pagerduty/d/vendor.html.markdown index 5e59d33fe..dc2300cbb 100644 --- a/website/source/docs/providers/pagerduty/d/vendor.html.markdown +++ b/website/source/docs/providers/pagerduty/d/vendor.html.markdown @@ -12,7 +12,7 @@ Use this data source to get information about a specific [vendor][1] that you ca ## Example Usage -``` +```hcl data "pagerduty_vendor" "datadog" { name = "Datadog" } diff --git a/website/source/docs/providers/pagerduty/index.html.markdown b/website/source/docs/providers/pagerduty/index.html.markdown index 5b34c7c2f..ff3a1bd2f 100644 --- a/website/source/docs/providers/pagerduty/index.html.markdown +++ b/website/source/docs/providers/pagerduty/index.html.markdown @@ -14,7 +14,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the PagerDuty provider provider "pagerduty" { token = "${var.pagerduty_token}" diff --git a/website/source/docs/providers/pagerduty/r/addon.html.markdown b/website/source/docs/providers/pagerduty/r/addon.html.markdown index 6bbd17ca1..21f4f0398 100644 --- a/website/source/docs/providers/pagerduty/r/addon.html.markdown +++ b/website/source/docs/providers/pagerduty/r/addon.html.markdown @@ -12,7 +12,7 @@ With [add-ons](https://v2.developer.pagerduty.com/v2/page/api-reference#!/Add-on ## Example Usage -``` +```hcl resource "pagerduty_addon" "example" { name = "Internal Status Page" src = "https://intranet.example.com/status" diff --git a/website/source/docs/providers/pagerduty/r/escalation_policy.html.markdown b/website/source/docs/providers/pagerduty/r/escalation_policy.html.markdown index 00ad72633..7dcb04dff 100644 --- a/website/source/docs/providers/pagerduty/r/escalation_policy.html.markdown +++ b/website/source/docs/providers/pagerduty/r/escalation_policy.html.markdown @@ -13,7 +13,7 @@ An [escalation policy](https://v2.developer.pagerduty.com/v2/page/api-reference# ## Example Usage -``` +```hcl resource "pagerduty_team" "example" { name = "Engineering" description = "All engineering" diff --git a/website/source/docs/providers/pagerduty/r/schedule.html.markdown b/website/source/docs/providers/pagerduty/r/schedule.html.markdown index 6f1d0e7bd..9bb1f95be 100644 --- a/website/source/docs/providers/pagerduty/r/schedule.html.markdown +++ b/website/source/docs/providers/pagerduty/r/schedule.html.markdown @@ -13,7 +13,7 @@ A [schedule](https://v2.developer.pagerduty.com/v2/page/api-reference#!/Schedule ## Example Usage -``` +```hcl resource "pagerduty_user" "example" { name = "Earline Greenholt" email = "125.greenholt.earline@graham.name" diff --git a/website/source/docs/providers/pagerduty/r/service.html.markdown b/website/source/docs/providers/pagerduty/r/service.html.markdown index b5ba884c7..7f3fd9da0 100644 --- a/website/source/docs/providers/pagerduty/r/service.html.markdown +++ b/website/source/docs/providers/pagerduty/r/service.html.markdown @@ -13,7 +13,7 @@ A [service](https://v2.developer.pagerduty.com/v2/page/api-reference#!/Services/ ## Example Usage -``` +```hcl resource "pagerduty_user" "example" { name = "Earline Greenholt" email = "125.greenholt.earline@graham.name" @@ -79,7 +79,7 @@ When using `type = "use_support_hours"` in the `incident_urgency_rule` block you Below is an example for a `pagerduty_service` resource with `incident_urgency_rules` with `type = "use_support_hours"`, `support_hours` and a default `scheduled_action` as well. -``` +```hcl resource "pagerduty_service" "foo" { name = "bar" description = "bar bar bar" diff --git a/website/source/docs/providers/pagerduty/r/service_integration.html.markdown b/website/source/docs/providers/pagerduty/r/service_integration.html.markdown index abe98617d..ad4cd3046 100644 --- a/website/source/docs/providers/pagerduty/r/service_integration.html.markdown +++ b/website/source/docs/providers/pagerduty/r/service_integration.html.markdown @@ -12,7 +12,7 @@ A [service integration](https://v2.developer.pagerduty.com/v2/page/api-reference ## Example Usage -``` +```hcl resource "pagerduty_user" "example" { name = "Earline Greenholt" email = "125.greenholt.earline@graham.name" diff --git a/website/source/docs/providers/pagerduty/r/team.html.markdown b/website/source/docs/providers/pagerduty/r/team.html.markdown index d77621dd6..821d8f777 100644 --- a/website/source/docs/providers/pagerduty/r/team.html.markdown +++ b/website/source/docs/providers/pagerduty/r/team.html.markdown @@ -14,7 +14,7 @@ The account must have the `teams` ability to use the following resource. ## Example Usage -``` +```hcl resource "pagerduty_team" "example" { name = "Engineering" description = "All engineering" diff --git a/website/source/docs/providers/pagerduty/r/user.html.markdown b/website/source/docs/providers/pagerduty/r/user.html.markdown index 307beb377..d4cf11214 100644 --- a/website/source/docs/providers/pagerduty/r/user.html.markdown +++ b/website/source/docs/providers/pagerduty/r/user.html.markdown @@ -13,7 +13,7 @@ A [user](https://v2.developer.pagerduty.com/v2/page/api-reference#!/Users/get_us ## Example Usage -``` +```hcl resource "pagerduty_team" "example" { name = "Engineering" description = "All engineering" diff --git a/website/source/docs/providers/postgresql/index.html.markdown b/website/source/docs/providers/postgresql/index.html.markdown index 16277e396..b586ba0b5 100644 --- a/website/source/docs/providers/postgresql/index.html.markdown +++ b/website/source/docs/providers/postgresql/index.html.markdown @@ -14,7 +14,7 @@ Use the navigation to the left to read about the available resources. ## Usage -``` +```hcl provider "postgresql" { host = "postgres_server_ip" port = 5432 @@ -28,7 +28,7 @@ provider "postgresql" { Configuring multiple servers can be done by specifying the alias option. -``` +```hcl provider "postgresql" { alias = "pg1" host = "postgres_server_ip1" diff --git a/website/source/docs/providers/postgresql/r/postgresql_database.html.markdown b/website/source/docs/providers/postgresql/r/postgresql_database.html.markdown index 4ac8ecf9f..3ac0391c3 100644 --- a/website/source/docs/providers/postgresql/r/postgresql_database.html.markdown +++ b/website/source/docs/providers/postgresql/r/postgresql_database.html.markdown @@ -15,7 +15,7 @@ within a PostgreSQL server instance. ## Usage -``` +```hcl resource "postgresql_database" "my_db" { name = "my_db" owner = "my_role" @@ -87,7 +87,7 @@ resource "postgresql_database" "my_db" { `postgresql_database` supports importing resources. Supposing the following Terraform: -``` +```hcl provider "postgresql" { alias = "admindb" } diff --git a/website/source/docs/providers/postgresql/r/postgresql_extension.html.markdown b/website/source/docs/providers/postgresql/r/postgresql_extension.html.markdown index 946d000e1..64f7cafc0 100644 --- a/website/source/docs/providers/postgresql/r/postgresql_extension.html.markdown +++ b/website/source/docs/providers/postgresql/r/postgresql_extension.html.markdown @@ -14,7 +14,7 @@ server. ## Usage -``` +```hcl resource "postgresql_extension" "my_extension" { name = "pg_trgm" } diff --git a/website/source/docs/providers/postgresql/r/postgresql_role.html.markdown b/website/source/docs/providers/postgresql/r/postgresql_role.html.markdown index c14f181f0..78f52e80e 100644 --- a/website/source/docs/providers/postgresql/r/postgresql_role.html.markdown +++ b/website/source/docs/providers/postgresql/r/postgresql_role.html.markdown @@ -26,7 +26,7 @@ and all but the final ``postgresql_role`` must specify a `skip_drop_role`. ## Usage -``` +```hcl resource "postgresql_role" "my_role" { name = "my_role" login = true @@ -116,7 +116,7 @@ resource "postgresql_role" "my_replication_role" { `postgresql_role` supports importing resources. Supposing the following Terraform: -``` +```hcl provider "postgresql" { alias = "admindb" } diff --git a/website/source/docs/providers/postgresql/r/postgresql_schema.html.markdown b/website/source/docs/providers/postgresql/r/postgresql_schema.html.markdown index e6dc78bce..43a148f23 100644 --- a/website/source/docs/providers/postgresql/r/postgresql_schema.html.markdown +++ b/website/source/docs/providers/postgresql/r/postgresql_schema.html.markdown @@ -15,7 +15,7 @@ a PostgreSQL database. ## Usage -``` +```hcl resource "postgresql_role" "app_www" { name = "app_www" } @@ -76,7 +76,7 @@ The `policy` block supports: `postgresql_schema` supports importing resources. Supposing the following Terraform: -``` +```hcl resource "postgresql_schema" "public" { name = "public" } diff --git a/website/source/docs/providers/powerdns/index.html.markdown b/website/source/docs/providers/powerdns/index.html.markdown index 40fe15103..f68a644bf 100644 --- a/website/source/docs/providers/powerdns/index.html.markdown +++ b/website/source/docs/providers/powerdns/index.html.markdown @@ -15,7 +15,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the PowerDNS provider provider "powerdns" { api_key = "${var.pdns_api_key}" diff --git a/website/source/docs/providers/powerdns/r/record.html.markdown b/website/source/docs/providers/powerdns/r/record.html.markdown index bc24c7e79..22cf3b433 100644 --- a/website/source/docs/providers/powerdns/r/record.html.markdown +++ b/website/source/docs/providers/powerdns/r/record.html.markdown @@ -16,7 +16,7 @@ Note that PowerDNS internally lowercases certain records (e.g. CNAME and AAAA), For the v1 API (PowerDNS version 4): -``` +```hcl # Add a record to the zone resource "powerdns_record" "foobar" { zone = "example.com." @@ -29,7 +29,7 @@ resource "powerdns_record" "foobar" { For the legacy API (PowerDNS version 3.4): -``` +```hcl # Add a record to the zone resource "powerdns_record" "foobar" { zone = "example.com" diff --git a/website/source/docs/providers/profitbricks/d/profitbricks_datacenter.html.markdown b/website/source/docs/providers/profitbricks/d/profitbricks_datacenter.html.markdown index 0fd279973..05375bb78 100644 --- a/website/source/docs/providers/profitbricks/d/profitbricks_datacenter.html.markdown +++ b/website/source/docs/providers/profitbricks/d/profitbricks_datacenter.html.markdown @@ -12,7 +12,7 @@ The data centers data source can be used to search for and return an existing Vi ## Example Usage -``` +```hcl data "profitbricks_datacenter" "dc_example" { name = "test_dc" location = "us" diff --git a/website/source/docs/providers/profitbricks/d/profitbricks_image.html.markdown b/website/source/docs/providers/profitbricks/d/profitbricks_image.html.markdown index 76c76470e..1f604b8c7 100644 --- a/website/source/docs/providers/profitbricks/d/profitbricks_image.html.markdown +++ b/website/source/docs/providers/profitbricks/d/profitbricks_image.html.markdown @@ -12,7 +12,7 @@ The images data source can be used to search for and return an existing image wh ## Example Usage -``` +```hcl data "profitbricks_image" "image_example" { name = "Ubuntu" type = "HDD" diff --git a/website/source/docs/providers/profitbricks/d/profitbricks_location.html.markdown b/website/source/docs/providers/profitbricks/d/profitbricks_location.html.markdown index a2301db6e..e50f18fc1 100644 --- a/website/source/docs/providers/profitbricks/d/profitbricks_location.html.markdown +++ b/website/source/docs/providers/profitbricks/d/profitbricks_location.html.markdown @@ -12,7 +12,7 @@ The locations data source can be used to search for and return an existing locat ## Example Usage -``` +```hcl data "profitbricks_location" "loc1" { name = "karlsruhe" feature = "SSD" diff --git a/website/source/docs/providers/profitbricks/index.html.markdown b/website/source/docs/providers/profitbricks/index.html.markdown index 5d8fec358..22bd5b54d 100644 --- a/website/source/docs/providers/profitbricks/index.html.markdown +++ b/website/source/docs/providers/profitbricks/index.html.markdown @@ -18,7 +18,7 @@ Use the navigation to the left to read about the available resources. The provider needs to be configured with proper credentials before it can be used. -``` +```hcl $ export PROFITBRICKS_USERNAME="profitbricks_username" $ export PROFITBRICKS_PASSWORD="profitbricks_password" $ export PROFITBRICKS_API_URL="profitbricks_rest_url" @@ -32,7 +32,7 @@ The credentials provided in `.tf` file will override credentials in the environm ## Example Usage -``` +```hcl provider "profitbricks" { username = "profitbricks_username" password = "profitbricks_password" diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_datacenter.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_datacenter.html.markdown index 53d57c839..12b1612c1 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_datacenter.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_datacenter.html.markdown @@ -12,7 +12,7 @@ Manages a Virtual Data Center on ProfitBricks ## Example Usage -``` +```hcl resource "profitbricks_datacenter" "example" { name = "datacenter name" location = "us/las" diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_firewall.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_firewall.html.markdown index e402d2f98..dfb0d0f86 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_firewall.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_firewall.html.markdown @@ -12,7 +12,7 @@ Manages a Firewall Rules on ProfitBricks ## Example Usage -``` +```hcl resource "profitbricks_firewall" "example" { datacenter_id = "${profitbricks_datacenter.example.id}" server_id = "${profitbricks_server.example.id}" diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_ipblock.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_ipblock.html.markdown index b65ca1cdf..1729eef8c 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_ipblock.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_ipblock.html.markdown @@ -12,7 +12,7 @@ Manages a IP Blocks on ProfitBricks ## Example Usage -``` +```hcl resource "profitbricks_ipblock" "example" { location = "${profitbricks_datacenter.example.location}" size = 1 diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_lan.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_lan.html.markdown index b7c419741..66dd03623 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_lan.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_lan.html.markdown @@ -12,7 +12,7 @@ Manages a LANs on ProfitBricks ## Example Usage -``` +```hcl resource "profitbricks_lan" "example" { datacenter_id = "${profitbricks_datacenter.example.id}" public = true diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_loadbalancer.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_loadbalancer.html.markdown index 3893a9086..11a1657bd 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_loadbalancer.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_loadbalancer.html.markdown @@ -12,7 +12,7 @@ Manages a Load Balancers on ProfitBricks ## Example Usage -``` +```hcl resource "profitbricks_loadbalancer" "example" { datacenter_id = "${profitbricks_datacenter.example.id}" nic_id = "${profitbricks_nic.example.id}" diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_nic.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_nic.html.markdown index bb9348822..e0338f728 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_nic.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_nic.html.markdown @@ -12,7 +12,7 @@ Manages a NICs on ProfitBricks ## Example Usage -``` +```hcl resource "profitbricks_nic" "example" { datacenter_id = "${profitbricks_datacenter.example.id}" server_id = "${profitbricks_server.example.id}" diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_server.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_server.html.markdown index a5dda6455..68ef48d3f 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_server.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_server.html.markdown @@ -14,7 +14,7 @@ Manages a Servers on ProfitBricks This resource will create an operational server. After this section completes, the provisioner can be called. -``` +```hcl resource "profitbricks_server" "example" { name = "server" datacenter_id = "${profitbricks_datacenter.example.id}" diff --git a/website/source/docs/providers/profitbricks/r/profitbricks_volume.html.markdown b/website/source/docs/providers/profitbricks/r/profitbricks_volume.html.markdown index ccea2b5d3..fb4ee5f3c 100644 --- a/website/source/docs/providers/profitbricks/r/profitbricks_volume.html.markdown +++ b/website/source/docs/providers/profitbricks/r/profitbricks_volume.html.markdown @@ -14,7 +14,7 @@ Manages a Volumes on ProfitBricks A primary volume will be created with the server. If there is a need for additional volume, this resource handles it. -``` +```hcl resource "profitbricks_volume" "example" { datacenter_id = "${profitbricks_datacenter.example.id}" server_id = "${profitbricks_server.example.id}" diff --git a/website/source/docs/providers/rabbitmq/index.html.markdown b/website/source/docs/providers/rabbitmq/index.html.markdown index b420742ae..11f4d7881 100644 --- a/website/source/docs/providers/rabbitmq/index.html.markdown +++ b/website/source/docs/providers/rabbitmq/index.html.markdown @@ -18,7 +18,7 @@ Use the navigation to the left to read about the available resources. The following is a minimal example: -``` +```hcl # Configure the RabbitMQ provider provider "rabbitmq" { endpoint = "http://127.0.0.1" diff --git a/website/source/docs/providers/rabbitmq/r/binding.html.markdown b/website/source/docs/providers/rabbitmq/r/binding.html.markdown index ec83e786a..da797065e 100644 --- a/website/source/docs/providers/rabbitmq/r/binding.html.markdown +++ b/website/source/docs/providers/rabbitmq/r/binding.html.markdown @@ -13,7 +13,7 @@ between a queue an exchange. ## Example Usage -``` +```hcl resource "rabbitmq_vhost" "test" { name = "test" } @@ -88,5 +88,5 @@ Bindings can be imported using the `id` which is composed of `vhost/source/destination/destination_type/properties_key`. E.g. ``` -terraform import rabbitmq_binding.test test/test/test/queue/%23 +$ terraform import rabbitmq_binding.test test/test/test/queue/%23 ``` diff --git a/website/source/docs/providers/rabbitmq/r/exchange.html.markdown b/website/source/docs/providers/rabbitmq/r/exchange.html.markdown index bd71db40c..bb5fc016c 100644 --- a/website/source/docs/providers/rabbitmq/r/exchange.html.markdown +++ b/website/source/docs/providers/rabbitmq/r/exchange.html.markdown @@ -12,7 +12,7 @@ The ``rabbitmq_exchange`` resource creates and manages an exchange. ## Example Usage -``` +```hcl resource "rabbitmq_vhost" "test" { name = "test" } diff --git a/website/source/docs/providers/rabbitmq/r/permissions.html.markdown b/website/source/docs/providers/rabbitmq/r/permissions.html.markdown index 1c25cdaf7..f30703547 100644 --- a/website/source/docs/providers/rabbitmq/r/permissions.html.markdown +++ b/website/source/docs/providers/rabbitmq/r/permissions.html.markdown @@ -13,7 +13,7 @@ permissions. ## Example Usage -``` +```hcl resource "rabbitmq_vhost" "test" { name = "test" } diff --git a/website/source/docs/providers/rabbitmq/r/policy.html.markdown b/website/source/docs/providers/rabbitmq/r/policy.html.markdown index 50744c814..951c8ac42 100644 --- a/website/source/docs/providers/rabbitmq/r/policy.html.markdown +++ b/website/source/docs/providers/rabbitmq/r/policy.html.markdown @@ -13,7 +13,7 @@ and queues. ## Example Usage -``` +```hcl resource "rabbitmq_vhost" "test" { name = "test" } diff --git a/website/source/docs/providers/rabbitmq/r/queue.html.markdown b/website/source/docs/providers/rabbitmq/r/queue.html.markdown index 1c3d89239..44abb50e3 100644 --- a/website/source/docs/providers/rabbitmq/r/queue.html.markdown +++ b/website/source/docs/providers/rabbitmq/r/queue.html.markdown @@ -12,7 +12,7 @@ The ``rabbitmq_queue`` resource creates and manages a queue. ## Example Usage -``` +```hcl resource "rabbitmq_vhost" "test" { name = "test" } diff --git a/website/source/docs/providers/rabbitmq/r/user.html.markdown b/website/source/docs/providers/rabbitmq/r/user.html.markdown index 2c3f9893d..e9e6e3183 100644 --- a/website/source/docs/providers/rabbitmq/r/user.html.markdown +++ b/website/source/docs/providers/rabbitmq/r/user.html.markdown @@ -15,7 +15,7 @@ The ``rabbitmq_user`` resource creates and manages a user. ## Example Usage -``` +```hcl resource "rabbitmq_user" "test" { name = "mctest" password = "foobar" diff --git a/website/source/docs/providers/rabbitmq/r/vhost.html.markdown b/website/source/docs/providers/rabbitmq/r/vhost.html.markdown index 4ba1b3e65..fc06d135e 100644 --- a/website/source/docs/providers/rabbitmq/r/vhost.html.markdown +++ b/website/source/docs/providers/rabbitmq/r/vhost.html.markdown @@ -12,7 +12,7 @@ The ``rabbitmq_vhost`` resource creates and manages a vhost. ## Example Usage -``` +```hcl resource "rabbitmq_vhost" "my_vhost" { name = "my_vhost" } diff --git a/website/source/docs/providers/scaleway/d/bootscript.html.markdown b/website/source/docs/providers/scaleway/d/bootscript.html.markdown index 5b7664e2b..69c75ac50 100644 --- a/website/source/docs/providers/scaleway/d/bootscript.html.markdown +++ b/website/source/docs/providers/scaleway/d/bootscript.html.markdown @@ -13,7 +13,7 @@ Use this data source to get the ID of a registered Bootscript for use with the ## Example Usage -``` +```hcl data "scaleway_bootscript" "debug" { architecture = "arm" name_filter = "Rescue" diff --git a/website/source/docs/providers/scaleway/d/image.html.markdown b/website/source/docs/providers/scaleway/d/image.html.markdown index 983dfeb5f..e485d2867 100644 --- a/website/source/docs/providers/scaleway/d/image.html.markdown +++ b/website/source/docs/providers/scaleway/d/image.html.markdown @@ -13,7 +13,7 @@ Use this data source to get the ID of a registered Image for use with the ## Example Usage -``` +```hcl data "scaleway_image" "ubuntu" { architecture = "arm" name = "Ubuntu Precise" diff --git a/website/source/docs/providers/scaleway/r/ip.html.markdown b/website/source/docs/providers/scaleway/r/ip.html.markdown index cb87dbcba..33630e34a 100644 --- a/website/source/docs/providers/scaleway/r/ip.html.markdown +++ b/website/source/docs/providers/scaleway/r/ip.html.markdown @@ -13,7 +13,7 @@ For additional details please refer to [API documentation](https://developer.sca ## Example Usage -``` +```hcl resource "scaleway_ip" "test_ip" {} ``` diff --git a/website/source/docs/providers/scaleway/r/security_group.html.markdown b/website/source/docs/providers/scaleway/r/security_group.html.markdown index 572cacc42..91293e908 100644 --- a/website/source/docs/providers/scaleway/r/security_group.html.markdown +++ b/website/source/docs/providers/scaleway/r/security_group.html.markdown @@ -13,7 +13,7 @@ For additional details please refer to [API documentation](https://developer.sca ## Example Usage -``` +```hcl resource "scaleway_security_group" "test" { name = "test" description = "test" diff --git a/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown b/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown index 9bfc57e3d..ecf84e589 100644 --- a/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown +++ b/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown @@ -13,7 +13,7 @@ For additional details please refer to [API documentation](https://developer.sca ## Example Usage -``` +```hcl resource "scaleway_security_group" "test" { name = "test" description = "test" diff --git a/website/source/docs/providers/scaleway/r/server.html.markdown b/website/source/docs/providers/scaleway/r/server.html.markdown index 38cba81c0..9a9459764 100644 --- a/website/source/docs/providers/scaleway/r/server.html.markdown +++ b/website/source/docs/providers/scaleway/r/server.html.markdown @@ -13,7 +13,7 @@ For additional details please refer to [API documentation](https://developer.sca ## Example Usage -``` +```hcl resource "scaleway_server" "test" { name = "test" image = "5faef9cd-ea9b-4a63-9171-9e26bec03dbc" diff --git a/website/source/docs/providers/scaleway/r/volume.html.markdown b/website/source/docs/providers/scaleway/r/volume.html.markdown index e0bb7ae1b..4aa2be147 100644 --- a/website/source/docs/providers/scaleway/r/volume.html.markdown +++ b/website/source/docs/providers/scaleway/r/volume.html.markdown @@ -13,7 +13,7 @@ For additional details please refer to [API documentation](https://developer.sca ## Example Usage -``` +```hcl resource "scaleway_server" "test" { name = "test" image = "aecaed73-51a5-4439-a127-6d8229847145" diff --git a/website/source/docs/providers/scaleway/r/volume_attachment.html.markdown b/website/source/docs/providers/scaleway/r/volume_attachment.html.markdown index f6e7533c2..05e89fc81 100644 --- a/website/source/docs/providers/scaleway/r/volume_attachment.html.markdown +++ b/website/source/docs/providers/scaleway/r/volume_attachment.html.markdown @@ -15,7 +15,7 @@ to downtime if the server is already in use. ## Example Usage -``` +```hcl resource "scaleway_server" "test" { name = "test" image = "aecaed73-51a5-4439-a127-6d8229847145" diff --git a/website/source/docs/providers/softlayer/r/ssh_key.html.markdown b/website/source/docs/providers/softlayer/r/ssh_key.html.markdown index 479240aba..571ad6c6c 100644 --- a/website/source/docs/providers/softlayer/r/ssh_key.html.markdown +++ b/website/source/docs/providers/softlayer/r/ssh_key.html.markdown @@ -13,7 +13,7 @@ For additional details please refer to [API documentation](http://sldn.softlayer ## Example Usage -``` +```hcl resource "softlayer_ssh_key" "test_ssh_key" { name = "test_ssh_key_name" notes = "test_ssh_key_notes" diff --git a/website/source/docs/providers/spotinst/index.html.markdown b/website/source/docs/providers/spotinst/index.html.markdown index ea675a3bb..d0e39b049 100755 --- a/website/source/docs/providers/spotinst/index.html.markdown +++ b/website/source/docs/providers/spotinst/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the Spotinst provider provider "spotinst" { email = "${var.spotinst_email}" diff --git a/website/source/docs/providers/spotinst/r/aws_group.html.markdown b/website/source/docs/providers/spotinst/r/aws_group.html.markdown index 8eeb2be9c..b7c786141 100755 --- a/website/source/docs/providers/spotinst/r/aws_group.html.markdown +++ b/website/source/docs/providers/spotinst/r/aws_group.html.markdown @@ -12,7 +12,7 @@ Provides a Spotinst AWS group resource. ## Example Usage -``` +```hcl # Create an AWS group resource "spotinst_aws_group" "workers" { name = "workers-group" diff --git a/website/source/docs/providers/statuscake/index.html.markdown b/website/source/docs/providers/statuscake/index.html.markdown index 9a4d0fb29..d25a86654 100644 --- a/website/source/docs/providers/statuscake/index.html.markdown +++ b/website/source/docs/providers/statuscake/index.html.markdown @@ -23,7 +23,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl provider "statuscake" { username = "testuser" apikey = "12345ddfnakn" diff --git a/website/source/docs/providers/statuscake/r/test.html.markdown b/website/source/docs/providers/statuscake/r/test.html.markdown index 7623d0d46..0a1df9f12 100644 --- a/website/source/docs/providers/statuscake/r/test.html.markdown +++ b/website/source/docs/providers/statuscake/r/test.html.markdown @@ -12,7 +12,7 @@ The test resource allows StatusCake tests to be managed by Terraform. ## Example Usage -``` +```hcl resource "statuscake_test" "google" { website_name = "google.com" website_url = "www.google.com" diff --git a/website/source/docs/providers/triton/index.html.markdown b/website/source/docs/providers/triton/index.html.markdown index 1660ad718..7dc866d27 100644 --- a/website/source/docs/providers/triton/index.html.markdown +++ b/website/source/docs/providers/triton/index.html.markdown @@ -14,7 +14,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl provider "triton" { account = "AccountName" key_id = "25:d4:a9:fe:ef:e6:c0:bf:b4:4b:4b:d4:a8:8f:01:0f" diff --git a/website/source/docs/providers/triton/r/triton_fabric.html.markdown b/website/source/docs/providers/triton/r/triton_fabric.html.markdown index 609690cd7..cd783d87d 100644 --- a/website/source/docs/providers/triton/r/triton_fabric.html.markdown +++ b/website/source/docs/providers/triton/r/triton_fabric.html.markdown @@ -14,8 +14,7 @@ The `triton_fabric` resource represents an fabric for a Triton account. The fabr ### Create a fabric - -``` +```hcl resource "triton_fabric" "dmz" { vlan_id = 100 name = "dmz" @@ -32,7 +31,6 @@ resource "triton_fabric" "dmz" { The following arguments are supported: - * `name` - (String, Required, Change forces new resource) Network name. @@ -63,9 +61,6 @@ The following arguments are supported: * `vlan_id` - (Int, Required, Change forces new resource) VLAN id the network is on. Number between 0-4095 indicating VLAN ID. - - - ## Attribute Reference The following attributes are exported: @@ -82,7 +77,3 @@ The following attributes are exported: * `routes` - (Map) - Map of CIDR block to Gateway IP address. * `internet_nat` - (Bool) - If a NAT zone is provisioned at Gateway IP address. * `vlan_id` - (Int) - VLAN id the network is on. Number between 0-4095 indicating VLAN ID. - - - - diff --git a/website/source/docs/providers/triton/r/triton_firewall_rule.html.markdown b/website/source/docs/providers/triton/r/triton_firewall_rule.html.markdown index 1bb815f33..0e09eb8ab 100644 --- a/website/source/docs/providers/triton/r/triton_firewall_rule.html.markdown +++ b/website/source/docs/providers/triton/r/triton_firewall_rule.html.markdown @@ -14,38 +14,31 @@ The `triton_firewall_rule` resource represents a rule for the Triton cloud firew ### Allow web traffic on ports tcp/80 and tcp/443 to machines with the 'www' tag from any source - -``` +```hcl resource "triton_firewall_rule" "www" { rule = "FROM any TO tag www ALLOW tcp (PORT 80 AND PORT 443)" enabled = true } ``` - ### Allow ssh traffic on port tcp/22 to all machines from known remote IPs - -``` +```hcl resource "triton_firewall_rule" "22" { rule = "FROM IP (IP w.x.y.z OR IP w.x.y.z) TO all vms ALLOW tcp port 22" enabled = true } ``` - - ### Block IMAP traffic on port tcp/143 to all machines -``` +```hcl resource "triton_firewall_rule" "imap" { rule = "FROM any TO all vms BLOCK tcp port 143" enabled = true } ``` - - ## Argument Reference The following arguments are supported: diff --git a/website/source/docs/providers/triton/r/triton_key.html.markdown b/website/source/docs/providers/triton/r/triton_key.html.markdown index 4d18fdc64..83763880e 100644 --- a/website/source/docs/providers/triton/r/triton_key.html.markdown +++ b/website/source/docs/providers/triton/r/triton_key.html.markdown @@ -14,8 +14,7 @@ The `triton_key` resource represents an SSH key for a Triton account. Create a key - -``` +```hcl resource "triton_key" "example" { name = "Example Key" key = "${file("keys/id_rsa")}" @@ -31,4 +30,3 @@ The following arguments are supported: * `key` - (string, Required, Change forces new resource) The SSH key material. In order to read this from a file, use the `file` interpolation. - diff --git a/website/source/docs/providers/triton/r/triton_machine.html.markdown b/website/source/docs/providers/triton/r/triton_machine.html.markdown index c5f4d851d..f01fd8005 100644 --- a/website/source/docs/providers/triton/r/triton_machine.html.markdown +++ b/website/source/docs/providers/triton/r/triton_machine.html.markdown @@ -14,8 +14,7 @@ The `triton_machine` resource represents a virtual machine or infrastructure con ### Run a SmartOS base-64 machine. - -``` +```hcl resource "triton_machine" "test-smartos" { name = "test-smartos" package = "g3-standard-0.25-smartos" @@ -29,7 +28,7 @@ resource "triton_machine" "test-smartos" { ### Run an Ubuntu 14.04 LTS machine. -``` +```hcl resource "triton_machine" "test-ubuntu" { name = "test-ubuntu" package = "g4-general-4G" @@ -44,8 +43,6 @@ resource "triton_machine" "test-ubuntu" { } ## resource ``` - - ## Argument Reference The following arguments are supported: diff --git a/website/source/docs/providers/triton/r/triton_vlan.html.markdown b/website/source/docs/providers/triton/r/triton_vlan.html.markdown index 838cc4393..a7515f3f7 100644 --- a/website/source/docs/providers/triton/r/triton_vlan.html.markdown +++ b/website/source/docs/providers/triton/r/triton_vlan.html.markdown @@ -14,8 +14,7 @@ The `triton_vlan` resource represents an Triton VLAN. A VLAN provides a low leve ### Create a VLAN - -``` +```hcl resource "triton_vlan" "dmz" { vlan_id = 100 name = "dmz" diff --git a/website/source/docs/providers/ultradns/index.html.markdown b/website/source/docs/providers/ultradns/index.html.markdown index e01267526..3d1a9b0f7 100644 --- a/website/source/docs/providers/ultradns/index.html.markdown +++ b/website/source/docs/providers/ultradns/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the UltraDNS provider provider "ultradns" { username = "${var.ultradns_username}" diff --git a/website/source/docs/providers/ultradns/r/dirpool.html.markdown b/website/source/docs/providers/ultradns/r/dirpool.html.markdown index 4faf3c2ab..c0377ad9d 100644 --- a/website/source/docs/providers/ultradns/r/dirpool.html.markdown +++ b/website/source/docs/providers/ultradns/r/dirpool.html.markdown @@ -11,7 +11,8 @@ description: |- Provides an UltraDNS Directional Controller pool resource. ## Example Usage -``` + +```hcl # Create a Directional Controller pool resource "ultradns_dirpool" "pool" { zone = "${var.ultradns_domain}" diff --git a/website/source/docs/providers/ultradns/r/probe_http.html.markdown b/website/source/docs/providers/ultradns/r/probe_http.html.markdown index 72a57a3e3..80e7847c7 100644 --- a/website/source/docs/providers/ultradns/r/probe_http.html.markdown +++ b/website/source/docs/providers/ultradns/r/probe_http.html.markdown @@ -11,7 +11,8 @@ description: |- Provides an UltraDNS HTTP probe ## Example Usage -``` + +```hcl resource "ultradns_probe_http" "probe" { zone = "${ultradns_tcpool.pool.zone}" name = "${ultradns_tcpool.pool.name}" diff --git a/website/source/docs/providers/ultradns/r/probe_ping.html.markdown b/website/source/docs/providers/ultradns/r/probe_ping.html.markdown index 0c0b3a79a..e680e255b 100644 --- a/website/source/docs/providers/ultradns/r/probe_ping.html.markdown +++ b/website/source/docs/providers/ultradns/r/probe_ping.html.markdown @@ -11,7 +11,8 @@ description: |- Provides an UltraDNS ping probe ## Example Usage -``` + +```hcl resource "ultradns_probe_ping" "probe" { zone = "${ultradns_tcpool.pool.zone}" name = "${ultradns_tcpool.pool.name}" diff --git a/website/source/docs/providers/ultradns/r/record.html.markdown b/website/source/docs/providers/ultradns/r/record.html.markdown index 9b9ed428d..ca8da9dfb 100644 --- a/website/source/docs/providers/ultradns/r/record.html.markdown +++ b/website/source/docs/providers/ultradns/r/record.html.markdown @@ -12,7 +12,7 @@ Provides an UltraDNS record resource. ## Example Usage -``` +```hcl # Add a record to the domain resource "ultradns_record" "foobar" { zone = "${var.ultradns_domain}" diff --git a/website/source/docs/providers/ultradns/r/tcpool.html.markdown b/website/source/docs/providers/ultradns/r/tcpool.html.markdown index a550f15e2..b9295cfe6 100644 --- a/website/source/docs/providers/ultradns/r/tcpool.html.markdown +++ b/website/source/docs/providers/ultradns/r/tcpool.html.markdown @@ -11,7 +11,8 @@ description: |- Provides an UltraDNS Traffic Controller pool resource. ## Example Usage -``` + +```hcl # Create a Traffic Controller pool resource "ultradns_tcpool" "pool" { zone = "${var.ultradns_domain}" diff --git a/website/source/docs/providers/vcd/index.html.markdown b/website/source/docs/providers/vcd/index.html.markdown index 4398fc943..de0be34ae 100644 --- a/website/source/docs/providers/vcd/index.html.markdown +++ b/website/source/docs/providers/vcd/index.html.markdown @@ -16,7 +16,7 @@ Use the navigation to the left to read about the available resources. ## Example Usage -``` +```hcl # Configure the VMware vCloud Director Provider provider "vcd" { user = "${var.vcd_user}" diff --git a/website/source/docs/providers/vcd/r/dnat.html.markdown b/website/source/docs/providers/vcd/r/dnat.html.markdown index 3ee1ab505..6f18fb9af 100644 --- a/website/source/docs/providers/vcd/r/dnat.html.markdown +++ b/website/source/docs/providers/vcd/r/dnat.html.markdown @@ -13,7 +13,7 @@ and delete destination NATs to map an external IP/port to a VM. ## Example Usage -``` +```hcl resource "vcd_dnat" "web" { edge_gateway = "Edge Gateway Name" external_ip = "78.101.10.20" diff --git a/website/source/docs/providers/vcd/r/firewall_rules.html.markdown b/website/source/docs/providers/vcd/r/firewall_rules.html.markdown index 01edc5110..a25a288fb 100644 --- a/website/source/docs/providers/vcd/r/firewall_rules.html.markdown +++ b/website/source/docs/providers/vcd/r/firewall_rules.html.markdown @@ -13,7 +13,7 @@ modify, and delete firewall settings and rules. ## Example Usage -``` +```hcl resource "vcd_firewall_rules" "fw" { edge_gateway = "Edge Gateway Name" default_action = "drop" diff --git a/website/source/docs/providers/vcd/r/network.html.markdown b/website/source/docs/providers/vcd/r/network.html.markdown index e53136e5a..85aafceaf 100644 --- a/website/source/docs/providers/vcd/r/network.html.markdown +++ b/website/source/docs/providers/vcd/r/network.html.markdown @@ -13,7 +13,7 @@ modify, and delete internal networks for vApps to connect. ## Example Usage -``` +```hcl resource "vcd_network" "net" { name = "my-net" edge_gateway = "Edge Gateway Name" diff --git a/website/source/docs/providers/vcd/r/snat.html.markdown b/website/source/docs/providers/vcd/r/snat.html.markdown index 3fe59bbcd..6c9903aca 100644 --- a/website/source/docs/providers/vcd/r/snat.html.markdown +++ b/website/source/docs/providers/vcd/r/snat.html.markdown @@ -13,7 +13,7 @@ and delete source NATs to allow vApps to send external traffic. ## Example Usage -``` +```hcl resource "vcd_snat" "outbound" { edge_gateway = "Edge Gateway Name" external_ip = "78.101.10.20" diff --git a/website/source/docs/providers/vcd/r/vapp.html.markdown b/website/source/docs/providers/vcd/r/vapp.html.markdown index 7b2d27e32..bed73fba9 100644 --- a/website/source/docs/providers/vcd/r/vapp.html.markdown +++ b/website/source/docs/providers/vcd/r/vapp.html.markdown @@ -13,7 +13,7 @@ modify, and delete vApps. ## Example Usage -``` +```hcl resource "vcd_network" "net" { # ... } diff --git a/website/source/docs/providers/vsphere/index.html.markdown b/website/source/docs/providers/vsphere/index.html.markdown index 34fbcd5ff..46fdaee55 100644 --- a/website/source/docs/providers/vsphere/index.html.markdown +++ b/website/source/docs/providers/vsphere/index.html.markdown @@ -22,7 +22,7 @@ provider at this time only supports IPv4 addresses on virtual machines. ## Example Usage -``` +```hcl # Configure the VMware vSphere Provider provider "vsphere" { user = "${var.vsphere_user}" diff --git a/website/source/docs/providers/vsphere/r/file.html.markdown b/website/source/docs/providers/vsphere/r/file.html.markdown index cd2824e77..5ac5b55ab 100644 --- a/website/source/docs/providers/vsphere/r/file.html.markdown +++ b/website/source/docs/providers/vsphere/r/file.html.markdown @@ -16,7 +16,7 @@ Updates to file resources will handle moving a file to a new destination (datace **Upload file to vSphere:** -``` +```hcl resource "vsphere_file" "ubuntu_disk_upload" { datacenter = "my_datacenter" datastore = "local" @@ -27,7 +27,7 @@ resource "vsphere_file" "ubuntu_disk_upload" { **Copy file within vSphere:** -``` +```hcl resource "vsphere_file" "ubuntu_disk_copy" { source_datacenter = "my_datacenter" datacenter = "my_datacenter" diff --git a/website/source/docs/providers/vsphere/r/folder.html.markdown b/website/source/docs/providers/vsphere/r/folder.html.markdown index a4a490cdd..47cb880b0 100644 --- a/website/source/docs/providers/vsphere/r/folder.html.markdown +++ b/website/source/docs/providers/vsphere/r/folder.html.markdown @@ -12,7 +12,7 @@ Provides a VMware vSphere virtual machine folder resource. This can be used to c ## Example Usage -``` +```hcl resource "vsphere_folder" "web" { path = "terraform_web_folder" } diff --git a/website/source/docs/providers/vsphere/r/virtual_disk.html.markdown b/website/source/docs/providers/vsphere/r/virtual_disk.html.markdown index b6f97374c..deb5221e0 100644 --- a/website/source/docs/providers/vsphere/r/virtual_disk.html.markdown +++ b/website/source/docs/providers/vsphere/r/virtual_disk.html.markdown @@ -12,7 +12,7 @@ Provides a VMware virtual disk resource. This can be used to create and delete ## Example Usage -``` +```hcl resource "vsphere_virtual_disk" "myDisk" { size = 2 vmdk_path = "myDisk.vmdk" diff --git a/website/source/docs/providers/vsphere/r/virtual_machine.html.markdown b/website/source/docs/providers/vsphere/r/virtual_machine.html.markdown index d1aa56c5b..05f609cef 100644 --- a/website/source/docs/providers/vsphere/r/virtual_machine.html.markdown +++ b/website/source/docs/providers/vsphere/r/virtual_machine.html.markdown @@ -13,7 +13,7 @@ modify, and delete virtual machines. ## Example Usage -``` +```hcl resource "vsphere_virtual_machine" "web" { name = "terraform-web" vcpu = 2 @@ -31,7 +31,7 @@ resource "vsphere_virtual_machine" "web" { ## Example Usage VMware Cluster -``` +```hcl resource "vsphere_virtual_machine" "lb" { name = "lb01" folder = "Loadbalancers"