Skip to content

Commit e845889

Browse files
authored
removed db-ops/ and related info (#8)
1 parent d815413 commit e845889

File tree

5 files changed

+2
-276
lines changed

5 files changed

+2
-276
lines changed

Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
GITHUB_ORG := $(shell echo ${REPOSITORY} | cut -d "/" -f 2)
77
GITHUB_REPO := $(shell echo ${REPOSITORY} | cut -d "/" -f 3)
88

9-
run: create-db-user
9+
run:
1010
@echo "Set CIRCLECI environment variables\n"
1111
export AWS_ACCESS_KEY_ID=$(shell aws secretsmanager get-secret-value --region ${region} --secret-id=${PROJECT_NAME}-ci-user-aws-keys${randomSeed} | jq -r '.SecretString'| jq -r .access_key_id)
1212
export AWS_SECRET_ACCESS_KEY=$(shell aws secretsmanager get-secret-value --region ${region} --secret-id=${PROJECT_NAME}-ci-user-aws-keys${randomSeed} | jq -r '.SecretString'| jq -r .secret_key)
@@ -17,14 +17,6 @@ run: create-db-user
1717
curl -X POST https://circleci.com/api/v1.1/project/github/${GITHUB_ORG}/${GITHUB_REPO}/follow?circle-token=${CIRCLECI_API_KEY}
1818
@echo "\nDone"
1919

20-
create-db-user:
21-
export REGION=${region}; \
22-
export SEED=${randomSeed}; \
23-
export PROJECT_NAME=${PROJECT_NAME}; \
24-
export ENVIRONMENT=${ENVIRONMENT}; \
25-
export DATABASE=${database}; \
26-
sh ./db-ops/create-db-user.sh
27-
2820
summary:
2921
@echo "zero-deployable-node-backend:"
3022
@echo "- Repository URL: ${REPOSITORY}"

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ This repository is language/business-logic agnostic; mainly showcasing some univ
2020
/ # file in the root directory is for initializing the user's repo and declaring metadata
2121
|-- Makefile #make command triggers the initialization of repository
2222
|-- zero-module.yml #module declares required parameters and credentials
23-
| db-ops/
24-
| |-- create-db-user.sh
25-
| |-- job-create-db.yml.tpl
2623
| # files in templates become the repo for users
2724
| templates/
2825
| | # this makefile is used both during init and
@@ -62,17 +59,6 @@ This step is meant to be executed during `zero apply`, includes following steps:
6259
- Adding environment variables to CircleCI project
6360
- Linking the CircleCi with the github repository
6461
- Linking the circleCI will automatically trigger the first build and deploy your application to EKS cluster
65-
- Creating the application database's credentials
66-
67-
68-
### Application Database user creation
69-
Using environment variables injected from Zero, it will fetch the RDS master password from AWS secret manager
70-
- creates a namespace
71-
- creates a job with a SQL query file mounted generating an application user
72-
- creating a secret in the application namespace in your EKS cluster
73-
- removing the RDS master password for security reasons
74-
75-
_Note: the user creation only happens once during `zero apply`, for details see the `make create-db-user` command_
7662

7763
### Frontend Repo
7864

@@ -88,4 +74,4 @@ Project board: [zenhub][zenhub-board]
8874
[zero-infra]: https://github.com/commitdev/zero-aws-eks-stack
8975
[zero-frontend]: https://github.com/commitdev/zero-deployable-react-frontend
9076

91-
[zenhub-board]: https://app.zenhub.com/workspaces/commit-zero-5da8decc7046a60001c6db44/board?filterLogic=any&repos=203630543,247773730,257676371,258369081
77+
[zenhub-board]: https://app.zenhub.com/workspaces/commit-zero-5da8decc7046a60001c6db44/board?filterLogic=any&repos=203630543,247773730,257676371,258369081

db-ops/create-db-user.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

db-ops/job-create-db-mysql.yml.tpl

Lines changed: 0 additions & 112 deletions
This file was deleted.

db-ops/job-create-db-postgres.yml.tpl

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)