From 05caf2c680d61ed87f3ca32128736a44d933b7ae Mon Sep 17 00:00:00 2001 From: sr33hari Date: Wed, 10 Jul 2024 21:59:59 -0700 Subject: [PATCH] useless1 --- main.tf | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index 63d668a..e4dc547 100644 --- a/main.tf +++ b/main.tf @@ -8,6 +8,19 @@ provider "google-beta" { region = var.region } +terraform { + required_providers { + time = { + source = "hashicorp/time" + } + } + required_version = ">= 1.8.0" +} + +locals { + plan_time = provider::time::rfc3339_parse(plantimestamp()) +} + data "external" "get_artifact_registry_repo" { program = ["bash", "gcp.sh"] query = { @@ -34,10 +47,6 @@ resource "google_artifact_registry_repository" "my_repo" { count = data.external.get_artifact_registry_repo.result.name == "" ? 1 : 0 } -locals { - plan_time = provider::time::rfc3339_parse(plantimestamp()) -} - resource "null_resource" "build_and_push_image" { provisioner "local-exec" { command = <