modernisation-platform icon indicating copy to clipboard operation
modernisation-platform copied to clipboard

Automate Deleting Environment/Account from TF management

Open richgreen-moj opened this issue 11 months ago • 1 comments

User Story

As a MP Engineer I want to automate the steps needed to remove an account from TF management So that the account deletion process can be quicker and more robust

Value / Purpose

To automate the manual steps required in the Deleting an Environment process.

This process requires many manual steps where you need to delete resources and workspaces in the MP and MP Env repos. If we could automate these it would make the process more efficient.

Useful Contacts

@richgreen-moj

Additional Information

Certain workflows such as Terraform: New environment will re-create accounts/workspaces which you are trying to delete if it runs mid-way through your progress.

Making the process quicker would stop the need for us having to warn others not to merge PRs while we carry out the process.

Proposal / Unknowns

Some steps will not be possible to automate e.g. the actions required as a root user.

Definition of Done

  • [ ] Github Action (or agreed solution) has been developed which automates the deletion steps
  • [ ] Dummy account or environment created for testing
  • [ ] Solution has been tested on the dummy account
  • [ ] User docs have been updated
  • [ ] Another team member has reviewed
  • [ ] Tests are green

richgreen-moj avatar Mar 12 '24 14:03 richgreen-moj