AWS QLDB와 Node.js 연결: 단계별 실습

콘솔 버전

1. 사전 조건

     1) IAM 권한 설정

  • AWS Magnagement Console → IAM → 액세스 관리 - 정책 → AmazonQLDBConsoleFullAccess 검색 → 클릭 → 정책 사용 → 권한 → 연결 → 이름 검색 후 연결

2. 콘솔 버전 시작(아래 링크참조 : 1-7단계)

https://docs.aws.amazon.com/ko_kr/qldb/latest/developerguide/getting-started-step-1.html    

 

1단계: 신규 원장 생성 - Amazon Quantum Ledger Database(Amazon QLDB)

QLDB 원장의 상태가 Active로 바뀌면 QLDB 원장에 액세스할 수 있습니다. 몇 분 정도 걸릴 수 있습니다.

docs.aws.amazon.com

Node.js 연결 버전

1. 사전 조건

  • AWS CLI 설치

https://ranna.tistory.com/2

 

AWS Command Line Interface(CLI) 기본개념 및 설치방법

AWS Command Line Interface(CLI, 명령줄 인터페이스)란? AWS CLI는 여러 개의 AWS 서비스를 명령줄에서 제어하고 스크립트를 통해 자동화할 수 있는 도구입니다. OS에 AWS CLI를 설치하면 Shell(Cmd, Powershell, Git B

ranna.tistory.com

npm install amazon-qldb-driver-nodejs  // 드라이버 리소스 다운로드
npm install @aws-sdk/client-qldb-session // QLDB 세션 클라이언트
npm install ion-js  // Amazon Ion 데이터 형식 관련 다운
npm install jsbi

 

2. Quick Start Tutorial (간단한 ver)따라해보기

https://docs.aws.amazon.com/ko_kr/qldb/latest/developerguide/driver-quickstart-nodejs.html

 

Node.js 용 아마존 QLDB 드라이버 — 퀵 스타트 튜토리얼 - Amazon Quantum Ledger Database(Amazon QLDB)

해당하는 경우 일부 단계에는 지원되는 각 주요 버전의 Node.js QLDB 드라이버에 대한 코드 예제가 다릅니다.

docs.aws.amazon.com

 

3. 일반적인 사용 예시(CRUD, Amazon Ion데이터 처리 등) 따라해보기

https://docs.aws.amazon.com/ko_kr/qldb/latest/developerguide/driver-quickstart-nodejs.html

 

Node.js 용 아마존 QLDB 드라이버 — 퀵 스타트 튜토리얼 - Amazon Quantum Ledger Database(Amazon QLDB)

해당하는 경우 일부 단계에는 지원되는 각 주요 버전의 Node.js QLDB 드라이버에 대한 코드 예제가 다릅니다.

docs.aws.amazon.com

     1) 사전조건 - AWS SDK for Javascript 다운로드

npm install aws-sdk

   

    2) 실행 (아래 링크의 Topics 참조)

https://docs.aws.amazon.com/qldb/latest/developerguide/getting-started.nodejs.tutorial.html

 

Amazon QLDB Node.js tutorial - Amazon Quantum Ledger Database (Amazon QLDB)

Where applicable, some tutorial steps have different commands or code examples for each supported major version of the QLDB driver for Node.js.

docs.aws.amazon.com