Skip to content

Commit 8623a70

Browse files
committed
removed code for dual lamba option and read-only endpoints
1 parent a5dbb3a commit 8623a70

File tree

2 files changed

+3
-43
lines changed

2 files changed

+3
-43
lines changed

src/main.js

+2-33
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,12 @@ let isNeptuneIAMAuth = false;
5454
let createUpdatePipeline = false;
5555
let createUpdatePipelineName = '';
5656
let createUpdatePipelineEndpoint = '';
57-
let createUpdatePipelineEndpointRO = '';
58-
let createUpdatePipelineDualLambdas = false;
5957
let createUpdatePipelineRegion = '';
6058
let createUpdatePipelineNeptuneDatabaseName = '';
6159
let removePipelineName = '';
6260
let inputCDKpipeline = false;
6361
let inputCDKpipelineName = '';
6462
let inputCDKpipelineEnpoint = '';
65-
let inputCDKpipelineEnpointRO = '';
66-
let inputCDKpipelineDualLambdas = false;
6763
let inputCDKpipelineFile = '';
6864
let inputCDKpipelineRegion = '';
6965
let inputCDKpipelineDatabaseName = '';
@@ -196,14 +192,8 @@ function processArgs() {
196192
case '--create-update-aws-pipeline-neptune-endpoint':
197193
createUpdatePipelineEndpoint = array[index + 1];
198194
break;
199-
case 'pro':
200-
case '--create-update-aws-pipeline-neptune-endpoint-ro':
201-
createUpdatePipelineEndpointRO = array[index + 1];
202-
break;
195+
case 'pro':
203196
case '-p2l':
204-
case '--create-update-aws-pipeline-dual-lambdas':
205-
createUpdatePipelineDualLambdas = true;
206-
break;
207197
case '-pd':
208198
case '--create-update-aws-pipeline-neptune-database-name':
209199
createUpdatePipelineNeptuneDatabaseName = array[index + 1];
@@ -221,12 +211,7 @@ function processArgs() {
221211
inputCDKpipelineEnpoint = array[index + 1];
222212
break;
223213
case 'cro':
224-
case '--output-aws-pipeline-cdk-neptume-endpoint-ro':
225-
inputCDKpipelineEnpointRO = array[index + 1];
226-
break;
227214
case '-c2l':
228-
case '--output-aws-pipeline-cdk-neptume-dual-lambas':
229-
inputCDKpipelineDualLambdas = true;
230215
case '-cd':
231216
case '--output-aws-pipeline-cdk-neptume-database-name':
232217
inputCDKpipelineDatabaseName = array[index + 1];
@@ -321,7 +306,7 @@ async function main() {
321306

322307
let neptuneRegionParts = inputGraphDBSchemaNeptuneEndpoint.split('.');
323308
let neptuneRegion = '';
324-
if (neptuneType == 'neptune-db')
309+
if (neptuneType == 'neptune-db')
325310
neptuneRegion = neptuneRegionParts[2];
326311
else
327312
neptuneRegion = neptuneRegionParts[1];
@@ -614,19 +599,6 @@ async function main() {
614599
let neptuneHost = endpointParts[0];
615600
let neptunePort = endpointParts[1];
616601

617-
let neptuneHostRO = '';
618-
let neptunePortRO = '';
619-
if (createUpdatePipelineEndpointRO != '') {
620-
let endpointPartsRO = createUpdatePipelineEndpointRO.split(':');
621-
if (endpointPartsRO.length < 2) {
622-
msg = 'Neptune read only endpoint must be in the form of host:port';
623-
loggerError(msg);
624-
process.exit(1);
625-
}
626-
neptuneHostRO = endpointPartsRO[0];
627-
neptunePortRO = endpointPartsRO[1];
628-
}
629-
630602
msg = '\nCreating AWS pipeline resources';
631603
loggerLog(msg, !quiet);
632604
await createUpdateAWSpipeline( createUpdatePipelineName,
@@ -641,9 +613,6 @@ async function main() {
641613
isNeptuneIAMAuth,
642614
neptuneHost,
643615
neptunePort,
644-
neptuneHostRO,
645-
neptunePortRO,
646-
createUpdatePipelineDualLambdas,
647616
outputFolderPath,
648617
neptuneType );
649618
} catch (err) {

src/pipelineResources.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,13 @@ let thisOutputFolderPath = './output';
6464
let pipelineExists = false;
6565
let NEPTUNE_HOST = null;
6666
let NEPTUNE_PORT = null;
67-
let NEPTUNE_HOST_RO = null;
68-
let NEPTUNE_PORT_RO = null;
6967
let NEPTUNE_DBSubnetGroup = null;
7068
let NEPTUNE_DBSubnetIds = [];
7169
let NEPTUNE_VpcSecurityGroupId = null;
7270
let NEPTUME_IAM_AUTH = false;
7371
let NEPTUNE_CURRENT_VERSION = '';
7472
let NEPTUNE_CURRENT_IAM = false;
7573
let NEPTUNE_IAM_POLICY_RESOURCE = '*';
76-
let DUAL_LAMBDA = false;
7774
let LAMBDA_ROLE = '';
7875
let LAMBDA_ARN = '';
7976
let NEPTUNE_TYPE = 'neptune-db';
@@ -938,10 +935,7 @@ async function createUpdateAWSpipeline ( pipelineName,
938935
__dirname,
939936
isNeptuneIAMAuth,
940937
neptuneHost,
941-
neptunePort,
942-
neptuneHostRO,
943-
neptunePortRO,
944-
dualLambda,
938+
neptunePort,
945939
outputFolderPath,
946940
neptuneType) {
947941

@@ -957,9 +951,6 @@ async function createUpdateAWSpipeline ( pipelineName,
957951
NEPTUME_IAM_AUTH = isNeptuneIAMAuth;
958952
NEPTUNE_HOST = neptuneHost;
959953
NEPTUNE_PORT = neptunePort;
960-
NEPTUNE_HOST_RO = neptuneHostRO;
961-
NEPTUNE_PORT_RO = neptunePortRO;
962-
DUAL_LAMBDA = dualLambda;
963954
thisOutputFolderPath = outputFolderPath;
964955
NEPTUNE_TYPE = neptuneType;
965956

0 commit comments

Comments
 (0)