Skip to content

Commit

Permalink
Remove unused Terraform files and modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Dec 14, 2023
1 parent d235789 commit c08c296
Show file tree
Hide file tree
Showing 23 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ The `live` directory houses our live infrastructure. This is where you'll find o

It is recommended to create a separate directory for each environment (e.g., `dev`, `staging`, `prod`) and region (e.g., `us-east-1`, `us-west-2`, `eu-west-1`). This allows you to easily manage and deploy your infrastructure.

| Module | Description |
| :----------------------------------------------------------------------- | :---------------------------------------------------- |
| [Prod Infrastructure (us-west-2)](./live/prod/us-west-2/README.md) | Terraform root module for our prod infrastructure. |
| [Staging Infrastructure (us-west-2)](./live/staging/us-west-2/README.md) | Terraform root module for our staging infrastructure. |
| Module | Description |
| :------------------------------------------------------------------------------- | :---------------------------------------------------- |
| [Prod App Infrastructure (us-west-2)](./live/prod/us-west-2/app/README.md) | Terraform root module for our prod infrastructure. |
| [Staging App Infrastructure (us-west-2)](./live/staging/us-west-2/app/README.md) | Terraform root module for our staging infrastructure. |

## Terraform Modules

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {
module "bastion" {
count = local.bastion.enable ? 1 : 0

source = "../../../modules/bastion"
source = "../../../../modules/bastion"
name = "${module.label.id}-bastion"
vpc_id = module.vpc.vpc_id
subnets = module.vpc.public_subnets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
context = {
name = "infra"
name = "app"
namespace = "nan"
environment = "prod"
tags = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

| Name | Source | Version |
|------|--------|---------|
| <a name="module_bastion"></a> [bastion](#module\_bastion) | ../../../modules/bastion | n/a |
| <a name="module_exampledb"></a> [exampledb](#module\_exampledb) | ../../../modules/rds | n/a |
| <a name="module_bastion"></a> [bastion](#module\_bastion) | ../../../../modules/bastion | n/a |
| <a name="module_exampledb"></a> [exampledb](#module\_exampledb) | ../../../../modules/rds | n/a |
| <a name="module_label"></a> [label](#module\_label) | cloudposse/label/null | 0.25.0 |
| <a name="module_terraform_state_backend"></a> [terraform\_state\_backend](#module\_terraform\_state\_backend) | cloudposse/tfstate-backend/aws | 1.1.1 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | ../../../modules/vpc | n/a |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | ../../../../modules/vpc | n/a |

## Resources

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ locals {
}

module "exampledb" {
source = "../../../modules/rds"
source = "../../../../modules/rds"

name = "${module.label.id}-exampledb"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "vpc" {
source = "../../../modules/vpc"
source = "../../../../modules/vpc"
name = module.label.id
vpc_cidr_block = "10.0.0.0/16"
tags = module.label.tags
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {
module "bastion" {
count = local.bastion.enable ? 1 : 0

source = "../../../modules/bastion"
source = "../../../../modules/bastion"
name = "${module.label.id}-bastion"
vpc_id = module.vpc.vpc_id
subnets = module.vpc.public_subnets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
context = {
name = "infra"
name = "app"
namespace = "nan"
environment = "staging"
tags = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

| Name | Source | Version |
|------|--------|---------|
| <a name="module_bastion"></a> [bastion](#module\_bastion) | ../../../modules/bastion | n/a |
| <a name="module_exampledb"></a> [exampledb](#module\_exampledb) | ../../../modules/rds | n/a |
| <a name="module_bastion"></a> [bastion](#module\_bastion) | ../../../../modules/bastion | n/a |
| <a name="module_exampledb"></a> [exampledb](#module\_exampledb) | ../../../../modules/rds | n/a |
| <a name="module_label"></a> [label](#module\_label) | cloudposse/label/null | 0.25.0 |
| <a name="module_terraform_state_backend"></a> [terraform\_state\_backend](#module\_terraform\_state\_backend) | cloudposse/tfstate-backend/aws | 1.1.1 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | ../../../modules/vpc | n/a |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | ../../../../modules/vpc | n/a |

## Resources

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ locals {
}

module "exampledb" {
source = "../../../modules/rds"
source = "../../../../modules/rds"

name = "${module.label.id}-exampledb"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "vpc" {
source = "../../../modules/vpc"
source = "../../../../modules/vpc"
name = module.label.id
vpc_cidr_block = "10.1.0.0/16"
tags = module.label.tags
Expand Down

0 comments on commit c08c296

Please sign in to comment.