This repository contains Terraform configuration files that I have prepared for my personal use. These configurations assume the specifications for infrastructure management on Google Cloud Platform (GCP).
- Terraform version 0.14 or later
- Google Cloud SDK (for authentication)
- A Google Cloud Platform (GCP) project
- Execute
cp credentials.json.sample credentials.json. - Fill in own GCP service account information to credentials.json.
Note: Be sure to handle the service account information with care, as it can grant access to the GCP resources. Do not share it and do not commit it to version control.
Comment out the parts of the Terraform configuration that are NOT related to the Artifact Registry.
-
Run terraform plan to confirm that there are no issues with the configuration:
terraform plan
-
If no issues are detected, apply the configuration to create the Artifact Registry on the GCP project:
terraform apply
After running terraform apply, the Artifact Registry will be set up on the GCP project. And can now use it to manage a Docker images.
These configurations can affect real resources on GCP. Always double-check the settings and understand what changes will occur before running terraform apply.