aws / amazon-neptune-for-graphql

Amazon Neptune utility for GraphQL™ schemas and resolvers
Apache License 2.0
16 stars 1 forks source link

script fails to describe Neptune cluster #17

Closed hpiili closed 5 months ago

hpiili commented 5 months ago

neptune-for-graphql --input-graphdb-schema-neptune-endpoint db-neptune-pelm-lcd-dev.cluster-c2hkwv1gpquj.eu-west-1.neptune.amazonaws.com:8182 --output-aws-pipeline-cdk --output-aws-pipeline-cdk-name LCD-Dev --output-resolver-query-sdk --output-aws-pipeline-cdk-region eu-west-1

Running in EC2 t2.micro in the same VPC as the Neptune cluster

Script gets the schema from the database

... Found edge: IN_SECTION direction: DeliveredPart -> Section relationship: MANY-ONE Found edge: HAS_SPAREPART direction: AssetAssembly -> DeliveredPart relationship: ONE-MANY Found edge: HAS_SPAREPART direction: Equipment -> DeliveredPart relationship: ONE-MANY Execution time: 11.28 seconds

Inferencing GraphQL schema from graphDB schema

Wrote GraphQL schema to file: ./output/output.schema.graphql Wrote GraphQL schema to file: ./output/output.source.schema.graphql Wrote Neptune schema to file: ./output/output.neptune.schema.json Wrote Lambda resolver to file: ./output/output.resolver.graphql.js Wrote Javascript resolver to file: ./output/output.resolver.graphql.js

Creating CDK File Get Neptune Cluster Info ✖ Error getting Neptune Cluster Info. VPC data is not available to proceed.

hpiili commented 5 months ago

Turns out that I need to do aws configure with correct IAM account to confirm that the utility can run, I needed to execute aws neptune describe-db-clusters

after these steps the neptune-for-graphql is able to get the Neptune cluster info