From 02c4de20a2293465be367e4820d73ab72d2ed974 Mon Sep 17 00:00:00 2001 From: Valentin Khramtsov Date: Wed, 25 Dec 2024 16:57:16 +0300 Subject: [PATCH] fix:updated ebs encryption --- .../demo/ebs-encryption/.terraform.lock.hcl | 25 +++++++++++++++++++ .../{ => demo}/ebs-encryption/terragrunt.hcl | 6 +++++ .../ebs-encryption/.terraform.lock.hcl | 23 ----------------- 3 files changed, 31 insertions(+), 23 deletions(-) create mode 100644 terragrunt/ACCOUNT_ID/us-east-1/demo/ebs-encryption/.terraform.lock.hcl rename terragrunt/ACCOUNT_ID/us-east-1/{ => demo}/ebs-encryption/terragrunt.hcl (85%) delete mode 100644 terragrunt/ACCOUNT_ID/us-east-1/ebs-encryption/.terraform.lock.hcl diff --git a/terragrunt/ACCOUNT_ID/us-east-1/demo/ebs-encryption/.terraform.lock.hcl b/terragrunt/ACCOUNT_ID/us-east-1/demo/ebs-encryption/.terraform.lock.hcl new file mode 100644 index 0000000..a3fa96c --- /dev/null +++ b/terragrunt/ACCOUNT_ID/us-east-1/demo/ebs-encryption/.terraform.lock.hcl @@ -0,0 +1,25 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "5.82.2" + constraints = "5.82.2" + hashes = [ + "h1:RuPaHbllUB8a2TGTyc149wJfoh6zhIEjUvFYKR6iP2E=", + "zh:0262fc96012fb7e173e1b7beadd46dfc25b1dc7eaef95b90e936fc454724f1c8", + "zh:397413613d27f4f54d16efcbf4f0a43c059bd8d827fe34287522ae182a992f9b", + "zh:436c0c5d56e1da4f0a4c13129e12a0b519d12ab116aed52029b183f9806866f3", + "zh:4d942d173a2553d8d532a333a0482a090f4e82a2238acf135578f163b6e68470", + "zh:624aebc549bfbce06cc2ecfd8631932eb874ac7c10eb8466ce5b9a2fbdfdc724", + "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", + "zh:9e632dee2dfdf01b371cca7854b1ec63ceefa75790e619b0642b34d5514c6733", + "zh:a07567acb115b60a3df8f6048d12735b9b3bcf85ec92a62f77852e13d5a3c096", + "zh:ab7002df1a1be6432ac0eb1b9f6f0dd3db90973cd5b1b0b33d2dae54553dfbd7", + "zh:bc1ff65e2016b018b3e84db7249b2cd0433cb5c81dc81f9f6158f2197d6b9fde", + "zh:bcad84b1d767f87af6e1ba3dc97fdb8f2ad5de9224f192f1412b09aba798c0a8", + "zh:cf917dceaa0f9d55d9ff181b5dcc4d1e10af21b6671811b315ae2a6eda866a2a", + "zh:d8e90ecfb3216f3cc13ccde5a16da64307abb6e22453aed2ac3067bbf689313b", + "zh:d9054e0e40705df729682ad34c20db8695d57f182c65963abd151c6aba1ab0d3", + "zh:ecf3a4f3c57eb7e89f71b8559e2a71e4cdf94eea0118ec4f2cb37e4f4d71a069", + ] +} diff --git a/terragrunt/ACCOUNT_ID/us-east-1/ebs-encryption/terragrunt.hcl b/terragrunt/ACCOUNT_ID/us-east-1/demo/ebs-encryption/terragrunt.hcl similarity index 85% rename from terragrunt/ACCOUNT_ID/us-east-1/ebs-encryption/terragrunt.hcl rename to terragrunt/ACCOUNT_ID/us-east-1/demo/ebs-encryption/terragrunt.hcl index f5cefd1..3c577c6 100644 --- a/terragrunt/ACCOUNT_ID/us-east-1/ebs-encryption/terragrunt.hcl +++ b/terragrunt/ACCOUNT_ID/us-east-1/demo/ebs-encryption/terragrunt.hcl @@ -3,6 +3,11 @@ include "root" { expose = true } +include "env" { + path = find_in_parent_folders("env.hcl") + expose = true +} + include "region" { path = find_in_parent_folders("region.hcl") expose = true @@ -30,5 +35,6 @@ terraform { } inputs = { + name = include.env.locals.name enable = include.region.locals.region_values.aws_ebs_encryption_by_default } diff --git a/terragrunt/ACCOUNT_ID/us-east-1/ebs-encryption/.terraform.lock.hcl b/terragrunt/ACCOUNT_ID/us-east-1/ebs-encryption/.terraform.lock.hcl deleted file mode 100644 index 615dbb5..0000000 --- a/terragrunt/ACCOUNT_ID/us-east-1/ebs-encryption/.terraform.lock.hcl +++ /dev/null @@ -1,23 +0,0 @@ - -provider "registry.terraform.io/hashicorp/aws" { - version = "5.49.0" - constraints = "5.49.0" - hashes = [ - "h1:RZtXnBRpO4LNmmz0tXJQLa2heqk9VFGblFZtRCZkm/M=", - "zh:0979b07cdeffb868ea605e4bbc008adc7cccb5f3ba1d3a0b794ea3e8fff20932", - "zh:2121a0a048a1d9419df69f3561e524b7e8a6b74ba0f57bd8948799f12b6ad3a1", - "zh:573362042ba0bd18e98567a4f45d91b09eb0d223513518ba04f16a646a906403", - "zh:57be7a4d6c362be2fa586d270203f4eac1ee239816239a9503b86ebc8fa1fef0", - "zh:5c72ed211d9234edd70eac9d77c3cafc7bbf819d1c28332a6d77acf227c9a23c", - "zh:7786d1a9781f8e8c0079bf58f4ed4aeddec0caf54ad7ddcf43c47936d545a04f", - "zh:82133e7d39787ee91ed41988da71beecc2ecb900b5da94b3f3d77fbc4d4dc722", - "zh:8cdb1c154dead85be8352afd30eaf41c59249de9e7e0a8eb4ab8e625b90a4922", - "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", - "zh:ac215fd1c3bd647ae38868940651b97a53197688daefcd70b3595c84560e5267", - "zh:c45db22356d20e431639061a72e07da5201f4937c1df6b9f03f32019facf3905", - "zh:c9ba90e62db9a4708ed1a4e094849f88ce9d44c52b49f613b30bb3f7523b8d97", - "zh:d2be3607be2209995c80dc1d66086d527de5d470f73509e813254067e8287106", - "zh:e3fa20090f3cebf3911fc7ef122bd8c0505e3330ab7d541fa945fea861205007", - "zh:ef1b9d5c0b6279323f2ecfc322db8083e141984cfe1bb2f33c0f4934fccb69e3", - ] -}