File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
1-org/modules/cai-monitoring
4-projects/modules/base_env Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ locals {
26
26
" run.googleapis.com" ,
27
27
" eventarc.googleapis.com"
28
28
]
29
- cai_source_name = var. random_suffix ? " CAI Monitoring - ${ random_id . suffix . hex } " : " CAI Monitoring"
30
- cai_monitoring_bucket_suffix = " ${ random_id . suffix . hex } -sources-${ data . google_project . project . number } -${ var . location } "
29
+ cai_source_name = var. random_suffix ? " CAI Monitoring - ${ random_id . suffix . hex } " : " CAI Monitoring"
31
30
}
32
31
33
32
data "google_project" "project" {
@@ -75,7 +74,7 @@ module "cloudfunction_source_bucket" {
75
74
version = " ~> 6.0"
76
75
77
76
project_id = var. project_id
78
- name = " bkt-cai-monitoring-${ md5 (local . cai_monitoring_bucket_suffix ) } "
77
+ name = " bkt-cai-monitoring-${ random_id . suffix . hex } -sources- ${ data . google_project . project . number } "
79
78
location = var. location
80
79
storage_class = " REGIONAL"
81
80
force_destroy = true
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- locals {
18
- cmek_bucket_prefix = " ${ var . gcs_bucket_prefix } -cmek-encrypted"
19
- cmek_bucket_suffix = " ${ module . base_shared_vpc_project . project_id } -${ lower (var. location_gcs )} -${ random_string . bucket_name . result } "
20
- }
21
-
22
17
data "google_storage_project_service_account" "gcs_account" {
23
18
project = module. base_shared_vpc_project . project_id
24
19
}
@@ -53,7 +48,7 @@ module "gcs_buckets" {
53
48
54
49
project_id = module. base_shared_vpc_project . project_id
55
50
location = var. location_gcs
56
- name = " ${ local . cmek_bucket_prefix } -${ md5 (local . cmek_bucket_suffix ) } "
51
+ name = " ${ var . gcs_bucket_prefix } -${ module . base_shared_vpc_project . project_id } -cmek-encrypted- ${ random_string . bucket_name . result } "
57
52
bucket_policy_only = true
58
53
custom_placement_config = var. gcs_custom_placement_config
59
54
You can’t perform that action at this time.
0 commit comments