JavaScriptىڑ© AWS SDK Node.js 개발ى—گ AWS Cloud9ى‌„ ى‚¬ىڑ©ي•کëٹ”...

download JavaScriptىڑ© AWS SDK Node.js 개발ى—گ AWS Cloud9ى‌„ ى‚¬ىڑ©ي•کëٹ” 방법 ىƒکي”Œى‌€ AWS Cloud9 ى‚¬ىڑ©

of 264

  • date post

    28-Feb-2020
  • Category

    Documents

  • view

    1
  • download

    0

Embed Size (px)

Transcript of JavaScriptىڑ© AWS SDK Node.js 개발ى—گ AWS Cloud9ى‌„ ى‚¬ىڑ©ي•کëٹ”...

  • JavaScript용 AWS SDK SDK v2용 개발자 안내서

  • JavaScript용 AWS SDK SDK v2용 개발자 안내서

    JavaScript용 AWS SDK: SDK v2용 개발자 안내서 Copyright © 2020 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

    Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

  • JavaScript용 AWS SDK SDK v2용 개발자 안내서

    Table of Contents JavaScript용 AWS SDK란 무엇입니까? .................................................................................................. 1

    Node.js에서 SDK 사용 ................................................................................................................ 1 AWS Cloud9에서 SDK 사용 ......................................................................................................... 1 AWS Amplify에서 SDK 사용 ......................................................................................................... 1 웹 브라우저에서 SDK 사용 .......................................................................................................... 2

    일반 사용 사례 ................................................................................................................... 2 예제 정보 .......................................................................................................................... 2

    시작 .................................................................................................................................................. 3 브라우저 스크립트에서 시작하기 ................................................................................................... 3

    시나리오 ............................................................................................................................ 3 1단계: Amazon Cognito 자격 증명 풀 생성 ............................................................................. 4 2단계: 생성된 IAM 역할에 정책 추가 ..................................................................................... 4 3단계: HTML 페이지 만들기 ................................................................................................. 5 4단계: 브라우저 스크립트 작성 ............................................................................................. 5 5단계: 샘플 실행 ................................................................................................................ 5 전체 샘플 .......................................................................................................................... 7 가능한 개선 사항 ................................................................................................................ 8

    Node.js에서 시작하기 .................................................................................................................. 8 시나리오 ............................................................................................................................ 8 사전 필수 작업 ................................................................................................................... 8 1단계: 자격 증명 구성 ......................................................................................................... 9 2단계: 프로젝트용 패키지 JSON 생성 .................................................................................... 9 3단계: SDK 및 종속성 설치 ................................................................................................ 10 4단계: Node.js 작성 .......................................................................................................... 10 5단계: 샘플 실행 ............................................................................................................... 11

    SDK for JavaScript에서 AWS Cloud9 사용 ........................................................................................... 12 1단계: AWS Cloud9을 사용하도록 AWS 계정 설정 ......................................................................... 12 2단계: AWS Cloud9 개발 환경 설정 ............................................................................................. 12 3단계: SDK for JavaScript 설정 .................................................................................................. 12

    Node.js에 맞게 SDK for JavaScript를 설정하려면 ................................................................... 13 브라우저에서 SDK for JavaScript를 설정하려면 ..................................................................... 13

    4단계: 예제 코드 다운로드 ......................................................................................................... 13 5단계: 예제 코드 실행 및 디버깅 ................................................................................................. 14

    JavaScript용 SDK 설정 ...................................................................................................................... 15 사전 조건 ................................................................................................................................. 15

    AWS Node.js 환경 설정 ..................................................................................................... 15 지원되는 웹 브라우저 ........................................................................................................ 16

    SDK 설치 ................................................................................................................................ 16 Bower를 사용한 설치 ......................................................................................................... 17

    SDK 로드 ................................................................................................................................ 17 버전 1에서 업그레이드 .............................................................................................................. 18

    입력/출력 시 Base64 및 타임스탬프의 자동 변환 ................................................................... 18 response.data.RequestId를 response.requestId로 이동 ........................................................... 18 노출된 래퍼 요소 .............................................................................................................. 19 삭제된 클라이언트 속성 ..................................................................................................... 21

    JavaScript용 SDK 구성 ...................................................................................................................... 23 글로벌 구성 객체 사용하기 ......................................................................................................... 23

    글로벌 구성 설정 .............................................................................................................. 23 서비스별 구성 설정 ........................................................................................................... 25 변경 불가능한 구성 데이터 ................................................................................................. 25

    AWS 리전 설정 ........................................................................................................................ 25 클라이언트 클래스 생성자에서 ............................................................................................ 25 글로벌 구성 객체 사용하기 ................................................................................................. 25 환경 변수 사용 ................................................................................................................. 26

    iii

  • JavaScript용 AWS SDK SDK v2용 개발자 안내서

    공유 구성 파일 사용 .......................................................................................................... 26 리전 설정을 위한 우선 순위 ................................................................................................ 26

    사용자 지정 엔드포인트 지정 ...................................................................................................... 26 엔드포인트 문자열 형식 ..................................................................................................... 27 ap-northeast-3 리전의 엔드포인트 ....................................................................................... 27 MediaConvert에 대한 엔드포인트 ........................................................................................ 27

    인증 자격 증명 받기 .................................................................................................................. 27 자격 증명 설정 ......................................................................................................................... 28

    인증 자격 증명에 대한 모범 사례 ......................................................................................... 28 Node.js에서 자격 증명 설정 ................................................................................................ 29 웹 브라우저에서 자격 증명 설정 .............................