Skip to content

Commit 7211d87

Browse files
authored
chore(monitoring): remove unused monitoring project (#1200)
1 parent da407aa commit 7211d87

File tree

25 files changed

+34
-166
lines changed

25 files changed

+34
-166
lines changed

0-bootstrap/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ stages.</td>
1515
</tr>
1616
<tr>
1717
<td><a href="../1-org">1-org</a></td>
18-
<td>Sets up top-level shared folders, monitoring and networking projects, and
18+
<td>Sets up top-level shared folders, networking projects, and
1919
organization-level logging, and sets baseline security settings through
2020
organizational policy.</td>
2121
</tr>
@@ -311,7 +311,7 @@ Each step has instructions for this change.
311311
| default\_region\_gcs | Case-Sensitive default region to create gcs resources where applicable. | `string` | `"US"` | no |
312312
| default\_region\_kms | Secondary default region to create kms resources where applicable. | `string` | `"us"` | no |
313313
| folder\_prefix | Name prefix to use for folders created. Should be the same in all steps. | `string` | `"fldr"` | no |
314-
| groups | Contain the details of the Groups to be created. | <pre>object({<br> create_required_groups = optional(bool, false)<br> create_optional_groups = optional(bool, false)<br> billing_project = optional(string, null)<br> required_groups = object({<br> group_org_admins = string<br> group_billing_admins = string<br> billing_data_users = string<br> audit_data_users = string<br> monitoring_workspace_users = string<br> })<br> optional_groups = optional(object({<br> gcp_security_reviewer = optional(string, "")<br> gcp_network_viewer = optional(string, "")<br> gcp_scc_admin = optional(string, "")<br> gcp_global_secrets_admin = optional(string, "")<br> gcp_kms_admin = optional(string, "")<br> }), {})<br> })</pre> | n/a | yes |
314+
| groups | Contain the details of the Groups to be created. | <pre>object({<br> create_required_groups = optional(bool, false)<br> create_optional_groups = optional(bool, false)<br> billing_project = optional(string, null)<br> required_groups = object({<br> group_org_admins = string<br> group_billing_admins = string<br> billing_data_users = string<br> audit_data_users = string<br> })<br> optional_groups = optional(object({<br> gcp_security_reviewer = optional(string, "")<br> gcp_network_viewer = optional(string, "")<br> gcp_scc_admin = optional(string, "")<br> gcp_global_secrets_admin = optional(string, "")<br> gcp_kms_admin = optional(string, "")<br> }), {})<br> })</pre> | n/a | yes |
315315
| initial\_group\_config | Define the group configuration when it is initialized. Valid values are: WITH\_INITIAL\_OWNER, EMPTY and INITIAL\_GROUP\_CONFIG\_UNSPECIFIED. | `string` | `"WITH_INITIAL_OWNER"` | no |
316316
| org\_id | GCP Organization ID | `string` | n/a | yes |
317317
| org\_policy\_admin\_role | Additional Org Policy Admin role for admin group. You can use this for testing purposes. | `bool` | `false` | no |

0-bootstrap/terraform.example.tfvars

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ groups = {
2525
# create_optional_groups = false # Change to true to create the optional_groups
2626
# billing_project = "REPLACE_ME" # Fill to create required or optional groups
2727
required_groups = {
28-
group_org_admins = "REPLACE_ME" # example "[email protected]"
29-
group_billing_admins = "REPLACE_ME" # example "[email protected]"
30-
billing_data_users = "REPLACE_ME" # example "[email protected]"
31-
audit_data_users = "REPLACE_ME" # example "[email protected]"
32-
monitoring_workspace_users = "REPLACE_ME" # example "[email protected]"
28+
group_org_admins = "REPLACE_ME" # example "[email protected]"
29+
group_billing_admins = "REPLACE_ME" # example "[email protected]"
30+
billing_data_users = "REPLACE_ME" # example "[email protected]"
31+
audit_data_users = "REPLACE_ME" # example "[email protected]"
3332
}
3433
# optional_groups = {
3534
# gcp_security_reviewer = "" #"[email protected]"

0-bootstrap/variables.tf

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@ variable "groups" {
100100
create_optional_groups = optional(bool, false)
101101
billing_project = optional(string, null)
102102
required_groups = object({
103-
group_org_admins = string
104-
group_billing_admins = string
105-
billing_data_users = string
106-
audit_data_users = string
107-
monitoring_workspace_users = string
103+
group_org_admins = string
104+
group_billing_admins = string
105+
billing_data_users = string
106+
audit_data_users = string
108107
})
109108
optional_groups = optional(object({
110109
gcp_security_reviewer = optional(string, "")
@@ -139,11 +138,6 @@ variable "groups" {
139138
condition = var.groups.required_groups.audit_data_users != ""
140139
error_message = "The group audit_data_users is invalid, it must be a valid email"
141140
}
142-
143-
validation {
144-
condition = var.groups.required_groups.monitoring_workspace_users != ""
145-
error_message = "The group monitoring_workspace_users is invalid, it must be a valid email"
146-
}
147141
}
148142

149143
variable "initial_group_config" {

1-org/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ stages.</td>
1515
</tr>
1616
<tr>
1717
<td>1-org (this file)</td>
18-
<td>Sets up top-level shared folders, monitoring and networking projects, and
18+
<td>Sets up top-level shared folders, networking projects, and
1919
organization-level logging, and sets baseline security settings through
2020
organizational policy.</td>
2121
</tr>
@@ -55,7 +55,7 @@ For an overview of the architecture and the parts, see the
5555

5656
## Purpose
5757

58-
The purpose of this step is to set up top-level shared folders, monitoring and networking projects, organization-level logging, and baseline security settings through organizational policies.
58+
The purpose of this step is to set up top-level shared folders, networking projects, organization-level logging, and baseline security settings through organizational policies.
5959

6060
## Prerequisites
6161

2-environments/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ stages.</td>
1515
</tr>
1616
<tr>
1717
<td><a href="../1-org">1-org</a></td>
18-
<td>Sets up top level shared folders, monitoring and networking projects, and
18+
<td>Sets up top level shared folders, networking projects, and
1919
organization-level logging, and sets baseline security settings through
2020
organizational policy.</td>
2121
</tr>
@@ -61,8 +61,6 @@ The purpose of this step is to setup development, nonproduction, and production
6161

6262
1. 0-bootstrap executed successfully.
6363
1. 1-org executed successfully.
64-
1. Cloud Identity / Google Workspace group for monitoring admins.
65-
1. Membership in the monitoring admins group for user running Terraform.
6664

6765
### Troubleshooting
6866

2-environments/envs/development/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@
1313
| env\_folder | Environment folder created under parent. |
1414
| env\_kms\_project\_id | Project for environment Cloud Key Management Service (KMS). |
1515
| env\_secrets\_project\_id | Project for environment related secrets. |
16-
| monitoring\_project\_id | Project for monitoring infra. |
1716

1817
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

2-environments/envs/development/outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ output "env_folder" {
1919
value = module.env.env_folder
2020
}
2121

22-
output "monitoring_project_id" {
23-
description = "Project for monitoring infra."
24-
value = module.env.monitoring_project_id
25-
}
26-
2722
output "env_secrets_project_id" {
2823
description = "Project for environment related secrets."
2924
value = module.env.env_secrets_project_id

2-environments/envs/nonproduction/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@
1313
| env\_folder | Environment folder created under parent. |
1414
| env\_kms\_project\_id | Project for environment Cloud Key Management Service (KMS). |
1515
| env\_secrets\_project\_id | Project for environment related secrets. |
16-
| monitoring\_project\_id | Project for monitoring infra. |
1716

1817
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

2-environments/envs/nonproduction/outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ output "env_folder" {
1919
value = module.env.env_folder
2020
}
2121

22-
output "monitoring_project_id" {
23-
description = "Project for monitoring infra."
24-
value = module.env.monitoring_project_id
25-
}
26-
2722
output "env_secrets_project_id" {
2823
description = "Project for environment related secrets."
2924
value = module.env.env_secrets_project_id

2-environments/envs/production/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
| env\_folder | Environment folder created under parent. |
1616
| env\_kms\_project\_id | Project for environment Cloud Key Management Service (KMS). |
1717
| env\_secrets\_project\_id | Project for environment related secrets. |
18-
| monitoring\_project\_id | Project for monitoring infra. |
1918

2019
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2120

0 commit comments

Comments
 (0)