Skip to content

Default zones and typos

Looking at the sandbox cloud we don't have any regions set as the recommended ones, instead in the code we just give an example:

variable "gcp_region_zone" {
  type        = string
  description = "The GCP region availability zone that the resources will be deployed in. This must match the region. (Example: us-east1-c)"
  default     = "us-east1-c"
}

that itself is fine for most of the team (EMEA team will choose EU regions), however by default the region specified is not a low CO2 region - https://cloud.google.com/compute/docs/regions-zones

We have the Environmental sustainability page that mentions:

We care about sustainability as we view it is a part of doing responsible business. GitLab began to quantify global emissions in 2021. We have made proactive purchases of carbon offsets in advance of more thorough analysis as we believe in iteration and don't want to wait for perfection before starting to take corrective measures to reduce our carbon footprint.

Having that in mind I manually checked the costs:

Screenshot_2023-06-05_at_11.06.12_AM

It seems that the eu-west1 region is the cheapest while being a Low C02 region.


Summary of changes:

  • Set europe-west1 as the default region
  • Set europe-west1-b as the default zone
  • Updated description to match default image (ubuntu-2004-focal-v20210720)
  • Removed variable size as it's not used as part of this instance
  • Updated readme to include most common variables that might be changed
  • Updated typos Gitlab => GitLab as per Writing style guidelines, as well as Weather => Whether

Merge request reports

Loading