# 5.1.1 User Management

Amazon Cognito는 웹 및 모바일 앱에 대한 인증, 권한 부여 및 사용자 관리를 제공하는 서비스입니다. 사용자는 사용자 이름과 암호를 사용하여 직접 로그인하거나 Facebook, Amazon, Google 또는 Apple같은 타사를 통해 로그인할 수 있습니다.

<figure><img src="/files/dKYpoZfUZAtYjODIeRxu" alt=""><figcaption></figcaption></figure>

Amazon Cognito의 두 가지 주요 구성 요소는 사용자 풀과 자격 증명 풀입니다. 사용자 풀은 앱 사용자의 가입 및 로그인 옵션을 제공하는 사용자 디렉터리이고, 자격 증명 풀을 통해 사용자에게 기타 AWS 서비스에 액세스할 수 있는 권한을 부여할 수 있습니다.

이번 실습에서는 Cognito를 이용하여 자격 증명 풀을 통해 AWS 서비스에 액세스할 수 있도록 설정해보겠습니다.

1. AWS Console에 Cognito를 검색하여 이동합니다.
2. 초기 자격 증명 풀 화면에서 **새 자격 증명 풀 만들기**를 클릭 합니다.

<figure><img src="/files/NwtjEJb6ebwpTTv3UpGT" alt=""><figcaption></figcaption></figure>

3. 자격 증명 풀의 이름과 인증되지 않은 자격 증명에 대한 액세스 활성화를 체크하고, 풀 생성을 클릭합니다.

<figure><img src="/files/4hdA0JTIYMYdRzIDjSY2" alt=""><figcaption></figcaption></figure>

4. 풀이 완성되면 자격 증명을 얻기 위한 샘플 코드를 확인할 수 있습니다. 이번 실습에서는 node.js 백엔드에 자격증명이 필요하므로, **플랫폼을 javascript로 변경 후 예제 코드를 복사해 둡니다.**

<figure><img src="/files/7s11kocTfrEEIJ951flQ" alt=""><figcaption></figcaption></figure>

5. 다음 과정에서는 AWS Lambda를 이용하여 Serverless 백엔드를 생성하는 실습을 진행하겠습니다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cheolmin-ki.gitbook.io/sagemaker-image-workshop/lab5.-build-application-with-your-model/5.1-build-web-application-with-custom-model-endpoint/5.1.1-user-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
