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:
It seems that the eu-west1 region is the cheapest while being a Low C02 region.
Summary of changes:
- Set
europe-west1as the default region - Set
europe-west1-bas the default zone - Updated description to match default image (
ubuntu-2004-focal-v20210720) - Removed variable
sizeas it's not used as part of this instance - Updated readme to include most common variables that might be changed
- Updated typos
Gitlab=>GitLabas per Writing style guidelines, as well asWeather=>Whether
