-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/shorter_expiration_for_webapi_tokens
- Loading branch information
Showing
26 changed files
with
734 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
repos: | ||
- repo: [email protected]:Yelp/detect-secrets | ||
rev: v1.4.0 | ||
rev: v1.5.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: ['--baseline', '.secrets.baseline'] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.5.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: no-commit-to-branch | ||
args: [--branch, develop, --branch, master, --pattern, release/.*] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
wget https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tar.xz | ||
tar xf Python-3.9.19.tar.xz | ||
rm Python-3.9.19.tar.xz | ||
cd Python-3.9.19 | ||
./configure | ||
make | ||
make altinstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
wget https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tar.xz | ||
tar xf Python-3.9.19.tar.xz | ||
rm Python-3.9.19.tar.xz | ||
cd Python-3.9.19 | ||
./configure | ||
make | ||
make altinstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
wget https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tar.xz | ||
tar xf Python-3.9.19.tar.xz | ||
rm Python-3.9.19.tar.xz | ||
cd Python-3.9.19 | ||
./configure | ||
make | ||
make altinstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# TL;DR | ||
|
||
This script facilitates the management of database backup and restore within the Gen3 environment. It can establish policies, service accounts, roles, and S3 buckets. Depending on the command provided, it can initiate a database dump, perform a restore, migrate databases to a new RDS instance on Aurora, or clone databases to an RDS Aurora instance. | ||
|
||
## Usage | ||
|
||
```sh | ||
gen3 dbbackup [dump|restore|va-dump|create-sa|migrate-to-aurora|copy-to-aurora] | ||
``` | ||
|
||
### Commands | ||
|
||
#### dump | ||
|
||
Initiates a database dump and pushes it to an S3 bucket, creating the essential AWS resources if they are absent. The dump operation is intended to be executed from the namespace/commons that requires the backup. | ||
|
||
```sh | ||
gen3 dbbackup dump | ||
``` | ||
|
||
#### restore | ||
|
||
Initiates a database restore from an S3 bucket, creating the essential AWS resources if they are absent. The restore operation is meant to be executed in the target namespace where the backup needs to be restored. | ||
|
||
```sh | ||
gen3 dbbackup restore | ||
``` | ||
|
||
#### create-sa | ||
|
||
Creates the necessary service account and roles for DB copy. | ||
|
||
```sh | ||
gen3 dbbackup create-sa | ||
``` | ||
|
||
#### migrate-to-aurora | ||
|
||
Triggers a service account creation and a job to migrate a Gen3 commons to an AWS RDS Aurora instance. | ||
|
||
```sh | ||
gen3 dbbackup migrate-to-aurora | ||
``` | ||
|
||
#### copy-to-aurora | ||
|
||
Triggers a service account creation and a job to copy the databases Indexd, Sheepdog & Metadata to new databases within an RDS Aurora cluster from another namespace <source-namespace> in same RDS cluster. | ||
|
||
```sh | ||
gen3 dbbackup copy-to-aurora <source-namespace> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.