Log in to the GCP platform:
gcloud auth loginCreate the infrastructure:
terraform plan
terraform apply -auto-approveCreate a local temporary directory:
mkdir .tmpDownload the Google Ghrome installation file:
curl -L https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o .tmp/chrome.debSet the project variable:
export CLOUDSDK_CORE_PROJECT="<PROJECT_ID>"Upload the package:
gcloud artifacts apt upload apt-standard --source=".tmp/chrome.deb" --location "southamerica-east1"Download the key:
curl -L https://southamerica-east1-apt.pkg.dev/doc/repo-signing-key.gpg | gpg --dearmor | sudo tee /etc/apt/keyrings/repo-signing-key.gpg > /dev/nullSet the repository entry, replacing the PROJECT_ID and REPOSITORY_NAME:
echo 'deb [signed-by=/etc/apt/keyrings/repo-signing-key.gpg] https://southamerica-east1-apt.pkg.dev/projects/<PROJECT_ID> <REPOSITORY_NAME> main' | sudo tee -a /etc/apt/sources.list.d/artifact-registry.listInstall the packages:
Tip
The repository has been set to public by setting permissions to allUsers
sudo apt install chrome-chrome-stable/<REPOSITORY_NAME>More deatils can be found in the troubleshooting guide.