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 1a86a72 commit 61cbc21
Show file tree
Hide file tree
Showing 13 changed files with 90 additions and 7 deletions.
23 changes: 23 additions & 0 deletions _examples/multi-account/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,26 @@ locals {}
#RDS
#EFS
#EBS Encryption

locals {
name = "ct"
environment = "dev"
region = "us-east-1"
}

provider "aws" {
region = local.region
}

# ------------------------------------------------------------------------------
# Resources
# ------------------------------------------------------------------------------
module "CT" {
source = "../../"
name = local.name
environment = local.environment

cidr_block = "10.0.20.0/16"
subnet_type = private

}
2 changes: 1 addition & 1 deletion _examples/multi-account/management/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ module "name" {

}

module EKS
#module EKS
23 changes: 23 additions & 0 deletions _examples/multi-account/networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,26 @@ locals {}
#GuardRails
# VPN
# Bastion host

locals {
name = "ct"
environment = "networking"
region = "us-east-1"
}

provider "aws" {
region = local.region
}

# ------------------------------------------------------------------------------
# Resources
# ------------------------------------------------------------------------------
module "CT" {
source = "../../"
name = local.name
environment = local.environment

cidr_block = "10.0.10.0/16"
subnet_type = private

}
25 changes: 19 additions & 6 deletions _examples/single-account/main.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
# ------------------------------------------------------------------------------
# Resources
# ------------------------------------------------------------------------------
locals {
name = "ct"
environment = "networking"
region = "us-east-1"
domain = "identos.ca"
}

provider "aws" {
region = local.region
}

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

cidr_block = var.cidr_block
subnet_type = var.subnet_type
}
cidr_block = "10.0.10.0/16"
subnet_type = private

## ACM
domain_name = local.domain
}

## Route53
record_enabled = true
public_enabled = true
records = [
{},
{},
]
24 changes: 24 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,28 @@ module "subnet" {
igw_id = module.vpc.igw_id
cidr_block = module.vpc.vpc_cidr_block

}

module "acm" {
source = "clouddrove/acm/aws"
version = "1.4.0"

name = var.name
environment = var.environment

domain_name = var.domain
subject_alternative_names = ["*.${var.domain}", "www.${var.domain}"]
}


module "route53" {

Check warning on line 45 in main.tf

View workflow job for this annotation

GitHub Actions / tflint / tflint

module "route53" should specify a version
source = "clouddrove/route53/aws"

name = var.name
environment = var.environment

public_enabled = var.public_enabled
private_enabled = var.private_enabled

domain_name = var.domain_name
}
Empty file removed modules/acm/README.md
Empty file.
Empty file removed modules/acm/main.tf
Empty file.
Empty file removed modules/acm/outputs.tf
Empty file.
Empty file removed modules/acm/variables.tf
Empty file.
Empty file removed modules/route53/README.md
Empty file.
Empty file removed modules/route53/main.tf
Empty file.
Empty file removed modules/route53/outputs.tf
Empty file.
Empty file removed modules/route53/variables.tf
Empty file.

0 comments on commit 61cbc21

Please sign in to comment.