Refactor create staff user module to use terraform workspaces
Context for reviewers
Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified.
This PR has been deployed and used. It is a bit of a frankenstein monster and introduces workspaces into our infra set up in a piecemeal way 😱
Creating users previously was a failure in one of two ways:
The user previously existed and terraform apply crashed, causing the rest of the script to fail (this was the reason our test users in the staging environment weren't associated with local agencies)
The users would be created in the specified environment at the cost of deleting the users in the other environments
Testing
Screenshots, GIF demos, code examples or output to help show the changes working as expected. ProTip: you can drag and drop or paste images into this textbox.
Ticket
https://wicmtdp.atlassian.net/browse/PRP-288
Changes
Context for reviewers
This PR has been deployed and used. It is a bit of a frankenstein monster and introduces workspaces into our infra set up in a piecemeal way 😱
Creating users previously was a failure in one of two ways:
terraform apply
crashed, causing the rest of the script to fail (this was the reason our test users in the staging environment weren't associated with local agencies)Testing