docs: Clarify provider config in modules intro

closes #1693
This commit is contained in:
Paul Hinze 2015-04-28 09:01:19 -05:00
parent 40262b0284
commit b8457bde32
1 changed files with 10 additions and 0 deletions

View File

@ -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.