1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
The best way to handle fetching credentials is to let boto3 fetch them. It will walk the list of credential providers until it finds them in environment variables, via associated role, AWS CLI profile,etc.:
URL="bolt://<neptune_endpoint>:<neptune_port>"
session = Session()
creds = session.get_credentials()
region = '<region>'
authToken = NeptuneAuthToken(creds, region, URL)
driver = GraphDatabase.driver(URL, auth=authToken, encrypted=True)
drs = driver.session()
res = drs.run("match (a:Artist) return a.name as name limit 1")
for rec in res:
print(rec)
driver.close()
répondu il y a 3 ans
Contenus pertinents
demandé il y a 3 ans
demandé il y a 2 ans
demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 6 ans
