Skip to content

Commit

Permalink
Update private subnet group name
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Jan 8, 2024
1 parent d38a48c commit 66f7124
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions terraform/india/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ module "network" {
domain = local.domain
}

import {
to = module.network.aws_db_subnet_group.private_subnet_group
id = "private-subnet-group-development"
}

/*
# 1.1
module "ecs-cluster" {
Expand Down
4 changes: 2 additions & 2 deletions terraform/modules/networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ resource "aws_subnet" "private_subnets" {

// Create a subnet group from the private subnets
resource "aws_db_subnet_group" "private_subnet_group" {
name = "private-subnet-group-${var.environment}"
name = "${local.prefix}-private-subnet-group"
description = "Terraform private subnet group"
subnet_ids = [
for subnet in aws_subnet.private_subnets : subnet.id
]
}

// Rouning table for the private subnets
// Routing table for the private subnets
resource "aws_route_table" "private" {
vpc_id = aws_vpc.vpc.id
tags = {
Expand Down

0 comments on commit 66f7124

Please sign in to comment.