In the RefArch Gruntwork pipelines.yml, why are plan and deploy bundled in the same job? #633
-
|
r:terraform-aws-ci-pipeline-example The Gruntworks pipe for the ref arch has plan and deploy steps bundled in the same job. This causes plan to be run when merging against master, even if it was ran moments ago when pushing the changes against the branch. For large plans, this creates a big overhead in terms of time. For example:
Why are we running plan again when merging? We already know the plan, it ran as a result of creating the PR in the first place. Wouldn't it make more sense to have these steps split into separate jobs? For longer plans, the time savings could be huge when merging. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
One of our engineers responded internally with the following:
I'll also add that you're encouraged to re-configure the pipelines configurations however you'd like. If you want to pass a plan output between steps to avoid running plan again, you could use something like CircleCI Artifacts or GitHub Actions Artifacts. Once we've completed the internal research, we'll update this thread again. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for those very helpful screenshots. Taking 20 mins to do a |
Beta Was this translation helpful? Give feedback.


One of our engineers responded internally with the following:
I'll also add that you're encouraged to re-configure the pipelines configurations however you'd like. If you want to pass a plan output between steps to avoid running plan again, you could use something like CircleCI Artifacts or GitHub Actions Ar…