Skip to content

Commit

Permalink
move submodules into modules directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jindraj committed Feb 12, 2024
1 parent a471cea commit 86d7d00
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module "database" {

module "users" {
for_each = local.users
source = "../..//user"
source = "../..//modules/user"

username = each.key
roles = each.value.roles
Expand Down
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ locals {
}

module "database" {
source = "./database"
source = "./modules/database"

database_name = var.database
owner_username = var.owner_username
}

module "access_ro" {
source = "./access"
source = "./modules/access"

database_name = var.database
database_owner = module.database.username
Expand All @@ -33,7 +33,7 @@ module "access_ro" {
}

module "access_rw" {
source = "./access"
source = "./modules/access"

database_name = var.database
database_owner = module.database.username
Expand All @@ -45,7 +45,7 @@ module "access_rw" {
}

module "access_app" {
source = "./access"
source = "./modules/access"

database_name = var.database
database_owner = module.database.username
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 86d7d00

Please sign in to comment.