GCP self-hosted installation errors

I am trying to install gitpod on GCP. using the gcp-terraform method.

I got past a few initial errors and now I’m stuck on these errors. These are my settings

main.autovars.yml

name="my gcp account name"
project="my project name"
region="us-east4"
zone_name="us-east4-a"
dns_name = "valid dns name that I own"
container_registry = {
  location = "US"
}
# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.
certificatesSecret: {}
hostname: "valid dns name owned by me"
rabbitmq:
  auth:
    username: jgrabbitmq
    password: "valid password"
minio:
  accessKey: "generated access key"
  secretKey: "generated secret key"
authProviders:
  - id: "GitLab"
    host: "my gitlab installation"
    protocol: "https"
    type: "GitLab"
    oauth:
      clientId: "verified client id"
      clientSecret: "verified client secret"
      callBackUrl: "verified callback url"
      settingsUrl: "verified settings url" 
components:
  wsProxy:
    ingress:
      portRange:
        start: 10000
        end: 11000
  proxy:      
    loadBalancerIP: "valid ip address pointing to the hostname in my domain provider dns"

I get the following errors when I run terraform plan

Warning: Value for undeclared variable

The root module does not declare a variable named "dns_name" but a value was
found in file "main.auto.tfvars". To use this value, add a "variable" block to
the configuration.

Using a variables file to set an undeclared variable is deprecated and will
become an error in a future release. If you wish to provide certain "global"
settings to all configurations in your organization, use TF_VAR_...
environment variables to set these instead.


Warning: Value for undeclared variable

The root module does not declare a variable named "name" but a value was found
in file "main.auto.tfvars". To use this value, add a "variable" block to the
configuration.

Using a variables file to set an undeclared variable is deprecated and will
become an error in a future release. If you wish to provide certain "global"
settings to all configurations in your organization, use TF_VAR_...
environment variables to set these instead.


Warning: Deprecated Attribute

  on ../../modules/kubernetes/main.tf line 59, in resource "google_container_cluster" "gitpod":
  59: resource "google_container_cluster" "gitpod" {

This attribute is currently in beta and will be removed from the google
provider. Please use the google-beta provider to continue using this
attribute.


Error: "account_id" ("db") doesn't match regexp "^[a-z](?:[-a-z0-9]{4,28}[a-z0-9])$"

  on ../../modules/database/main.tf line 50, in resource "google_service_account" "gitpod_database":
  50:   account_id   = var.name



Error: googleapi: Error 404: The 'parameters.managedZone' resource named 'us-east4-a' does not exist., notFound

  on ../../modules/dns/main.tf line 25, in data "google_dns_managed_zone" "gitpod":
  25: data "google_dns_managed_zone" "gitpod" {

Any help is appreciated.

Resolved at Installing gitpod on Google cloud - #4 by plank-tools