<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Datomic Knowledgebase - Recent questions in Ions</title>
<link>https://ask.datomic.com/index.php/questions/ions</link>
<description>Powered by Question2Answer</description>
<item>
<title>What are the minimum AWS permissions needed to deploy Datamic Cloud?</title>
<link>https://ask.datomic.com/index.php/1894/what-are-the-minimum-permissions-needed-deploy-datamic-cloud</link>
<description>&lt;p&gt;I am reviewing my CI, including Datomic deployment, to improve my regulatory and compliance stance. &lt;/p&gt;
&lt;p&gt;I&#039;d like to know what the minimum permissions are to achieve this same deployment so we can tick this off in an audit in the future e.g. SOC2&lt;/p&gt;
&lt;p&gt;This is a documentation request for Datomic Cloud.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/1894/what-are-the-minimum-permissions-needed-deploy-datamic-cloud</guid>
<pubDate>Tue, 07 Jul 2026 02:49:03 +0000</pubDate>
</item>
<item>
<title>Ion push failing with error message about (missing?, unreadable?) maven artifact ion-1.0.47.jar</title>
<link>https://ask.datomic.com/index.php/1890/failing-error-message-about-missing-unreadable-maven-artifact</link>
<description>&lt;p&gt;Attempting to push an ion and get an error about not finding (or unable to read) &lt;code&gt;ion-1.0.47.jar&lt;/code&gt;. I tried some troubleshooting and I don&#039;t think it is a permissions issue, because I am able to use the aws cli and copy &lt;code&gt;ion-0.9.7.jar&lt;/code&gt;. So why is 1.0.47 not working?&lt;/p&gt;
&lt;p&gt;deps.edn:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:mvn/repos {&quot;datomic-cloud&quot; {:url &quot;s3://datomic-releases-1fc2183a/maven/releases&quot;}}

 :aliases {
           :ion-dev {:deps {com.datomic/ion-dev {:mvn/version &quot;1.0.352&quot;}
                            com.datomic/client-cloud {:mvn/version &quot;1.0.131&quot;}
                            com.datomic/ion {:mvn/version &quot;1.0.71&quot;}}
                     :main-opts [&quot;-m&quot; &quot;datomic.ion.dev&quot;]}}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;command I&#039;m trying to run:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;clojure -M:ion-dev &#039;{:op :push :creds-profile &quot;byt-wrought-test&quot; :region &quot;us-west-2&quot;}&#039;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:command-failed
 &quot;{:op :push :creds-profile \&quot;byt-wrought-test\&quot; :region \&quot;us-west-2\&quot;}&quot;,
 :causes
 ({:message
   &quot;Failed to read artifact descriptor for com.datomic:ion-http-direct:jar:1.0.47&quot;,
   :class ArtifactDescriptorException}
  {:message
   &quot;Could not transfer artifact com.datomic:ion-http-direct:pom:1.0.47 from/to datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases): Unexpected error downloading artifact from datomic-releases-1fc2183a&quot;,
   :class ArtifactResolutionException}
  {:message
   &quot;Could not transfer artifact com.datomic:ion-http-direct:pom:1.0.47 from/to datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases): Unexpected error downloading artifact from datomic-releases-1fc2183a&quot;,
   :class ArtifactTransferException}
  {:message
   &quot;Unexpected error downloading artifact from datomic-releases-1fc2183a&quot;,
   :class ExceptionInfo,
   :data
   {:bucket &quot;datomic-releases-1fc2183a&quot;,
    :path
    &quot;maven/releases/com/datomic/ion-http-direct/1.0.47/ion-http-direct-1.0.47.pom&quot;,
    :reason :cognitect.anomalies/fault}})}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Based on some conversations I found on slack and datomic dev forum, I tried this as a troubleshooting step:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;aws --profile byt-wrangle-test s3 cp s3://datomic-releases-1fc2183a/maven/releases/com/datomic/ion/0.9.7/ion-0.9.7.jar .

download: s3://datomic-releases-1fc2183a/maven/releases/com/datomic/ion/0.9.7/ion-0.9.7.jar to ./ion-0.9.7.jar
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and that works. But the same attempt with 1.0.47 does not:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;aws --profile byt-wrangle-test s3 cp s3://datomic-releases-1fc2183a/maven/releases/com/datomic/ion/1.0.47/ion-1.0.47.jar .
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/1890/failing-error-message-about-missing-unreadable-maven-artifact</guid>
<pubDate>Tue, 19 May 2026 19:40:21 +0000</pubDate>
</item>
<item>
<title>500 errors from api gateway for large Ion responses</title>
<link>https://ask.datomic.com/index.php/1090/500-errors-from-api-gateway-for-large-ion-responses</link>
<description>&lt;p&gt;I&#039;m having trouble with 500 errors that I&#039;m pretty sure are coming from the Jetty container.&lt;/p&gt;
&lt;p&gt;My internal logging is showing that I am responding with a status 200 and a valid response. &lt;/p&gt;
&lt;p&gt;Smaller responses work fine but larger responses are failing with a 500 at the client and I can see that 500 in the API Gateway logs. &lt;/p&gt;
&lt;p&gt;We are using HTTP direct in this case so it&#039;s an HTTP API gateway. &lt;/p&gt;
&lt;p&gt;All these attempts have failed and don&#039;t have any telemetry or logs indicating the true source of the failure. &lt;/p&gt;
&lt;p&gt;To learn more I suspect we need to enable jetty logs to stop being swallowed and start appearing in the CloudWatch logs but I haven&#039;t have any luck in finding how to do this. &lt;/p&gt;
&lt;p&gt;Are there instructions somewhere on how to enable or increase the level of logging from the Jetty container? &lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/1090/500-errors-from-api-gateway-for-large-ion-responses</guid>
<pubDate>Wed, 07 May 2025 01:49:57 +0000</pubDate>
</item>
<item>
<title>http-direct configuation not working as per tutorials</title>
<link>https://ask.datomic.com/index.php/1018/http-direct-configuation-not-working-as-per-tutorials</link>
<description>&lt;p&gt;I cannot get http-direct working.  The AWS configuration consoles have changed and the &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.datomic.com/cloud/livetutorial/http-direct.html&quot;&gt;tutorial&lt;/a&gt; does not appear to work.&lt;/p&gt;
&lt;p&gt;Specifically: in the &lt;strong&gt;API Gateway-&amp;gt;APIs-&amp;gt;Create API&lt;/strong&gt; creation I appear to have to choose between HTTPapi or RESTapi.  Between the two, the tutorial appears to follow the REST Api route (before HTTP was an option apparently).  If I do that, the load balancer does not show up as an option.  The vpc links are created for either HTTP or REST.  There is not a LoadBalancer for REST.  &lt;/p&gt;
&lt;p&gt;I have been able to work through getting a request routed to the LoadBalancer with the preconfigured 8184 listener but I get a Ion excution failed and I&#039;m too far off the tutorial to understand what I need.  &lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/1018/http-direct-configuation-not-working-as-per-tutorials</guid>
<pubDate>Tue, 07 May 2024 19:17:52 +0000</pubDate>
</item>
<item>
<title>How to change the default 1 minute jetty async servlet timeout?</title>
<link>https://ask.datomic.com/index.php/939/how-to-change-the-default-minute-jetty-async-servlet-timeout</link>
<description>&lt;p&gt;We have some ring routes in our HTTP direct ring handler, which returns some Excel files, which are constructed on the fly.&lt;/p&gt;
&lt;p&gt;This handler sometimes runs for more than a minute, resulting in the following error:&lt;br&gt;
&lt;code&gt;HTTP ERROR 503 Async servlet timeout
URI:	/...
STATUS:	503
MESSAGE:	Async servlet timeout
SERVLET:	cognitect.http_endpoint.jetty.FnServlet-49bf6f8c
Powered by Jetty:// 9.4.48.v20220622&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;How can we raise this timeout to ~5minutes, which is the maximum timeout of AWS NLBs?&lt;/p&gt;
&lt;p&gt;(We are exposing the HTTP direct ion endpoint to the public internet via an AWS NLB, to avoid the 30s timeout and 10MB response payload limit of the AWS API Gateway)&lt;/p&gt;
&lt;p&gt;Multiple sources on the internet - eg. &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/ring-clojure/ring/issues/299&quot;&gt;https://github.com/ring-clojure/ring/issues/299&lt;/a&gt; - mention a &lt;code&gt;org.eclipse.jetty.server.HttpChannelState.DEFAULT_TIMEOUT&lt;/code&gt; Java property which is supposed to affect Jetty&#039;s async context timeout.&lt;/p&gt;
&lt;p&gt;Since the change of this property at runtime is not picked up by a running jetty instance, we have added provided it as a startup option, via the &lt;code&gt;OverrideSettings&lt;/code&gt; CloudFormation template parameter:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;`&lt;/code&gt;&lt;br&gt;
{:OverrideSettings&lt;br&gt;
 (str &quot;export JVM_FLAGS=\&quot;$JVM_FLAGS&quot;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  &quot; -Dclojure.server.repl=&quot;
  &quot;{:address,\\\&quot;0.0.0.0\\\&quot;,:port,50505,:accept,clojure.core.server/repl}&quot;
  &quot; -Dorg.eclipse.jetty.server.HttpChannelState.DEFAULT_TIMEOUT=300000&quot;
  &quot;\&quot;&quot;)}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;`&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It is indeed observable within the ion JVM process:&lt;br&gt;
&lt;code&gt;(Long/getLong &quot;org.eclipse.jetty.server.HttpChannelState.DEFAULT_TIMEOUT&quot;)
=&amp;gt; 300000&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Yet we are getting a 503 timeout response from the &lt;code&gt;cognitect.http_endpoint.jetty.FnServlet-49bf6f8c&lt;/code&gt; servlet after 1 minute still.&lt;/p&gt;
&lt;p&gt;Request, which take less then a minute work as expected.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/939/how-to-change-the-default-minute-jetty-async-servlet-timeout</guid>
<pubDate>Thu, 10 Aug 2023 16:01:07 +0000</pubDate>
</item>
<item>
<title>Is there only one deployment target for ions?</title>
<link>https://ask.datomic.com/index.php/890/is-there-only-one-deployment-target-for-ions</link>
<description>&lt;p&gt;I have deployed and used the ion-starter project.  I see that I can have multiple databases and multiple connections all of which work.&lt;/p&gt;
&lt;p&gt;But I fail when I try to create an ion from another project folder.  the &lt;code&gt;{:ion-dev &quot;push&quot;}&lt;/code&gt; appears to work but deployment fails.  &lt;/p&gt;
&lt;p&gt;Should it be a &quot;new&quot; stack? a different deploy group?  Or for ions is there only one project folder that must be used for all ions for a datomic instance?&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/890/is-there-only-one-deployment-target-for-ions</guid>
<pubDate>Sun, 16 Apr 2023 19:26:10 +0000</pubDate>
</item>
<item>
<title>Is there documentation for the AWS Permissions required for push and deploy ?</title>
<link>https://ask.datomic.com/index.php/869/there-documentation-for-permissions-required-push-deploy</link>
<description>&lt;p&gt;The title says it all.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/869/there-documentation-for-permissions-required-push-deploy</guid>
<pubDate>Wed, 01 Feb 2023 17:54:05 +0000</pubDate>
</item>
<item>
<title>Error on ion {:op :push} for redef of abs</title>
<link>https://ask.datomic.com/index.php/715/error-on-ion-op-push-for-redef-of-abs</link>
<description>&lt;p&gt;I haven&#039;t updated my &quot;io-starter&quot; code in a while and came back to it but I can&#039;t push now.&lt;/p&gt;
&lt;p&gt;was there some upgrade to the datomic s2-libs.file that I missed out on?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;WARNING: abs already refers to: #&#039;clojure.core/abs in namespace: cognitect.s3-libs.file,  being replaced by: #&#039;cognitect.s3-libs.file/abs

{:command-failed &quot;{:op :push}&quot;,
 :causes
 ({:message
   &quot;Attempting to call unbound fn: #&#039;cognitect.s3-libs.file/abs&quot;,
   :class IllegalStateException})}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/715/error-on-ion-op-push-for-redef-of-abs</guid>
<pubDate>Fri, 22 Apr 2022 21:50:35 +0000</pubDate>
</item>
<item>
<title>Troubleshooting :deploy-status &quot;FAILED&quot;, :code-deploy-status &quot;SUCCEEDED&quot;</title>
<link>https://ask.datomic.com/index.php/706/troubleshooting-deploy-status-failed-deploy-status-succeeded</link>
<description>&lt;p&gt;After a few days of attempting to launch Datomic Ion on AWS following the &lt;strong&gt;Ion Tutorial&lt;/strong&gt; [0], this appears to be the best I can do:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:deploy-status &quot;FAILED&quot;, :code-deploy-status &quot;SUCCEEDED&quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Searching CloudWatch for “Alert - Alert” reveals no events.&lt;/p&gt;
&lt;p&gt;I did not modify the &lt;code&gt;ion-starter&lt;/code&gt; codebase except for configuring the correct &lt;code&gt;:endpoint&lt;/code&gt; and &lt;code&gt;:app-name&lt;/code&gt;. (I believe this was done correctly because I completed all steps in “Develop at the REPL”[1] without a hitch.)&lt;/p&gt;
&lt;p&gt;[0]: &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.datomic.com/cloud/ions/ions-tutorial.html&quot;&gt;https://docs.datomic.com/cloud/ions/ions-tutorial.html&lt;/a&gt;&lt;br&gt;
[1]: &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.datomic.com/cloud/ions/ions-tutorial.html#repl&quot;&gt;https://docs.datomic.com/cloud/ions/ions-tutorial.html#repl&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for any pointers.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/706/troubleshooting-deploy-status-failed-deploy-status-succeeded</guid>
<pubDate>Mon, 21 Feb 2022 13:33:43 +0000</pubDate>
</item>
<item>
<title>Mismatch between expected release dependencies and &quot;dependency conflicts&quot;</title>
<link>https://ask.datomic.com/index.php/702/mismatch-between-expected-dependencies-dependency-conflicts</link>
<description>&lt;p&gt;I just updated to &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.datomic.com/cloud/changes.html#939-9127&quot;&gt;939-9127&lt;/a&gt;, the latest release of cloud storage and compute, because I want to be running with the latest dependencies. Then I bumped my project&#039;s deps to the &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.datomic.com/cloud/releases.html#current&quot;&gt;latest versions&lt;/a&gt;. Then I did an ion deploy.&lt;/p&gt;
&lt;p&gt;The deploy reports several dependency conflicts. That isn&#039;t unusual, but what I find confusing is that the suggested dependencies are older than what the release docs say are included in 939-9127. To pick a random example, consider tools.analyzer.jvm. The release docs say 939-9127 uses tools.analyzer.jvm 1.2.2, and locally, with the latest deps, &lt;code&gt;clojure -Spath&lt;/code&gt; reports that I am depending on tools.analyzer.jvm 1.2.2. But the dependency conflict report recommends that I pin my deps.edn to tools.analyzer.jvm 1.1.0.&lt;/p&gt;
&lt;p&gt;The release history page doesn&#039;t document exactly when or how each dependency was bumped, but anecdotally, many of the versions mentioned in the dependency conflict report match the versions mentioned for the 936-9118 release, and its associated lib updates. Since 936-9118 and its collection of libraries was the last version I was using, I&#039;m suspicious that my update to 939-9127 didn&#039;t fully complete.&lt;/p&gt;
&lt;p&gt;Because many of the recent dependency updates are security related, I explicitly &lt;em&gt;don&#039;t&lt;/em&gt; want to depend on the older versions. Any suggestions about how to get the latest versions?&lt;/p&gt;
&lt;p&gt;❯ clojure --version&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Clojure CLI version 1.10.3.1069
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;❯ datomic cloud list-systems&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[{,,,
  &quot;storage-cft-version&quot;:&quot;939&quot;,
  ,,,}]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;❯ datomic system list-instances ,,,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[{,,,
  &quot;group-cft-version&quot;:&quot;939&quot;,
  &quot;group-cloud-version&quot;:&quot;9127&quot;,
  ,,,}]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;❯ cat deps.edn&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:paths [&quot;src&quot; &quot;resources&quot;]
 :deps  {org.clojure/clojure {:mvn/version &quot;1.10.3&quot;},
         com.datomic/client-cloud {:mvn/version &quot;1.0.119&quot;}
         ;; register :server-type :ion
         com.datomic/ion          {:mvn/version &quot;1.0.58&quot;}
         io.pedestal/pedestal.service {:mvn/version &quot;0.5.10&quot;}
         io.pedestal/pedestal.ions    {:git/url &quot;https://github.com/pedestal/pedestal.ions.git&quot;
                                       :sha     &quot;56070e360295f3359a6300a2d27858e0a125188b&quot;
                                       :tag     &quot;0.1.3&quot;}
         }
 :mvn/repos {&quot;datomic-cloud&quot; {:url &quot;s3://datomic-releases-1fc2183a/maven/releases&quot;}}
 :aliases
 {:dev    {:extra-paths [&quot;dev&quot;]
           :extra-deps  {;; run jetty instead of ion
                         io.pedestal/pedestal.jetty {:mvn/version &quot;0.5.10&quot;}
                         ;; register :server-type :dev-local
                         com.datomic/dev-local      {:mvn/version &quot;1.0.242&quot;}
                         }}
  :deploy {:extra-paths [&quot;deploy&quot;]
           :extra-deps  {com.datomic/ion-dev {:mvn/version &quot;1.0.298&quot;}}
           :exec-fn     deploy/deploy}
  }}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;❯ bin/release&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{,,,
 :dependency-conflicts {:deps {commons-codec/commons-codec    #:mvn{:version &quot;1.13&quot;}
                               org.clojure/tools.analyzer     #:mvn{:version &quot;1.0.0&quot;}
                               org.clojure/tools.analyzer.jvm #:mvn{:version &quot;1.1.0&quot;}
                               org.ow2.asm/asm                #:mvn{:version &quot;5.2&quot;}
                               com.cognitect/caster           #:mvn{:version &quot;0.9.40&quot;}
                               org.clojure/tools.reader       #:mvn{:version &quot;1.3.6&quot;}
                               org.slf4j/slf4j-api            #:mvn{:version &quot;1.7.32&quot;}
                               org.clojure/core.memoize       #:mvn{:version &quot;1.0.236&quot;}
                               org.clojure/data.priority-map  #:mvn{:version &quot;1.0.0&quot;}
                               org.clojure/core.cache         #:mvn{:version &quot;1.0.207&quot;}
                               org.clojure/core.async         #:mvn{:version &quot;1.3.618&quot;}}
                        :doc  &quot;The :push operation overrode these dependencies to match versions already running in Datomic Cloud. To test locally add these explicit deps to your deps.edn.&quot;}}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/702/mismatch-between-expected-dependencies-dependency-conflicts</guid>
<pubDate>Wed, 02 Feb 2022 23:09:44 +0000</pubDate>
</item>
<item>
<title>How datomic.client.api/connect work?</title>
<link>https://ask.datomic.com/index.php/683/how-datomic-client-api-connect-work</link>
<description>&lt;p&gt;I interested how connection work.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;When connection is open? (all time or when we call him)&lt;/li&gt;
&lt;li&gt;Can we hold connection opened all time ?  Is this good or bad?&lt;/li&gt;
&lt;li&gt;When we execute any transaction is it updated connection?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;maybe the questions are simple, but I would like to better understand how it works.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/683/how-datomic-client-api-connect-work</guid>
<pubDate>Mon, 15 Nov 2021 14:46:44 +0000</pubDate>
</item>
<item>
<title>Is it possible to use Leiningen when deploying with ions&gt;</title>
<link>https://ask.datomic.com/index.php/667/is-it-possible-to-use-leiningen-when-deploying-with-ions</link>
<description>&lt;p&gt;The Ion docs say: &lt;/p&gt;
&lt;p&gt;&amp;gt;There should be a single deps.edn file located at the project root.&lt;br&gt;
&amp;gt; The :deps sections of deps.edn must include the client-cloud and ion libraries. The&lt;br&gt;
&amp;gt; deps.edn classpath must include a resource named datomic/ion-config.edn. This resource configures the entry points for an application.&lt;/p&gt;
&lt;p&gt;A lot of references to deps.edn—is it possible to use Ions in Leiningen, which has the project.clj?  &lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/667/is-it-possible-to-use-leiningen-when-deploying-with-ions</guid>
<pubDate>Sat, 25 Sep 2021 00:40:01 +0000</pubDate>
</item>
<item>
<title>How to properly configure access to IonApiGateway?</title>
<link>https://ask.datomic.com/index.php/646/how-to-properly-configure-access-to-ionapigateway</link>
<description>&lt;p&gt;How to properly configure access to IonApiGateway? Can IAM be used and how? Or is there some other approach?&lt;/p&gt;
&lt;p&gt;I would be very glad if you can help. I read the documentation, but did not find a solution for configuring access.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/646/how-to-properly-configure-access-to-ionapigateway</guid>
<pubDate>Fri, 16 Jul 2021 14:50:26 +0000</pubDate>
</item>
<item>
<title>Can I perform blocking IO during an Ion request?</title>
<link>https://ask.datomic.com/index.php/610/can-i-perform-blocking-io-during-an-ion-request</link>
<description>&lt;p&gt;I can’t find any details regarding the execution details of a web Ion. Is each request handled in its own thread? I need to make some http calls to external services in the course of satisfying the web request, but I want to ensure that doing so in a blocking/synchronous way isn’t going to cause issues. &lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/610/can-i-perform-blocking-io-during-an-ion-request</guid>
<pubDate>Wed, 19 May 2021 22:06:44 +0000</pubDate>
</item>
<item>
<title>Ion deploy says Function not found</title>
<link>https://ask.datomic.com/index.php/597/ion-deploy-says-function-not-found</link>
<description>&lt;p&gt;Hi! After renaming our lambdas in the &lt;code&gt;ion-config.edn&lt;/code&gt; file [[1]], the ion deploy command fails with this cause:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:message
   &quot;Function not found:
     arn:aws:lambda:us-east-1:&amp;lt;...&amp;gt;:function:yada-Compute-&amp;lt;...&amp;gt;-yada-wss-ion-pxy
    (Service: AWSLambda; Status Code: 404; Error Code: ResourceNotFoundException; Request ID: &amp;lt;...&amp;gt;; Proxy: null)&quot;,
   :class ResourceNotFoundException})}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I know that however we rename things in this config file, the deployment steps will delete and then re-create the lambdas under the new names.&lt;/p&gt;
&lt;p&gt;If I rollback my config file, the deployment succeeds in recreating the old-named lambdas. But even then, it carries the instruction to delete the inexistent &lt;code&gt;...-yada-wss-...&lt;/code&gt; lambda, as if it thought it&#039;s really supposed to be there. What makes it think it&#039;s ever been successfully deployed?&lt;/p&gt;
&lt;p&gt;If I use my new config file and I comment out the latter half, it succeeds in deploying the &lt;code&gt;...-yada-app-...&lt;/code&gt; lambda, and I see the step machine is asked to delete the inexistent &lt;code&gt;...-yada-wss-...&lt;/code&gt; lambda.&lt;/p&gt;
&lt;p&gt;If I use my new config file without commenting any of its parts, we don&#039;t reach the step function because somehow, something expects the  &lt;code&gt;...-yada-wss-...&lt;/code&gt; to be already there before calling the step function, which it isn&#039;t.&lt;/p&gt;
&lt;p&gt;I&#039;ve been trying for a few hours to find more logs about this. The error happens very quickly before the Step Function state machine could be hit, or the &lt;code&gt;CreateCodeDeployDeployme&lt;/code&gt; lambda.&lt;/p&gt;
&lt;p&gt;What&#039;s wrong about my &lt;code&gt;wss&lt;/code&gt; lambda?&lt;/p&gt;
&lt;p&gt;Thanks for any help&lt;/p&gt;
&lt;p&gt;[[1]]:&lt;br&gt;
&lt;img src=&quot;https://i.imgur.com/nKKXLs8.png&quot; alt=&quot;1&quot;&gt;&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/597/ion-deploy-says-function-not-found</guid>
<pubDate>Thu, 04 Mar 2021 23:24:34 +0000</pubDate>
</item>
<item>
<title>Is there a way in Datomic Cloud Ions to know what git hash is being run?</title>
<link>https://ask.datomic.com/index.php/571/is-there-way-in-datomic-cloud-ions-know-what-git-hash-being-run</link>
<description>&lt;p&gt;I would like to provide a lambda that gives info on the current running code in Ions. Is there way to get the deployed git sha?&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/571/is-there-way-in-datomic-cloud-ions-know-what-git-hash-being-run</guid>
<pubDate>Fri, 08 Jan 2021 11:22:48 +0000</pubDate>
</item>
<item>
<title>How do I use datomic.ion/cast to log on my development machine?</title>
<link>https://ask.datomic.com/index.php/556/how-do-i-use-datomic-ion-cast-to-log-on-my-development-machine</link>
<description>&lt;p&gt;Hello, I&#039;m trying to understand how to make the calls to &lt;code&gt;cast/*&lt;/code&gt; work outside of Datomic Cloud while I&#039;m doing my local development.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://i.imgur.com/NdmdSLm.png&quot; alt=&quot;Different things I tried&quot;&gt;&lt;/p&gt;
&lt;p&gt;This screenshot illustrates that &lt;code&gt;println&lt;/code&gt;, &lt;code&gt;tap&amp;gt;&lt;/code&gt; and regular &lt;code&gt;log/*&lt;/code&gt; are printed, but not the &lt;code&gt;cast/*&lt;/code&gt; calls.&lt;/p&gt;
&lt;p&gt;What could make it so that cast calls seem to have no effect?&lt;/p&gt;
&lt;p&gt;I have tried them with &lt;code&gt;(cast/initialize-redirect ...)&lt;/code&gt; towards all of &lt;code&gt;:tap&lt;/code&gt;, &lt;code&gt;:stdout&lt;/code&gt;, and &lt;code&gt;:stderr&lt;/code&gt; without success.&lt;/p&gt;
&lt;p&gt;Thanks for any help!&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/556/how-do-i-use-datomic-ion-cast-to-log-on-my-development-machine</guid>
<pubDate>Wed, 09 Dec 2020 21:03:30 +0000</pubDate>
</item>
<item>
<title>How do I initialize core.async connections in Datomic Cloud?</title>
<link>https://ask.datomic.com/index.php/539/how-do-i-initialize-core-async-connections-in-datomic-cloud</link>
<description>&lt;p&gt;I need to &quot;hook up&quot; a core.async channel to a thread on system initialization. How might I go about doing this, or doing any initialization tasks?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br&gt;
Hadil&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/539/how-do-i-initialize-core-async-connections-in-datomic-cloud</guid>
<pubDate>Sat, 28 Nov 2020 23:53:01 +0000</pubDate>
</item>
<item>
<title>How can I get a ring-like request in ionized web handlers?</title>
<link>https://ask.datomic.com/index.php/537/how-can-i-get-a-ring-like-request-in-ionized-web-handlers</link>
<description>&lt;p&gt;Hello! After hearing the talks and reading the tutorial and documentation, I was under the impression that ions receive their requests in a ring-like format, and that we can &quot;wire a web handler to a single function, using a routing library such as Compojure or pedestal.&quot;&lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.datomic.com/cloud/ions/ions-tutorial.html#conclusion&quot;&gt;1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;On one hand, this seems to be true with standard ion lambdas, but these are not exposed to the web. OTOH if we want to expose our web service, we need to write a web handler that we&#039;ll ionize. When we do that, the requests coming in lose their ring-like shape, and only expose the following keys:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; :headers
 :server-name
 :body
 :datomic.ion.edn.api-gateway/json
 :datomic.ion.edn.api-gateway/data
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With that, our router (reitit backed by ring) fails.&lt;/p&gt;
&lt;p&gt;I have seen different examples on the web where some router is exposed behind a single web handler, the most promising of which being probably &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/markbastian/replion&quot;&gt;Replion (look at the code)&lt;/a&gt; (and he uses reitit and ring and seems to have more success than us) and &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/pedestal/pedestal-ions-sample&quot;&gt;Pedestal Ions Sample&lt;/a&gt; (but Pedestal works in a relaxed ring context).&lt;/p&gt;
&lt;p&gt;So my question is: is there something obvious that I don&#039;t understand? Are there more working examples? Some people seem to write adapters to transform the requests to make them more ring-like. Are they doing the right thing, or are we all missing something?&lt;/p&gt;
&lt;p&gt;For example, here&#039;s a very naive adapter:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(defn get-path [req]
  (let [s (get-in req [:datomic.ion.edn.api-gateway/data :requestContext :stage] &quot;stg&quot;)
        p (get-in req [:datomic.ion.edn.api-gateway/data :requestContext :http :path] &quot;/&quot;)]
    (get (str/split p (re-pattern (str &quot;/&quot; s))) 1 &quot;/&quot;))) ; get rid of stage leading path!

(defn req-&amp;gt;ring-req [req]
  (assoc req
         :protocol (get-in req
                           [:datomic.ion.edn.api-gateway/data :requestContext :http :protocol] &quot;HTTP/1.1&quot;)
         :remote-addr (get-in req [:headers &quot;host&quot;] &quot;example.com&quot;)
         :request-method (keyword
                          (str/lower-case
                           (get-in req [:datomic.ion.edn.api-gateway/data :requestContext :http :method] &quot;GET&quot;)))
         :uri (get-path req)))

(defn app
  &quot;Web handler that returns the app&#039;s responses for each web request.&quot;
  [arg]
  (let [sta (start! arg)
        req (req-&amp;gt;ring-req arg)
        ret ((handler/app) req)]
    ret))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Another related question is: what is the &lt;code&gt;:integration&lt;/code&gt; key on &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.datomic.com/cloud/ions/ions-reference.html#lambda-config&quot;&gt;lambda configurations&lt;/a&gt;? Why does &quot;nobody&quot; use it, except Stu&#039;s slack event handler? What does it do? We tried setting it and didn&#039;t seem to observe an impact.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/537/how-can-i-get-a-ring-like-request-in-ionized-web-handlers</guid>
<pubDate>Thu, 26 Nov 2020 19:04:57 +0000</pubDate>
</item>
<item>
<title>How can I get rid of reflection warnings in cognitect/hmac_authn ?</title>
<link>https://ask.datomic.com/index.php/507/how-can-get-rid-of-reflection-warnings-cognitect-hmacauthn</link>
<description>&lt;p&gt;The warnings I am getting are:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Reflection warning, cognitect/hmac_authn.clj:80:12 - call to static method encodeHex on org.apache.commons.codec.binary.Hex can&#039;t be resolved (argument types: unknown, java.lang.Boolean).
Reflection warning, cognitect/hmac_authn.clj:80:3 - call to java.lang.String ctor can&#039;t be resolved.
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/507/how-can-get-rid-of-reflection-warnings-cognitect-hmacauthn</guid>
<pubDate>Wed, 11 Nov 2020 16:07:40 +0000</pubDate>
</item>
<item>
<title>Is there an example of using something like ring with ions http-direct?</title>
<link>https://ask.datomic.com/index.php/505/there-example-using-something-like-ring-with-ions-http-direct</link>
<description>&lt;p&gt;We are using http direct with ions.  There are libraries like ring, liberator, etc for routing requrests.  Is there an example of using these libraries with ions?&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/505/there-example-using-something-like-ring-with-ions-http-direct</guid>
<pubDate>Tue, 10 Nov 2020 19:09:03 +0000</pubDate>
</item>
<item>
<title>Quote string values in result of Ions `{:op :deploy}`</title>
<link>https://ask.datomic.com/index.php/467/quote-string-values-in-result-of-ions-op-deploy</link>
<description>&lt;p&gt;The output of a Datomic Ions lambda deployment provides a command to check the deployment&#039;s status. For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;{:execution-arn EXECUTION-ARN,
 :status-command
 &quot;clojure -Adev -m datomic.ion.dev &#039;{:op :deploy-status, :execution-arn EXECUTION-ARN}&#039;&quot;,
 :doc
 &quot;To check the status of your deployment, issue the :status-command.&quot;}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Calling read-string on the result chokes because EXECUTION-ARN is neither an escaped string or a symbol. Can we get an output similar to the result of :op :push where string values are quoted?&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/467/quote-string-values-in-result-of-ions-op-deploy</guid>
<pubDate>Sun, 25 Oct 2020 21:13:20 +0000</pubDate>
</item>
<item>
<title>Bind Ions to IAM roles separate from their ambient compute role</title>
<link>https://ask.datomic.com/index.php/465/bind-ions-iam-roles-separate-from-their-ambient-compute-role</link>
<description>&lt;p&gt;Right now Ions run under the role of the underlying compute resources that they are deployed to. It would be nice to be able to give Ions a role independent of the ambient compute. This can be managed by the Ion runtime machinery by calling AssumeRole in the background, and supplying those creds to the Ions&lt;/p&gt;
&lt;p&gt;This is important so that Ions don&#039;t have to run with the permissions of all the other ions running in the same compute.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/465/bind-ions-iam-roles-separate-from-their-ambient-compute-role</guid>
<pubDate>Sun, 25 Oct 2020 19:58:49 +0000</pubDate>
</item>
<item>
<title>Support Multi-value parameters with Ions</title>
<link>https://ask.datomic.com/index.php/466/support-multi-value-parameters-with-ions</link>
<description>&lt;p&gt;API Gateway supports this via MultiValueHeaders. Consideration should be given to how best to support multi-value parameters in ions.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://aws.amazon.com/blogs/compute/support-for-multi-value-parameters-in-amazon-api-gateway/&quot;&gt;https://aws.amazon.com/blogs/compute/support-for-multi-value-parameters-in-amazon-api-gateway/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#apigateway-multivalue-headers-and-parameters&quot;&gt;https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#apigateway-multivalue-headers-and-parameters&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Related issues in Pedestal.ion, &quot;Duplicate header support (applicable to the set-cookie header).&quot;&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/466/support-multi-value-parameters-with-ions</guid>
<pubDate>Sun, 25 Oct 2020 18:59:52 +0000</pubDate>
</item>
<item>
<title>Bind Ions to IAM roles separate from their ambient compute role</title>
<link>https://ask.datomic.com/index.php/421/bind-ions-iam-roles-separate-from-their-ambient-compute-role</link>
<description>&lt;p&gt;Right now Ions run under the role of the underlying compute resources that they are deployed to. It would be nice to be able to give Ions a role independent of the ambient compute. This can be managed by the Ion runtime machinery by calling AssumeRole in the background, and supplying those creds to the Ions&lt;/p&gt;
&lt;p&gt;This is important so that Ions don&#039;t have to run with the permissions of all the other ions running in the same compute.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/421/bind-ions-iam-roles-separate-from-their-ambient-compute-role</guid>
<pubDate>Thu, 22 Oct 2020 17:28:02 +0000</pubDate>
</item>
<item>
<title>Allow users to redirect each type of Datomic.ion.cast message to different targets in local dev environment</title>
<link>https://ask.datomic.com/index.php/422/allow-redirect-datomic-message-different-targets-environment</link>
<description>&lt;p&gt;Ability to direct each ion.cast type (Event, alert, dev, metric) to specific targets in local dev.&lt;/p&gt;
</description>
<category>Ions</category>
<guid isPermaLink="true">https://ask.datomic.com/index.php/422/allow-redirect-datomic-message-different-targets-environment</guid>
<pubDate>Thu, 22 Oct 2020 17:06:23 +0000</pubDate>
</item>
</channel>
</rss>