{"id":1928,"date":"2023-12-17T13:49:03","date_gmt":"2023-12-17T19:49:03","guid":{"rendered":"https:\/\/blog.ls-al.com\/?p=1928"},"modified":"2023-12-17T13:53:41","modified_gmt":"2023-12-17T19:53:41","slug":"aws-dynamodb-and-special-characters","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/aws-dynamodb-and-special-characters\/","title":{"rendered":"AWS DynamoDB and special characters"},"content":{"rendered":"
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.<\/p>\n
I was getting this error.<\/p>\n
\n
*botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the Query operation: 1 validation error detected: Value '\ttotal-time-logtime-index' at 'indexName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9_.-]+*<\/code><\/p>\n<\/blockquote>\n
I renamed the index to totaltime-logtime-index and it worked.<\/p>\n","protected":false},"excerpt":{"rendered":"
I recently had some issues with AWS DDB and using hyphens. It is highly recommended to stay clear of special<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,91],"tags":[],"class_list":["post-1928","post","type-post","status-publish","format-standard","hentry","category-aws","category-dynamodb"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1928"}],"version-history":[{"count":3,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1928\/revisions"}],"predecessor-version":[{"id":1931,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1928\/revisions\/1931"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}