This repository has been archived by the owner on Aug 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kyle Davies
committed
Aug 19, 2022
0 parents
commit 5925098
Showing
4 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 1. GH-31485 | ||
|
||
## 1.1 Introduction | ||
|
||
Terraform example for Github Issue: https://github.com/hashicorp/terraform/issues/31485 | ||
|
||
> NOTE: This module doesnt work. It was created as a illustrative example. |
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,17 @@ | ||
# All of these are already defined in vpc... but I have to redefine them just to pass them to the vpc module.... | ||
|
||
variable "name" { | ||
|
||
} | ||
|
||
variable "cidr" { | ||
|
||
} | ||
|
||
variable "enable_nat_gateway" { | ||
|
||
} | ||
|
||
variable "enable_vpn_gateway" { | ||
|
||
} |
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,17 @@ | ||
module "vpc" { | ||
source = "[email protected]:terraform-aws-modules/terraform-aws-vpc.git?ref=v1.0.0" | ||
|
||
# These are repeated | ||
name = var.vname | ||
cidr = var.cidr | ||
enable_nat_gateway = var.enable_nat_gateway | ||
enable_vpn_gateway = var.enable_vpn_gateway # I might not want this in some environments.... | ||
|
||
} | ||
|
||
module "eks" { | ||
source = "[email protected]:terraform-aws-modules/terraform-aws-eks.git?ref=v1.0.0" | ||
# Use some outputs from above | ||
} | ||
|
||
# I could also have the Flux and Grafana Provider.... |
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,17 @@ | ||
# All of these are already defined in vpc... but I have to redefine them just to pass them them back to the root module... | ||
|
||
output "name" { | ||
|
||
} | ||
|
||
output "cidr" { | ||
|
||
} | ||
|
||
output "enable_nat_gateway" { | ||
|
||
} | ||
|
||
output "enable_vpn_gateway" { | ||
|
||
} |