-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Docs for v3.0.0 release * Run Terratest against the latest Terraform version only
- Loading branch information
Showing
10 changed files
with
147 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Using depends_on With This Module | ||
|
||
If you're using Terraform `>=0.13`, you [can use `depedns_on` meta-argument with modules as well](https://www.terraform.io/docs/language/meta-arguments/depends_on.html) | ||
|
||
This example shows you, how to create both VPCs themselves and peering connection using this module and `depends_on` meta-argument. | ||
|
||
## Sample Code | ||
|
||
Configuration for VPC (subnets, route tables, etc.) is omitted. | ||
|
||
Notice, that you have to explicitly provide Route Tables IDs as variables to this module in order to make it work. | ||
|
||
``` | ||
module "module_depends_on" { | ||
source = "../../" | ||
depends_on = [ | ||
aws_route_table.this, | ||
aws_route_table.peer, | ||
] | ||
providers = { | ||
aws.this = aws | ||
aws.peer = aws | ||
} | ||
this_vpc_id = aws_vpc.this.id | ||
peer_vpc_id = aws_vpc.peer.id | ||
this_rts_ids = aws_route_table.this.*.id | ||
peer_rts_ids = aws_route_table.peer.*.id | ||
auto_accept_peering = true | ||
tags = { | ||
Name = "tf-single-account-single-region" | ||
Environment = "Test" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
//provider "aws" { | ||
// region = "us-east-1" | ||
//} | ||
|
||
provider "aws" { | ||
alias = "this" | ||
region = "us-east-1" | ||
|
Oops, something went wrong.