modernisation-platform
modernisation-platform copied to clipboard
Automate Deleting Environment/Account from TF management
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