navapbc / wic-participant-recertification-portal

https://navapbc.github.io/wic-participant-recertification-portal/
Apache License 2.0
0 stars 1 forks source link

[PRP-288] Refactor staff creation scripts to be more durable across environments #69

Closed rocketnova closed 1 year ago

rocketnova commented 1 year ago

Ticket

https://wicmtdp.atlassian.net/browse/PRP-288

Changes

What was added, updated, or removed in this PR.

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:

  1. 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)
  2. 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.