Skip to main content

Amazon DynamoDB Connector

Amazon DynamoDB Manage tables and items in Amazon DynamoDB.

Connections

Access Key and Secret

Authenticates requests to Amazon DynamoDB using an API Key and API Secret.

An AWS IAM access key pair is required to interact with Amazon DynamoDB. Ensure the key pair generated in AWS has proper permissions to the DynamoDB resources to access. Read more about DynamoDB IAM actions in the AWS documentation.

Prerequisites

  • An AWS account with IAM access
  • Appropriate permissions to create IAM access keys

Setup Steps

To create an IAM access key pair:

  1. Sign in to the AWS Console and navigate to Identity and Access Management (IAM)
  2. Select the IAM user that will be used for the integration
  3. Navigate to the Security credentials tab
  4. Under the Access keys section, select Create access key
  5. Choose the appropriate use case (e.g., Third-party service or Application running outside AWS)
  6. Copy both the Access key ID and Secret access key when displayed
Secret Key Visibility

The Secret access key is only shown once during creation. If it is not copied at this time, a new access key pair must be created.

Configure the Connection

  • Enter the Access key ID into the connection configuration
  • Enter the Secret access key into the connection configuration
InputCommentsDefault
Access Key IDAn AWS IAM Access Key ID. Learn how to create access keys in the AWS IAM documentation.
Secret Access KeyAn AWS IAM Secret Access Key. Learn how to create access keys in the AWS IAM documentation.

AWS Role ARN

Connect to AWS using an assumed role

AWS IAM role authentication allows connections to DynamoDB using the AWS Security Token Service (STS) AssumeRole operation. This authentication method provides enhanced security by allowing temporary credentials and cross-account access.

Prerequisites

  • An AWS account with IAM access
  • Permissions to create IAM users, access keys, and roles
  • Understanding of AWS IAM roles and trust policies

Setup Steps

Create IAM User and Access Keys

  1. Sign in to the AWS Console and navigate to Identity and Access Management (IAM)
  2. Navigate to Users and select Create User
  3. Provide a User name
    • Optionally, grant the user access to the AWS Management Console
  4. Complete the user creation process
  5. After creation, the user's ARN will be displayed in the summary section (format: arn:aws:iam::123456789012:user/username)
  6. Copy the ARN for use in the trust policy in the next section

To obtain the ARN for an existing user:

  • Navigate to Users, select the username
  • The ARN is displayed in the summary section

Create Access Keys for the User:

  1. From the user's summary page, select Create access key
  2. Select Third-party service as the access key type and select Next
  3. Optionally, set a description tag and select Create access key
  4. Copy both the Access key ID and Secret access key
Secret Key Visibility

The Secret access key is only shown once during creation. If it is not copied at this time, a new access key pair must be created.

Create IAM Role with Trust Policy

  1. Navigate to Roles and select Create Role
  2. Select Custom trust policy for the Trusted entity type
  3. Enter the following trust policy, replacing arn:aws:iam::123456789012:user/username with the actual user ARN copied in step 6:
Trust Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:user/username"
},
"Action": "sts:AssumeRole"
}
]
}
  1. Select Next to configure permissions
  2. Attach the AmazonDynamoDBFullAccess policy, or create a custom policy with only the required DynamoDB permissions following the principle of least privilege
  3. Complete the remaining steps and select Create Role
  4. After creation, navigate to the newly created role and copy the Role ARN from the summary section (format: arn:aws:iam::123456789012:role/rolename)

Configure the Connection

Enter the following values into the connection configuration:

  • Access Key ID: The access key ID from step 10
  • Secret Access Key: The secret access key from step 10
  • IAM Role ARN: The role ARN from step 17

For more information on IAM role authentication, refer to the AWS STS documentation.

InputCommentsDefault
Role ARNAn AWS IAM Role ARN
Access Key IDAn AWS IAM Access Key ID
Secret Access KeyAn AWS IAM Secret Access Key
External IDProvides enhanced security measures to the connection. Optional, but recommended. Please check AWS docs for more information.

Actions

Create Table

Create a new DynamoDB Table

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
Attribute DefinitionArray of attribute definitions. Each object must contain an AttributeName and AttributeType. See DynamoDB data types.
[
{
"AttributeName": "customerId",
"AttributeType": "N"
},
{
"AttributeName": "customerName",
"AttributeType": "S"
}
]
Key SchemaArray of key schema elements. Each object must contain a KeyType (HASH or RANGE) and an AttributeName. Learn more about key schemas.
[
{
"KeyType": "HASH",
"AttributeName": "customerId"
},
{
"KeyType": "RANGE",
"AttributeName": "customerName"
}
]
Billing ModeThe billing mode for the table. Learn more about billing modes.PROVISIONED
Read Capacity UnitsThe number of read capacity units. One unit = one strongly consistent read/sec or two eventually consistent reads/sec for items up to 4 KB. Learn more about read capacity.5
Write Capacity UnitsThe number of write capacity units. One unit = one write/sec for items up to 1 KB. Larger items consume additional units. Learn more about write capacity.5
ConnectionThe AWS DynamoDB connection to use.

Delete Item

Delete an item from a DynamoDB database

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
Hash / Primary Key ValueThe value of the hash key (primary key) to match.
Range / Sort Key ValueThe value of the optional range key (sort key) to match. Required if your table has a range key.
Condition ExpressionA condition that must be satisfied for the operation to succeed. Learn more about condition expressions.
Expression Attribute ValuesExpression attribute values are substitutes for actual values in expressions. Each key must begin with a colon (:) followed by alphanumeric characters. Learn more about expression attribute values.
Expression Attribute Value TypesThe DynamoDB data type for each expression attribute value. Must specify a type for each value provided in Expression Attribute Values.
ConnectionThe AWS DynamoDB connection to use.

Delete Table

Delete an existing DynamoDB Table

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
ConnectionThe AWS DynamoDB connection to use.

Describe Table

Fetch metadata about an existing DynamoDB Table

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
ConnectionThe AWS DynamoDB connection to use.

Get Item

Retrieve an item from a DynamoDB database

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
Hash / Primary Key ValueThe value of the hash key (primary key) to match.
Range / Sort Key ValueThe value of the optional range key (sort key) to match. Required if your table has a range key.
ConnectionThe AWS DynamoDB connection to use.

List Tables

List all DynamoDB Tables

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
ConnectionThe AWS DynamoDB connection to use.
Fetch AllWhen true, automatically fetch all pages of results using pagination. When false, return only the first page.false

Query Items

Query a DynamoDB table

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
Expression Attribute ValuesExpression attribute values are substitutes for actual values in expressions. Each key must begin with a colon (:) followed by alphanumeric characters. Learn more about expression attribute values.
Expression Attribute Value TypesThe DynamoDB data type for each expression attribute value. Must specify a type for each value provided in Expression Attribute Values.
Key Condition ExpressionThe condition specifying key values for the query. Must specify the partition key and optionally a sort key condition. Learn more about key condition expressions.
Filter ExpressionA condition to filter query results after they're retrieved. Cannot filter on partition or sort keys. Learn more about filter expressions.
Query ParametersAdditional parameters to pass to the query operation. These are merged with the command input.
ConnectionThe AWS DynamoDB connection to use.

Raw Request

Execute single PartiQL statements.

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
StatementThe PartiQL statement to execute. Use ? for parameters. Learn more about PartiQL for DynamoDB.
ParametersArray of parameter values for the PartiQL statement. Parameters are referenced using ? placeholders in the statement. Learn more about PartiQL parameters.
[
"Rose"
]
Query ParametersAdditional parameters to pass to the query operation. These are merged with the command input.
ConnectionThe AWS DynamoDB connection to use.

Update Item

Update an existing item in a DynamoDB database

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
Hash / Primary Key ValueThe value of the hash key (primary key) to match.
Range / Sort Key ValueThe value of the optional range key (sort key) to match. Required if your table has a range key.
Update ExpressionAn update expression specifying how to modify item attributes. Learn more about update expressions.
Condition ExpressionA condition that must be satisfied for the operation to succeed. Learn more about condition expressions.
Expression Attribute ValuesExpression attribute values are substitutes for actual values in expressions. Each key must begin with a colon (:) followed by alphanumeric characters. Learn more about expression attribute values.
Expression Attribute Value TypesThe DynamoDB data type for each expression attribute value. Must specify a type for each value provided in Expression Attribute Values.
ConnectionThe AWS DynamoDB connection to use.

Upsert Item

Creates a new item, or replaces an existing item with a new item

InputCommentsDefault
AWS RegionAWS provides services in multiple regions, like us-west-2 or eu-west-1.
Table NameThe name of the DynamoDB table to interact with.
ValueKey-value pairs representing the item to insert into the table. Each key corresponds to an attribute name.
Value TypesThe DynamoDB data type for each item attribute. Must specify a type for each key in the Value field. See DynamoDB data types.
Condition ExpressionA condition that must be satisfied for the operation to succeed. Learn more about condition expressions.
Expression Attribute ValuesExpression attribute values are substitutes for actual values in expressions. Each key must begin with a colon (:) followed by alphanumeric characters. Learn more about expression attribute values.
Expression Attribute Value TypesThe DynamoDB data type for each expression attribute value. Must specify a type for each value provided in Expression Attribute Values.
ConnectionThe AWS DynamoDB connection to use.