AWS DynamoDB - Create a Global Secondary Index Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Amazon DynamoDB is a NoSQL-managed database that stores data in the form of key-value pairs and document data. A Dynamodb table stores items which are nothing but key-value pairs. By default, each item will have a partition key to differentiate between the items. When need to perform many kinds of queries, taking different attributes as query criteria, then you can create one or more global secondary indexes and issue Query requests against these indexes in Amazon DynamoDB. For example, a table named movies have been created in DynamoDB. See the below image: Table Create a global secondary index: To create a secondary index in DynamoDB follow the below simple steps: Step 1: Click on the name of the table. Navigate to the Indexes tab of the table. Click on create index button. Step 2: Provide the primary key name. In this case, we have provided the Name. The index name is more of a table name. Thus, when we add a secondary global index and the results obtained upon query are stored in the specified index name. Rest leave everything as default. Click create index button. In the above images, we see that a secondary global index has been created with the name Name-index. Comment More infoAdvertise with us Next Article AWS DynamoDB - Update Data in a Table R rohanchopra96 Follow Improve Article Tags : DynamoDB Cloud-Computing AWS DynamoDB DynamoDB-Basics +1 More Similar Reads AWS DynamoDB - Query the Global Secondary Index Global Secondary Index is an index with a partition key and a sort key that can be different from keys in the base table. A global secondary index is said to be "global" because queries on the index can cover all the data in the base table, across all partitions. A global secondary index has no size 2 min read AWS DynamoDB - Creating a Table DynamoDB allows users to create databases capable of storing and retrieving any amount of data and comes in handy while serving any amount of traffic. It dynamically manages each customerâs request and provides high performance by automatically distributing data and traffic over servers. It is a ful 2 min read AWS DynamoDB - Write Data to a Table In this article, we will write data to a table in DynamoDB. DynamoDB is a NoSQL database that supports semi-structured data i.e. key-value and document data structures. A DynamoDB table contains items. An item is a collection of attributes and each item has a primary key that should be not null. Als 2 min read AWS DynamoDB - Query Data in a Table Amazon DynamoDB is a NoSQL managed database that stores semi-structured data i.e. key-value pair and document data. A table in DynamoDB stores data in form of an item and each item has a primary key. Example: { "Color": true, "Director": "Christopher Nolan", "MovieID": 1, "Name": "Inception", "Ratin 2 min read AWS DynamoDB - Update Data in a Table Amazon DynamoDB is a NoSQL managed database that supports semi-structured data i.e. key-value and document data. A DynamoDB table stores data in the form of an item. While creating a table in DynamoDB, a partition key needs to be defined which acts as the primary key for the table and no schema. Eac 2 min read Creating AWS DynamoDB Table Using Terraform I'm going to show how to use Terraform to create a DynamoDB table in AWS. Terraform lets you define infrastructure like databases as code. This makes it easy to version control and share with others. In this article, I'll walk through the steps to set up a Terraform file and define a DynamoDB table 15+ min read Like