From 8c7bfde292ba73bc862e3cdb5eb6c3c35df5d47b Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Wed, 2 Aug 2017 20:03:41 -0700 Subject: [PATCH] Docs: Fix broken links and a broken example These links were casualties of the core/provider split. There was also an example that suggested cloning a subdirectory of a git repo. --- website/docs/plugins/provider.html.md | 2 +- .../writing-custom-terraform-providers.html.md | 2 +- website/intro/examples/consul.html.markdown | 2 +- website/intro/examples/count.markdown | 2 +- website/intro/examples/index.html.markdown | 18 ++++++++---------- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/website/docs/plugins/provider.html.md b/website/docs/plugins/provider.html.md index fe1dad59fc..5921e34109 100644 --- a/website/docs/plugins/provider.html.md +++ b/website/docs/plugins/provider.html.md @@ -240,7 +240,7 @@ which cover all available settings. We recommend viewing schemas of existing or similar providers to learn best practices. A good starting place is the -[core Terraform providers](https://github.com/hashicorp/terraform/tree/master/builtin/providers). +[core Terraform providers](https://github.com/terraform-providers). ## Resource Data diff --git a/website/guides/writing-custom-terraform-providers.html.md b/website/guides/writing-custom-terraform-providers.html.md index 9088f159a2..ffcdfe34d6 100644 --- a/website/guides/writing-custom-terraform-providers.html.md +++ b/website/guides/writing-custom-terraform-providers.html.md @@ -40,7 +40,7 @@ This post assumes familiarity with Golang and basic programming concepts. As a reminder, all of Terraform's core providers are open source. When stuck or looking for examples, please feel free to reference -[the open source providers](https://github.com/hashicorp/terraform/tree/master/builtin/providers) for help. +[the open source providers](https://github.com/terraform-providers) for help. ## The Provider Schema diff --git a/website/intro/examples/consul.html.markdown b/website/intro/examples/consul.html.markdown index 78d3f63d9c..23602b7753 100644 --- a/website/intro/examples/consul.html.markdown +++ b/website/intro/examples/consul.html.markdown @@ -8,7 +8,7 @@ description: |- # Consul Example -[**Example Source Code**](https://github.com/hashicorp/terraform/tree/master/examples/consul) +[**Example Source Code**](https://github.com/terraform-providers/terraform-provider-consul/tree/master/examples/kv) [Consul](https://www.consul.io) is a tool for service discovery, configuration and orchestration. The Key/Value store it provides is often used to store diff --git a/website/intro/examples/count.markdown b/website/intro/examples/count.markdown index 96a11e1fb0..e606492466 100644 --- a/website/intro/examples/count.markdown +++ b/website/intro/examples/count.markdown @@ -8,7 +8,7 @@ description: |- # Count Example -[**Example Source Code**](https://github.com/hashicorp/terraform/tree/master/examples/aws-count) +[**Example Source Code**](https://github.com/terraform-providers/terraform-provider-aws/tree/master/examples/count) The `count` parameter on resources can simplify configurations and let you scale resources by simply incrementing a number. diff --git a/website/intro/examples/index.html.markdown b/website/intro/examples/index.html.markdown index 99df59b11a..c4d60aeaf4 100644 --- a/website/intro/examples/index.html.markdown +++ b/website/intro/examples/index.html.markdown @@ -8,7 +8,7 @@ description: |- # Example Configurations -These examples are designed to help you understand some +The examples in this section illustrate some of the ways Terraform can be used. All examples are ready to run as-is. Terraform will @@ -31,23 +31,21 @@ uses it isn't required. ## Examples -All of the examples are in the -["examples" directory within the Terraform source code](https://github.com/hashicorp/terraform/tree/master/examples). Each example (as well as the examples -directory) has a README explaining the goal of the example. +Our examples are distributed across several repos. [This README file in the Terraform repo has links to all of them.](https://github.com/hashicorp/terraform/tree/master/examples) To use these examples, Terraform must first be installed on your machine. You can install Terraform from the [downloads page](/downloads.html). -Once installed, you can use two steps to view and run the examples. +Once installed, you can download, view, and run the examples. -To try these examples, first clone them with git as usual: +To use an example, clone the repository that contains it and navigate to its directory. For example, to try the AWS two-tier architecture example: ``` -git clone https://github.com/hashicorp/terraform/examples/aws-two-tier -cd aws-two-tier +git clone https://github.com/terraform-providers/terraform-provider-aws.git +cd terraform-provider-aws/examples/two-tier ``` -You can then use your own editor to read and browse the configurations. -To try out the example, initialize and then apply: +You can then use your preferred code editor to browse and read the configurations. +To try out an example, run Terraform's init and apply commands while in the example's directory: ``` $ terraform init