Terraform modules md5 hash

Joao Santos
Jul 26, 2017 · 1 min read

Quando trabalhamos com muitos módulos e versionamento dentro do terraform fica difícil resolver alguns problemas porque os módulos baixados da pasta .terraform/modules ficam em uma sub pasta com um hash md5 impedindo que você saiba de qual é qual módulo.

Para descobrir a pasta certa gere um md5 como o padrão abaixo:

root.[name of module]-[source of module]

Exemplo

"root.my_module-git::ssh://git@bitbucket.org/account/mymodule.git#v1"

MD5

c6a512cac0dcc181f9ba444cbeeaf1b5

Para acessar a pasta correta do módulo use

cd .terraform/modules/c6a512cac0dcc181f9ba444cbeeaf1b5

    Joao Santos

    Written by

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade