Skip to content

Commit

Permalink
Merge pull request #1706 from hashicorp/d-module-intro-provider-config
Browse files Browse the repository at this point in the history
docs: Clarify provider config in modules intro
  • Loading branch information
mitchellh committed Apr 28, 2015
2 parents 92a4a5e + b8457bd commit 8f3e188
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/source/intro/getting-started/modules.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down

0 comments on commit 8f3e188

Please sign in to comment.