File tree Expand file tree Collapse file tree 5 files changed +23
-6
lines changed
infrastructure/template/gcp
terraform_state/template/gcp Expand file tree Collapse file tree 5 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ data "google_compute_zones" "gcpzones" {
55
66module "registry-jupyterhub" {
77 source = " ./modules/registry"
8+
9+ repository_id = " ${ var . name } -${ var . environment } "
10+ location = var. region
811}
912
1013
Original file line number Diff line number Diff line change 1- resource "google_container_registry" "registry" {
2- location = var. location
1+ resource "google_artifact_registry_repository" "registry" {
2+ # https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/artifact_registry_repository#argument-reference
3+ repository_id = var. repository_id
4+ location = var. location
5+ format = var. format
36}
Original file line number Diff line number Diff line change 11variable "location" {
2- # https://cloud.google.com/container -registry/docs/pushing-and-pulling#pushing_an_image_to_a_registry
2+ # https://cloud.google.com/artifact -registry/docs/docker/ pushing-and-pulling
33 description = " Location of registry"
44 type = string
5- default = " US"
5+ }
6+
7+ variable "format" {
8+ # https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories#Format
9+ description = " The format of packages that are stored in the repository"
10+ type = string
11+ default = " DOCKER"
12+ }
13+
14+ variable "repository_id" {
15+ description = " Name of repository"
16+ type = string
617}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ terraform {
22 required_providers {
33 google = {
44 source = " hashicorp/google"
5- version = " 4.8.0 "
5+ version = " 6.14.1 "
66 }
77 }
88 required_version = " >= 1.0"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ terraform {
2424 required_providers {
2525 google = {
2626 source = " hashicorp/google"
27- version = " 4.83.0 "
27+ version = " 6.14.1 "
2828 }
2929 }
3030 required_version = " >= 1.0"
You can’t perform that action at this time.
0 commit comments