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)
- What is DynamoDB used for?
- Which AWS regions support DynamoDB?
- What are the best alternatives to DynamoDB?
- How to create an index in DynamoDB? (how to create an index in dynamodb)
- What type of database is DynamoDB?
- Does DynamoDB Support SQL?
- How to import data from S3 to DynamoDB?
- How to connect to DynamoDB?
- In DynamoDB, can I use UUID as the partition key?
- How to store graphs in DynamoDB?
- Do I need a middleware for DynamoDB?
- Is DynamoDB similar to MongoDB?
- How to write complex queries for a DynamoDB table?
- What are the differences between DynamoDB and Snowflake?
- Can DynamoDB store relational data?
Tired of AWS Console? Try Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase