Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Sep 29, 2023
1 parent 92761c5 commit 1a86a72
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 13 deletions.
8 changes: 4 additions & 4 deletions _examples/multi-account/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ locals {}
#ACM ()
#Route53 dev.xyz.ca
#SecurtyBaseline
#Cloudtrail
#GuardDuty
#SecutyHub
#GuardRails
#Cloudtrail
#GuardDuty
#SecutyHub
#GuardRails

#EKS
#RDS
Expand Down
8 changes: 4 additions & 4 deletions _examples/multi-account/networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ locals {}
#ACM ()
#Route53 networking.identos.ca
#SecurtyBaseline
#Cloudtrail
#GuardDuty
#SecutyHub
#GuardRails
#Cloudtrail
#GuardDuty
#SecutyHub
#GuardRails
# VPN
# Bastion host
8 changes: 4 additions & 4 deletions _examples/multi-account/shared/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ locals {}
#ACM ()
#Route53 dev.identos.ca
#SecurtyBaseline
#Cloudtrail
#GuardDuty
#SecutyHub
#GuardRails
#Cloudtrail
#GuardDuty
#SecutyHub
#GuardRails
# OIDC
# EKS
# EFS
Expand Down
15 changes: 14 additions & 1 deletion _examples/single-account/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# ------------------------------------------------------------------------------
# Resources
# ------------------------------------------------------------------------------
locals {}
locals {
name = "ct"
environment = "networking"
region = "us-east-1"
}

module "CT" {
source = "../../"
name = local.name
environment = local.environment

cidr_block = var.cidr_block
subnet_type = var.subnet_type
}
25 changes: 25 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,28 @@
locals {
label_order = var.label_order
}

##----------------------------------------------VPC--------------------------------------------------------##
module "vpc" {
source = "clouddrove/vpc/aws"
version = "2.0.0"

name = var.name
environment = var.environment
cidr_block = var.cidr_block
}

##----------------------------------------------SUBNETS----------------------------------------------------##
module "subnet" {
source = "clouddrove/subnet/aws"
version = "2.0.0"

name = var.name
environment = var.environment
availability_zones = ["${var.region}a", "${var.region}b", "${var.region}c"]
vpc_id = module.vpc.vpc_id
type = var.subnet_type
igw_id = module.vpc.igw_id
cidr_block = module.vpc.vpc_cidr_block

}
24 changes: 24 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,27 @@ variable "label_order" {
default = ["name", "environment"]
description = "Label order, e.g. `name`,`environment`."
}

variable "label_order" {
type = list(string)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`environment`."
}

variable "label_order" {
type = list(string)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`environment`."
}

variable "label_order" {
type = list(string)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`environment`."
}

variable "label_order" {
type = list(string)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`environment`."
}

0 comments on commit 1a86a72

Please sign in to comment.