Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add mocking modules and outputs #530

Open
zaremb opened this issue Mar 18, 2024 · 3 comments
Open

[FEATURE] Add mocking modules and outputs #530

zaremb opened this issue Mar 18, 2024 · 3 comments
Labels
backlog enhancement New feature or request

Comments

@zaremb
Copy link

zaremb commented Mar 18, 2024

Is your feature request related to a problem? Please describe.
Quite often I do not need entire set of modules, just couple of them. However, right now I need to have all of the modules deployed. Otherwise, some dependent modules will fail due to missing outputs.

Describe the solution you'd like
A way to mock modules and their outputs, something similar to how terragrunt works with stacks and outputs: https://terragrunt.gruntwork.io/docs/features/execute-terraform-commands-on-multiple-modules-at-once/#unapplied-dependency-and-mock-outputs. Ideally I would have a way to "turn off" real deployment of a module and used mocked outputs.

Describe alternatives you've considered
Right now, I need to add additional parameter to each module, and then in each deployspec and if statement to disable deployment and set up mock values.

@zaremb zaremb added the enhancement New feature or request label Mar 18, 2024
@dgraeber
Copy link
Contributor

Can you not mock out modules by changing / using manifests that reference static content?

@dgraeber
Copy link
Contributor

We can explore the ability to pass in some dummy moduledata and its ramifications. To support mocking a module or aws service is not possible as we do not have a means to mock out AWS services across all possible languages and deployment types in such an infrastructure.

NOTE: the utility of using dummy moduledata is limited in that the actual usage of any of those values is moot since the underlying resources do not actually exist (see the first part of this comment).

@dgraeber
Copy link
Contributor

dgraeber commented Jul 8, 2024

Currently on branch wip/4.1.0 - this is not slated to go out with 4.1.0 but is a placeholder. Due to the potential impact of individual module deploy testing, this feature is delayed but in process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants