<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Datomic Knowledgebase - Recent questions tagged ydb</title>
<link>https://ask.datomic.com/index.php/tag/ydb</link>
<description>Powered by Question2Answer</description>
<item>
<title>Support for DynamoDB compatible services</title>
<link>https://ask.datomic.com/index.php/898/support-for-dynamodb-compatible-services</link>
<description>&lt;p&gt;Hi!&lt;br&gt;
There is a DynamoDB compatible service called &lt;a rel=&quot;nofollow&quot; href=&quot;https://ydb.tech/&quot;&gt;YDB&lt;/a&gt;.&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://cloud.yandex.com/en/services/ydb&quot;&gt;YDB in the Yandex Cloud&lt;/a&gt;  has a serverless mode with &lt;a rel=&quot;nofollow&quot; href=&quot;https://cloud.yandex.com/en/docs/ydb/docapi/tools/aws-setup&quot;&gt;DynamoDB support.&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So I have:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;AWS_ACCESS_KEY_ID&lt;/li&gt;
&lt;li&gt;AWS_SECRET_KEY&lt;/li&gt;
&lt;li&gt;region: ru-central1&lt;/li&gt;
&lt;li&gt;endpoint like &lt;code&gt;https://docapi.serverless.yandexcloud.net/ru-central1/b1gia87mbaomkfvs6rgl/etnudu2n9ri35luqe4h1&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I have tried using the ddb and ddb-local protocols with different settings.&lt;/p&gt;
&lt;p&gt;Variants of &lt;code&gt;aws-dynamodb-override-endpoint&lt;/code&gt;&lt;br&gt;
 1. &lt;code&gt;docapi.serverless.yandexcloud.net/ru-central1/.../...&lt;/code&gt;&lt;br&gt;
 2. &lt;code&gt;docapi.serverless.yandexcloud.net:443/ru-central1/.../...&lt;/code&gt;&lt;br&gt;
 3. &lt;code&gt;https://docapi.serverless.yandexcloud.net/ru-central1/.../...&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ bin/datomic ensure-transactor config/ddb.properties config/ddb-gen.properties
java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in authority at index 7: http://&quot;https://docapi.serverless.yandexcloud.net/ru-central1/b1g31q09ln3ca15cg5mf/etnckvjnbskiko1s639l&quot;
	at com.amazonaws.util.RuntimeHttpUtils.toUri(RuntimeHttpUtils.java:216)
	at com.amazonaws.util.RuntimeHttpUtils.toUri(RuntimeHttpUtils.java:190)
	at com.amazonaws.AmazonWebServiceClient.toURI(AmazonWebServiceClient.java:329)
	at com.amazonaws.AmazonWebServiceClient.setEndpoint(AmazonWebServiceClient.java:317)
	at datomic.ddb$client.invokeStatic(ddb.clj:14)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I think that ddb-local always uses http protocol and there is no way to configure it with https.&lt;/p&gt;
&lt;p&gt;There are some &lt;a rel=&quot;nofollow&quot; href=&quot;https://cloud.yandex.com/en/docs/ydb/docapi/tools/aws-sdk/create-table&quot;&gt;examples&lt;/a&gt; of using AwsSDK with YDB in Yandex cloud&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;AmazonDynamoDB client = AmazonDynamoDBClientBuilder.standard()
          .withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(&quot;&amp;lt;Document API endpoint&amp;gt;&quot;, &quot;ru-central1&quot;))
          .build();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Could you add support for DynamoDB compatible services?&lt;br&gt;
Could it be the new `aws-dynamodb-override-protocol' setting, which is by default 'http' ?&lt;/p&gt;
</description>
<category>On-Prem</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/898/support-for-dynamodb-compatible-services</guid>
<pubDate>Thu, 11 May 2023 12:18:56 +0000</pubDate>
</item>
</channel>
</rss>