mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-12 22:48:09 +02:00
add db workflow documentation
This commit is contained in:
parent
af7561af51
commit
3ec0b51e72
1 changed files with 5 additions and 0 deletions
5
docs/developer/cloning-databases.md
Normal file
5
docs/developer/cloning-databases.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Cloning Databases
|
||||
The clone-db workflow clones a Source database to a Destination database using cloud.gov's cg-manage-rds tool. This document contains additional information needed to understand how the workflow functions.
|
||||
|
||||
## Additional Roles Required
|
||||
The clone-db workflow functions by temporarily sharing the Destination database with the space of the Source database. This is because cloning databases across spaces is hard. Sharing is done via the `cf share-service` command, but requires that the authenticated user (in this case this will be a user from the Source space) have the `space-developer` role in *both* the Source and Destination spaces. This must be set by someone with permission to edit space roles *before* the workflow runs. The user in question can be found using the `cf space-users [ORG] [SPACE]` command where the SPACE is the Source space, and will appear as a UAA user with a UUID as the name. There is only one such user per space by default (this is a [service account](https://cloud.gov/docs/services/cloud-gov-service-account/) set up by cloud.gov for our Github workflows). This user needs to be provided with the `space-developer` role in the Destination space, which can be accomplished using `cf set-space-role [USER] [ORG] [DESTINATION SPACE] SpaceDeveloper`.
|
Loading…
Add table
Add a link
Reference in a new issue