Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
Created Kubernetes and VPC Module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Davies committed Aug 19, 2022
0 parents commit 5925098
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
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.
17 changes: 17 additions & 0 deletions inputs.tf
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" {

}
17 changes: 17 additions & 0 deletions module.tf
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....
17 changes: 17 additions & 0 deletions outputs.tf
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" {

}

0 comments on commit 5925098

Please sign in to comment.