File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ moved {
16+ from = module. cloud-dns-private-google-apis
17+ to = module. cloud-dns-private-google-apis [0 ]
18+ }
19+
20+ moved {
21+ from = module. cloud-dns-private-artifact-registry
22+ to = module. cloud-dns-private-artifact-registry [0 ]
23+ }
24+
25+ moved {
26+ from = module. source-repositories-private-artifact-registry
27+ to = module. source-repositories-private-artifact-registry [0 ]
28+ }
29+
1530locals {
1631 # See https://cloud.google.com/vpc/docs/configure-private-google-access#config-domain
1732 private_google_access_ips = [
@@ -20,6 +35,7 @@ locals {
2035}
2136
2237module "cloud-dns-private-google-apis" {
38+ count = var. create_dns_zones ? 1 : 0
2339 source = " terraform-google-modules/cloud-dns/google"
2440 version = " 5.3.0"
2541
@@ -52,6 +68,7 @@ module "cloud-dns-private-google-apis" {
5268}
5369
5470module "cloud-dns-private-artifact-registry" {
71+ count = var. create_dns_zones ? 1 : 0
5572 source = " terraform-google-modules/cloud-dns/google"
5673 version = " 5.3.0"
5774
@@ -84,6 +101,7 @@ module "cloud-dns-private-artifact-registry" {
84101}
85102
86103module "source-repositories-private-artifact-registry" {
104+ count = var. create_dns_zones ? 1 : 0
87105 source = " terraform-google-modules/cloud-dns/google"
88106 version = " 5.3.0"
89107
Original file line number Diff line number Diff line change @@ -116,3 +116,9 @@ variable "abfs_enable_git_lfs" {
116116 description = " Enable Git LFS support"
117117 default = false
118118}
119+
120+ variable "create_dns_zones" {
121+ type = bool
122+ description = " Whether to create the DNS zones for private access to Artifact Registry"
123+ default = true
124+ }
You can’t perform that action at this time.
0 commit comments