Riaan's SysAdmin Blog

My tips, howtos, gotchas, snippets and stuff. Use at your own risk!


AWS DynamoDB and special characters

I recently had some issues with AWS DDB and using hyphens. It is highly recommended to stay clear of special characters in keys. But I also did not expect that a index would give me even a worse problem.

I was getting this error.

*botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the Query operation: 1 validation error detected: Value ' total-time-logtime-index' at 'indexName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9_.-]+*

I renamed the index to totaltime-logtime-index and it worked.


Bio Info for Riaan