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

Create a reusable Terraform plan/apply workflow for MP #6888

Open
8 tasks
richgreen-moj opened this issue Apr 29, 2024 · 0 comments
Open
8 tasks

Create a reusable Terraform plan/apply workflow for MP #6888

richgreen-moj opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
code quality github-workflow technical debt This issue is either technical debt or an issue that will lead to technical debt as time goes by. terraform Pull requests that update Terraform code

Comments

@richgreen-moj
Copy link
Contributor

richgreen-moj commented Apr 29, 2024

User Story

As an MP Engineer
I want to create a reusable Terraform plan/apply workflow for MP
So that the many Terraform workflows in the MP repo are easier to maintain going forward

Value / Purpose

Currently we have a number of workflows that run Terraform for the various elements of the platform. Whilst we do have some modular elements e.g. reusable bash scripts for terraform init/plan/apply, if we want to add further steps to the deployment process (for example; extra testing etc) several workflows would require editing rather than just making one change and having it as an optional step on a reusable workflow.

Essentially this story is to look at replicating the reusable TF workflow used in the MP Environments repo and make it work for MP

Once we have this in place it would be easier to customise our deployment process adding features like;

  • optionally post terraform plans into PRs
  • adding extra testing steps etc.

Useful Contacts

No response

Additional Information

#6388 - This story was dreamed up as a result of this spike where we discussed having the ability to post TF plans into PRs or have extra testing steps that issue warnings if certain resources are being deleted.

Proposal / Unknowns

No response

Definition of Done

  • Current MP Terraform workflows have been analysed for common functions
  • Reusable Terraform Plan/Apply workflow has been developed
  • Reusable Terraform Plan/Apply workflow has been tested
  • All Existing Terraform workflows have been updated to use new Terraform Plan/Apply workflow
  • README has been updated
  • User docs have been updated
  • Another team member has reviewed
  • Tests are green
@richgreen-moj richgreen-moj added needs refining technical debt This issue is either technical debt or an issue that will lead to technical debt as time goes by. terraform Pull requests that update Terraform code code quality github-workflow labels Apr 29, 2024
@Kudzai-moj Kudzai-moj assigned Kudzai-moj and unassigned Kudzai-moj May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality github-workflow technical debt This issue is either technical debt or an issue that will lead to technical debt as time goes by. terraform Pull requests that update Terraform code
Projects
Status: In Progress
Development

No branches or pull requests

4 participants