Open RyanW8 opened 3 weeks ago
Hello, It is possible to create a separate dependency that will generate the datasource and produce the required outputs. These outputs can then be used in other places where they are needed.
Yeah I get that pattern but it's not clean IMO and scatters an application configuration across multiple directories. It'd be nice to be able to define it all in a single Terragrunt stack
Hi,
So lets say our terragrunt.hcl looks like:
I appreciate we could put this datasource in the module but we don't want to do that. We have a generic 'application' terraform module that engineering based applications use to deploy cloud resources for their app and in some scenarios they want to provision an extra datasource or an extra resource which wouldn't fit well within the standard application module. So we have a requirement to use the generate block ontop a module and be able to reference that as a Terragrunt input.
How can we achieve this?