Accessing Amazon Keyspaces (for Apache Cassandra)
You can access Amazon Keyspaces using the console, AWS CloudShell, programmatically by running a
cqlsh client, the AWS SDK, or by using an Apache 2.0 licensed Cassandra driver. Amazon Keyspaces
supports drivers and clients that are compatible with Apache Cassandra 3.11.2.
Before accessing Amazon Keyspaces, you must complete setting up AWS Identity and Access Management and then grant an IAM identity access permissions to Amazon Keyspaces.
Sign up for an AWS account
To get started with AWS, you need an AWS account. There are two ways to sign up for AWS. If you want complete control over account configuration and where your content is stored, or if you have regulated workloads such as HIPAA or FedRAMP, use Sign up for AWS (advanced). If you are a new user and want to use a login you already own to sign in to AWS and create an AWS environment with preconfigured defaults in select AWS Regions, use Sign up for AWS.
Setting up Amazon Keyspaces
Access to Amazon Keyspaces resources is managed using IAM. Using IAM, you can attach policies to IAM users, roles, and federated identities that grant read and write permissions to specific resources in Amazon Keyspaces.
To get started with granting permissions to an IAM identity, you can use one of the AWS managed policies for Amazon Keyspaces:
AmazonKeyspacesFullAccess – this policy grants permissions to access all resources in Amazon Keyspaces with full access to all features.
AmazonKeyspacesReadOnlyAccess_v2 – this policy grants read-only permissions to Amazon Keyspaces.
For a detailed explanation of the actions defined in the managed policies, see AWS managed policies for Amazon Keyspaces.
To limit the scope of actions that an IAM identity can perform or limit the
resources that the identity can access, you can create a custom policy that uses the
AmazonKeyspacesFullAccess managed policy as a template and remove all
permissions that you don't need. You can also limit access to specific keyspaces or
tables. For more information about how to restrict actions or limit access to specific
resources in Amazon Keyspaces, see How Amazon Keyspaces works with IAM.
To access Amazon Keyspaces after you have created the AWS account and created a policy that grants an IAM identity access to Amazon Keyspaces, continue to one of the following sections: