1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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()
답변함 5달 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 4년 전
- AWS 공식업데이트됨 4년 전