diff --git a/.gitignore b/.gitignore index b21fa44..2c2c729 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,12 @@ terraform.rc .terragrunt-cache/ terragrunt.hcl.backup + +!live/stage/s3/.terraform.lock.hcl +!live/stage/database/.terraform.lock.hcl +!live/stage/namespace/.terraform.lock.hcl +!live/stage/secrets/.terraform.lock.hcl + # Generated files .gitlab-ci.generated.yml diff --git a/live/stage/database/.terraform.lock.hcl b/live/stage/database/.terraform.lock.hcl new file mode 100644 index 0000000..ec1babe --- /dev/null +++ b/live/stage/database/.terraform.lock.hcl @@ -0,0 +1,26 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/kubernetes" { + version = "2.38.0" + constraints = "~> 2.23" + hashes = [ + "h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=", + ] +} + +provider "registry.terraform.io/hashicorp/random" { + version = "3.8.0" + constraints = "~> 3.1" + hashes = [ + "h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=", + ] +} + +provider "registry.terraform.io/yandex-cloud/yandex" { + version = "0.181.0" + constraints = "~> 0.100" + hashes = [ + "h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=", + ] +} diff --git a/live/stage/namespace/.terraform.lock.hcl b/live/stage/namespace/.terraform.lock.hcl new file mode 100644 index 0000000..ec1babe --- /dev/null +++ b/live/stage/namespace/.terraform.lock.hcl @@ -0,0 +1,26 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/kubernetes" { + version = "2.38.0" + constraints = "~> 2.23" + hashes = [ + "h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=", + ] +} + +provider "registry.terraform.io/hashicorp/random" { + version = "3.8.0" + constraints = "~> 3.1" + hashes = [ + "h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=", + ] +} + +provider "registry.terraform.io/yandex-cloud/yandex" { + version = "0.181.0" + constraints = "~> 0.100" + hashes = [ + "h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=", + ] +} diff --git a/live/stage/s3/.terraform.lock.hcl b/live/stage/s3/.terraform.lock.hcl new file mode 100644 index 0000000..ec1babe --- /dev/null +++ b/live/stage/s3/.terraform.lock.hcl @@ -0,0 +1,26 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/kubernetes" { + version = "2.38.0" + constraints = "~> 2.23" + hashes = [ + "h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=", + ] +} + +provider "registry.terraform.io/hashicorp/random" { + version = "3.8.0" + constraints = "~> 3.1" + hashes = [ + "h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=", + ] +} + +provider "registry.terraform.io/yandex-cloud/yandex" { + version = "0.181.0" + constraints = "~> 0.100" + hashes = [ + "h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=", + ] +} diff --git a/live/stage/secrets/.terraform.lock.hcl b/live/stage/secrets/.terraform.lock.hcl new file mode 100644 index 0000000..ec1babe --- /dev/null +++ b/live/stage/secrets/.terraform.lock.hcl @@ -0,0 +1,26 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/kubernetes" { + version = "2.38.0" + constraints = "~> 2.23" + hashes = [ + "h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=", + ] +} + +provider "registry.terraform.io/hashicorp/random" { + version = "3.8.0" + constraints = "~> 3.1" + hashes = [ + "h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=", + ] +} + +provider "registry.terraform.io/yandex-cloud/yandex" { + version = "0.181.0" + constraints = "~> 0.100" + hashes = [ + "h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=", + ] +} diff --git a/scripts/generate-pipeline.sh b/scripts/generate-pipeline.sh index 663cf60..3e893cf 100755 --- a/scripts/generate-pipeline.sh +++ b/scripts/generate-pipeline.sh @@ -97,18 +97,6 @@ validate-${job_prefix}: - cd \${TG_ROOT} - ls -la - export TF_PLUGIN_CACHE_DIR=/root/.terraform.d/plugin-cache - - | - if [ -n "$needs_deps" ]; then - for dep in $needs_deps; do - dep_component=$(echo "$dep" | sed "s/validate-${env}-//") - dep_cache_path="${component_dir}/../${dep_component}/.terragrunt-cache" - if [ -d "${dep_cache_path}" ]; then - echo "Restoring .terragrunt-cache from ${dep_component}" - mkdir -p .terragrunt-cache - cp -r "${dep_cache_path}"/* .terragrunt-cache/ 2>/dev/null || true - fi - done - fi script: - env | grep -E "(S3_|AWS_)" || echo "No S3/AWS vars found" - terragrunt init -upgrade -reconfigure