Skip to content

Commit

Permalink
LRNT-XXX: Reseting to most basic state (#31)
Browse files Browse the repository at this point in the history
# LRNT-XXX: Pull Request Title

## πŸ‘¨πŸ½β€πŸ’» Description

These changes return the infrastructure to the most basic state. The
basic state covers the DNS and SSL certificates for all the
environments.

## βœ… Testing

I provisioned the infrastructure already to all environments.

Signed-off-by: Ulises Tirado Zatarain <[email protected]>
  • Loading branch information
zatarain authored Aug 9, 2024
1 parent 08bd91e commit c9ffc89
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alb.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/**
resource "aws_alb" "entry-point" {
for_each = toset(local.configuration.sdlc.environments)
name = "entry-point" # Naming our load balancer
Expand Down Expand Up @@ -45,3 +46,4 @@ resource "aws_alb_listener" "secure-entry-point" {
}
# depends_on = [ aws_acm_certificate.entry-point[each.value] ]
}
/**/
2 changes: 2 additions & 0 deletions firewall.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/**
# Creating a security group for load balancers
resource "aws_security_group" "entry-point" {
for_each = toset(local.configuration.sdlc.environments)
Expand Down Expand Up @@ -57,3 +58,4 @@ resource "aws_security_group" "alb-access" {
Name = "ALB Access"
}
}
/**/
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
module "mycv" {
for_each = toset(local.configuration.sdlc.environments)
source = "./portfolio"
Expand All @@ -24,3 +25,4 @@ module "mycv" {
aws.root = aws.root
}
}
/**/
2 changes: 2 additions & 0 deletions vpc.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/**
# Providing a reference to our default VPC
resource "aws_default_vpc" "default_vpc" {
for_each = toset(local.configuration.sdlc.workspaces)
Expand Down Expand Up @@ -124,3 +125,4 @@ locals {
one(values(aws_default_subnet.default_subnet_c)),
]
}
/**/

0 comments on commit c9ffc89

Please sign in to comment.