mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
parent
40262b0284
commit
b8457bde32
@ -39,6 +39,12 @@ for us.
|
|||||||
Create a configuration file with the following contents:
|
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" {
|
module "consul" {
|
||||||
source = "github.com/hashicorp/consul/terraform/aws"
|
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
|
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
|
very similar to the `resource` block. It has a logical name -- in this
|
||||||
case "consul" -- and a set of configurations.
|
case "consul" -- and a set of configurations.
|
||||||
|
Loading…
Reference in New Issue
Block a user