Merge pull request #1706 from hashicorp/d-module-intro-provider-config

docs: Clarify provider config in modules intro
This commit is contained in:
Mitchell Hashimoto 2015-04-28 14:34:51 -07:00
commit 8f3e188f84
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.