Skip to content

Commit

Permalink
Pull up secret manager service to root module
Browse files Browse the repository at this point in the history
  • Loading branch information
markhobson committed Jun 18, 2024
1 parent 227deee commit db44b98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
8 changes: 4 additions & 4 deletions cloud/schemes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ data "terraform_remote_state" "schemes_database" {
workspace = local.config[local.env].schemes_database
}

module "secret_manager" {
source = "./secret-manager"
resource "google_project_service" "secret_manager" {
project = local.project
service = "secretmanager.googleapis.com"
}

module "cloud_sql" {
Expand All @@ -61,7 +61,7 @@ module "cloud_sql" {
database_backups = local.config[local.env].database_backups

depends_on = [
module.secret_manager
google_project_service.secret_manager
]
}

Expand All @@ -83,7 +83,7 @@ module "cloud_run" {
basic_auth = local.config[local.env].basic_auth

depends_on = [
module.secret_manager
google_project_service.secret_manager
]
}

Expand Down
4 changes: 0 additions & 4 deletions cloud/schemes/secret-manager/main.tf

This file was deleted.

4 changes: 0 additions & 4 deletions cloud/schemes/secret-manager/variables.tf

This file was deleted.

0 comments on commit db44b98

Please sign in to comment.