Skip to content

Commit f82045f

Browse files
author
Andrew de Rozario
committed
updating Roda table and database names for template synth script
1 parent 2a6404b commit f82045f

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

SynthRodaTemplates.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
aws glue get-tables --database-name opentargets_1911_dl > RODA_templates/open_targets_1911_get_tables.json
2-
aws glue get-database --name opentargets_1911_dl > RODA_templates/open_targets_1911_get_database.json
1+
aws glue get-tables --database-name opentargets_1911_dl-awsroda > RODA_templates/open_targets_1911_get_tables.json
2+
aws glue get-database --name opentargets_1911_dl-awsroda > RODA_templates/open_targets_1911_get_database.json
33
npm run build && cdk synth OpenTargetsRodaTemplate
44
aws s3 cp cdk.out/OpenTargetsRodaTemplate.template.json s3://aws-roda-hcls-datalake/OpenTargetsRodaTemplate.json
55

66

7-
aws glue get-tables --database-name chembl_25_dl > RODA_templates/chembl_25_get_tables.json
8-
aws glue get-database --name chembl_25_dl > RODA_templates/chembl_25_get_database.json
7+
aws glue get-tables --database-name chembl_25_dl-awsroda > RODA_templates/chembl_25_get_tables.json
8+
aws glue get-database --name chembl_25_dl-awsroda > RODA_templates/chembl_25_get_database.json
99
npm run build && cdk synth ChemblRodaTemplate
1010
aws s3 cp cdk.out/ChemblRodaTemplate.template.json s3://aws-roda-hcls-datalake/ChemblRodaTemplate.json
1111

12-
aws glue get-tables --database-name binding_db_dl > RODA_templates/binding_db_get_tables.json
13-
aws glue get-database --name binding_db_dl > RODA_templates/binding_db_get_database.json
12+
aws glue get-tables --database-name binding_db_dl-awsroda > RODA_templates/binding_db_get_tables.json
13+
aws glue get-database --name binding_db_dl-awsroda > RODA_templates/binding_db_get_database.json
1414
npm run build && cdk synth BindingDbRodaTemplate
1515
aws s3 cp cdk.out/BindingDbRodaTemplate.template.json s3://aws-roda-hcls-datalake/BindingDbRodaTemplate.json
1616

lib/baseline-stack.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ export class BaselineStack extends cdk.Stack {
8585

8686
const chemblDb = new rds.DatabaseInstance(this, 'chembl25', {
8787
engine: rds.DatabaseInstanceEngine.POSTGRES,
88-
masterUsername: 'master',
88+
credentials: rds.Credentials.fromPassword('master',chemblDBSecret.secretValueFromJson('password')),
8989
vpc: baselineVpc,
9090
vpcPlacement: appSubnetSelection,
9191
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.SMALL),
9292
instanceIdentifier: 'chembl-25-00',
93-
masterUserPassword: chemblDBSecret.secretValueFromJson('password'),
9493
securityGroups: [chemblDbSG],
9594
deletionProtection: false
9695
});
@@ -223,14 +222,13 @@ export class BaselineStack extends cdk.Stack {
223222

224223
const bindingDb = new rds.DatabaseInstance(this, 'bindingDb', {
225224
engine: rds.DatabaseInstanceEngine.ORACLE_SE2,
226-
masterUsername: 'master',
225+
credentials: rds.Credentials.fromPassword('master',chemblDBSecret.secretValueFromJson('password')),
227226
licenseModel: rds.LicenseModel.BRING_YOUR_OWN_LICENSE,
228227
vpc: baselineVpc,
229228
vpcPlacement: appSubnetSelection,
230229
optionGroup: bindingDbOptionGroup,
231230
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL),
232231
instanceIdentifier: 'binding-db',
233-
masterUserPassword: bindingDBSecret.secretValueFromJson('password'),
234232
securityGroups: [bindingDbSg, bindingDbAccessSg],
235233
deletionProtection: false,
236234
});

0 commit comments

Comments
 (0)