TGViewer
DevOps DevOps @devopsitsec · 23.7K subscribers
Post #320 3.26K
terragrunt-brownfield

Пример модуля, демонстрирующего возможность скриптового импорта существующих ресурсов и встраивания скриптов-хуков в модули

Пример


include {
path = "global.hcl"
}

terraform {
source = "..//."

before_hook "import" {
commands = ["apply", "plan"]
execute = ["./import-resources-into-tfstate.sh", get_terraform_command()]
}
}

inputs = {
resource_group_name = "terratest-abcd"
location = "uksouth"
}


https://github.com/simonmcc/terragrunt-brownfield
GitHub GitHub - simonmcc/terragrunt-brownfield: Example module demonstrating scriptable import of existing resources & baking hook scripts… Example module demonstrating scriptable import of existing resources & baking hook scripts into modules - simonmcc/terragrunt-brownfield
  • ❤ 5
  • 👍 1
More from @devopsitsec
  1. Oct 8, 2026photo post
  2. Oct 6, 2026👣 Большой разбор собеседований на Go в 2026 году На GitHub появился мощный репозиторий дл…
  3. Oct 6, 2026Для тех, кто работает с Kubernetes и облачной инфраструктурой, в октябре намечается отличн…
  4. Oct 4, 2026🚀 DevOps Interview 2026 - шпаргалка-курс для подготовки к собеседованию Всё, что спрашива…
  5. Oct 3, 2026🛠️ Awesome SRE - большая подборка ресурсов для Site Reliability Engineering Репозиторий a…
  6. Oct 2, 2026photo post
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →