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

Run tfaction if file outside of working directory changes #1721

Open
florianmutter opened this issue Jun 19, 2024 · 1 comment
Open

Run tfaction if file outside of working directory changes #1721

florianmutter opened this issue Jun 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@florianmutter
Copy link
Contributor

Feature Overview

We would like to run tfaction if files in a specific folder outside of the working dir is changed.

Why is the feature needed?

We get secret values from a single directory /secret for all environments. Those secrets are read by terraform. With the current setup tfaction does not run if a secret is changed.

Example Code

GitHub Actions

tfaction-root.yaml

tfaction.yaml

Note

We found https://suzuki-shunsuke.github.io/tfaction/docs/feature/local-path-module but this seems to only work for modules. We would like the same feature but in a more generic way.

@florianmutter florianmutter added the enhancement New feature or request label Jun 19, 2024
@suzuki-shunsuke
Copy link
Owner

Thank you for your proposal.
It's convenient but complicated to parse Terraform configuration and resolve dependencies automatically,
so it's nice if we can define dependencies explicitly somehow.

For example, we may be able to define dependencies in tfaciton.yaml.
Note that the following codes are just example.

tfaciton.yaml

dependencies:
  - ../common
  - ../../secrets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants