Question: Can colons and special characters be used in DynamoDB attributes?

Answered by Rafal Wilinski
Answer
Colons and special characters can be used in DynamoDB attribute names, but some restrictions exist. Attribute names cannot contain the following characters:
- forward slash (/)
- backslash ()
- period (.)
- pound sign (#)
- tilde (~)
- curly braces ({})
- angle brackets (<>)
Additionally, attribute names must start with a letter and can only contain letters, numbers, and the following characters: _ (underscore), - (hyphen), and . (dot).
Other Common DynamoDB FAQ (with Answers)
- Is DynamoDB a wide-column store?
- Is connection pooling needed for DynamoDB?
- Does DynamoDB have tables?
- How to track changes to items in DynamoDB?
- How to count rows in DynamoDB?
- Does DynamoDB support atomic updates?
- How to ensure delete integrity in DynamoDB?
- How do you enable cloudtrail for DynamoDB?
- Is it possible to make a DynamoDB table case insensitive?
- Do I need a middleware for DynamoDB?
- How many DynamoDB tables can I have at a maximum?
- How to import data from S3 to DynamoDB?
- Is DynamoDB serverless?
- How to write a test case for mocking DynamoDB?
- Does DynamoDB support cross-region replication?
Login to the AWS Console less. Use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase