Replies: 2 comments 1 reply
-
@berosen - yes we use terragrunt extensively! We break down our structure as follows: A terraform module to create top level resources and roles, executed as Separate modules for the different layers we'd create, such as schemas inside a database. However, when defining the provider block we pass in the creator role output as a variable; this ensures that the schema resources (and anything below) are created with the correct role. |
Beta Was this translation helpful? Give feedback.
-
Hi @robbruce @berosen ###terragrunt.hcl terraform { locals { inputs = { ###modules/main.tf variable "dynaminc_role" { output "role_name" { provider "snowflake" { resource "snowflake_database" "name" { |
Beta Was this translation helpful? Give feedback.
-
Hi all! Has anyone created a terragrunt project for managing snowflake and have some ideas for a good project structure? I'm a hard time wrapping my head around where to put common resources such as dbs and grants then configuring different user lists per environment.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions