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

Add before-plan and after-plan and similar hooks for atmos terraform workflows #164

Open
nitrocode opened this issue Jun 14, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@nitrocode
Copy link
Member

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Add optional workflow commands to run e.g. between plan and apply stages

For instance, it would be nice to add an opa hook to the verify the planfile if there is a opa/ directory within the component. This would help a lot for local atmos runs or if spacelift is not used.

@nitrocode
Copy link
Member Author

Closed by #207 by @aknysh

@nitrocode
Copy link
Member Author

nitrocode commented Oct 23, 2022

Ah so #207 did allow using opa here but did not expose hooks for after-plan, before-plan, etc so I will re-open.

Another use-case came up if we wanted to apply a specific patch to an upstream module without changing it. It would be nice to slip that in after terraform init and before terraform plan. See hashicorp/terraform#27525 (comment).

The previous use case was to use opa on the hcl where as #207 adds opa for the atmos yaml itself.

@nitrocode nitrocode reopened this Oct 23, 2022
@nitrocode nitrocode changed the title Add opa hook or optional workflow commands to run between plan and apply stages Add before-plan and after-plan and similar hooks for atmos terraform workflows Oct 23, 2022
@osterman osterman added the enhancement New feature or request label Nov 23, 2022
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
None yet
Development

No branches or pull requests

2 participants