

# Amazon Keyspaces(Apache Cassandra용)와 함께 IAM 사용
<a name="id_credentials_keyspaces"></a>

Amazon Keyspaces(Apache Cassandra용)는 고가용성의 확장 가능한 관리형 Apache Cassandra 호환 데이터베이스 서비스입니다. AWS Management Console을 통해 또는 프로그래밍 방식으로 Amazon Keyspaces에 액세스할 수 있습니다. 서비스별 자격 증명을 사용하여 프로그래밍 방식으로 Amazon Keyspaces에 액세스하려면 `cqlsh` 또는 오픈 소스 Cassandra 드라이버를 사용할 수 있습니다. *서비스별 자격 증명*에는 Cassandra가 인증 및 액세스 관리에 사용하는 것과 같은 사용자 이름과 암호가 포함됩니다. 사용자당 지원되는 각 서비스에 대해 최대 2개의 서비스별 보안 인증 세트를 보유할 수 있습니다.

AWS 액세스 키를 사용하여 프로그래밍 방식으로 Amazon Keyspaces에 액세스하려면 SigV4 플러그인과 함께 AWS SDK, AWS Command Line Interface(AWS CLI) 또는 오픈 소스 Cassandra 드라이버를 사용할 수 있습니다. 자세한 내용은 *Amazon Keyspaces (for Apache Cassandra) Developer Guide(Amazon Keyspaces(Apache Cassandra용) 개발자 안내서)*의 [Create and configure AWS credentials for Amazon Keyspaces(Amazon Keyspaces의 자격 증명 생성 및 구성)](https://docs.aws.amazon.com//keyspaces/latest/devguide/access.credentials.html)를 참조하세요.

**참고**  
콘솔을 통해서만 Amazon Keyspaces와 상호 작용하려는 경우에는 서비스별 자격 증명을 생성할 필요가 없습니다. 자세한 내용은 *Amazon Keyspaces (for Apache Cassandra) Developer Guide*(Amazon Keyspaces(Apache Cassandra용) 개발자 안내서)의 [Accessing Amazon Keyspaces using the console](https://docs.aws.amazon.com/keyspaces/latest/devguide/console_keyspaces.html)(콘솔을 사용하여 Amazon Keyspaces 액세스)을 참조하세요.

Amazon Keyspaces 액세스에 필요한 권한에 대한 자세한 내용은 *Amazon Keyspaces(Apache Cassandra용) 개발자 안내서*에서 [Amazon Keyspaces(Apache Cassandra용) 자격 증명 기반 정책 예](https://docs.aws.amazon.com/keyspaces/latest/devguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-console)를 참조하세요.

## Amazon Keyspaces 자격 증명 생성(콘솔)
<a name="keyspaces_credentials_console"></a>

AWS Management Console을 사용하여 IAM 사용자에 대한 Amazon Keyspaces(Apache Cassandra용) 자격 증명을 생성할 수 있습니다.

**Amazon Keyspaces 서비스별 자격 증명을 생성하려면(콘솔)**

1. AWS Management Console에 로그인하여 [https://console.aws.amazon.com/iam/](https://console.aws.amazon.com/iam/) 에서 IAM 콘솔을 엽니다.

1. 탐색 창에서 **사용자**를 선택한 다음 자격 증명이 필요한 사용자의 이름을 선택합니다.

1. **보안 자격 증명(Security Credentials)** 탭의 **Amazon Keyspaces(Apache Cassandra용)에 대한 자격 증명(Credentials for Amazon Keyspaces (for Apache Cassandra))** 아래에서 **자격 증명 생성(Generate credentials)**을 선택합니다.

1. 이제 서비스별 자격 증명을 사용할 수 있습니다. 이 때가 암호를 보거나 다운로드 할 수 있는 유일한 시간입니다. 나중에 복구할 수 없습니다. 그러나 언제든지 암호를 재설정할 수 있습니다. 나중에 필요하므로 사용자와 암호를 안전한 위치에 저장하세요.

## Amazon Keyspaces 자격 증명 생성(AWS CLI)
<a name="keyspaces_credentials_cli"></a>

AWS CLI을 사용하여 IAM 사용자에 대한 Amazon Keyspaces(Apache Cassandra용) 자격 증명을 생성할 수 있습니다.

**Amazon Keyspaces 서비스별 자격 증명을 생성하려면(AWS CLI)**
+ 다음 명령을 사용합니다.
  + [aws iam create-service-specific-credential](https://docs.aws.amazon.com/cli/latest/reference/iam/create-service-specific-credential.html)

## Amazon Keyspaces 자격 증명 생성(AWS API)
<a name="keyspaces_credentials_api"></a>

AWS API를 사용하여 IAM 사용자에 대한 Amazon Keyspaces(Apache Cassandra용) 자격 증명을 생성할 수 있습니다.

**Amazon Keyspaces 서비스별 자격 증명을 생성하려면(AWS API)**
+ 다음 작업을 완료합니다.
  + [CreateServiceSpecificCredential](https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateServiceSpecificCredential.html) 