File tree Expand file tree Collapse file tree 5 files changed +54
-5
lines changed Expand file tree Collapse file tree 5 files changed +54
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ module "project_factory_project_services" {
1313 ]
1414}
1515
16+ data "google_client_config" "current" {}
17+
18+ locals {
19+ project_id = data. google_client_config . current . project
20+ }
21+
1622module "networking" {
1723 source = " ./modules/networking"
1824 namespace = var. namespace
@@ -34,6 +40,13 @@ module "database" {
3440 depends_on = [module . networking ]
3541}
3642
43+ module "storage" {
44+ source = " ./modules/storage"
45+ namespace = var. namespace
46+
47+ deletion_protection = var. deletion_protection
48+ }
49+
3750module "redis" {
3851 source = " ./modules/redis"
3952 namespace = var. namespace
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ locals {
44 }
55
66 image_tags = {
7- " webservice.image.tag" = " e2b19bd " ,
8- " migrations.image.tag" = " e2b19bd " ,
9- " event-worker.image.tag" = " e2b19bd " ,
10- " job-policy-checker.image.tag" = " e2b19bd " ,
7+ " webservice.image.tag" = " a324758 " ,
8+ " migrations.image.tag" = " f8372a7 " ,
9+ " event-worker.image.tag" = " a324758 " ,
10+ " job-policy-checker.image.tag" = " a324758 " ,
1111 }
1212
1313 postgres_settings = {
Original file line number Diff line number Diff line change 1+
2+ data "google_client_config" "current" {}
3+
4+ resource "google_storage_bucket" "this" {
5+ name = var. namespace
6+ location = data. google_client_config . current . region
7+ project = data. google_client_config . current . project
8+
9+ uniform_bucket_level_access = true
10+ force_destroy = ! var. deletion_protection
11+
12+ labels = var. labels
13+
14+ cors {
15+ origin = [" *" ]
16+ method = [" GET" , " HEAD" , " PUT" ]
17+ response_header = [" *" ]
18+ max_age_seconds = 3000
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ variable "namespace" {
2+ description = " The namespace for the Redis instance."
3+ type = string
4+ }
5+
6+ variable "deletion_protection" {
7+ description = " Whether to protect the bucket from deletion."
8+ type = bool
9+ default = false
10+ }
11+
12+ variable "labels" {
13+ description = " Labels for the bucket."
14+ type = map (string )
15+ default = {}
16+ }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ variable "google_auth" {
5959
6060variable "chart_version" {
6161 type = string
62- default = " 0.1.29 "
62+ default = " 0.1.35 "
6363}
6464
6565variable "github_bot" {
You can’t perform that action at this time.
0 commit comments