diff --git a/website/source/intro/getting-started/modules.html.md b/website/source/intro/getting-started/modules.html.md index 7616750cc..79c28aa39 100644 --- a/website/source/intro/getting-started/modules.html.md +++ b/website/source/intro/getting-started/modules.html.md @@ -39,6 +39,12 @@ for us. Create a configuration file with the following contents: ``` +provider "aws" { + access_key = "AWS ACCESS KEY" + secret_key = "AWS SECRET KEY" + region = "AWS REGION" +} + module "consul" { source = "github.com/hashicorp/consul/terraform/aws" @@ -49,6 +55,10 @@ module "consul" { } ``` +(Note that the `provider` block can be omitted in favor of environment +variables. See the [AWS Provider docs](/docs/providers/aws/index.html) +for details.) + The `module` block tells Terraform to create and manage a module. It is very similar to the `resource` block. It has a logical name -- in this case "consul" -- and a set of configurations.