Light, fluffy, and always free - The AWS Local Emulator alternative
fix(docker): stop the bundled AWS CLI fetching URL-valued parameters (#3426)
Anders Wasenbd005ac9c75c
diff --git a/docker/Dockerfile b/docker/Dockerfileindex 3368010e69..2976bc97df 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -37,8 +37,13 @@ RUN set -eux; \WORKDIR /app+# cli_follow_urlparam: the bundled CLI is v1 (pip ships no v2), where a parameter value that looks+# like a URL is *fetched* and its body used as the value. An init hook putting an SSM parameter such+# as MY_API_URL=https://example.com then fails with "Unable to retrieve https://…", and a hook that+# backgrounds its calls loses that silently. AWS CLI v2 dropped the behaviour, so this only shows up+# in the image, never when the same script is run from a host with v2.RUN mkdir -p /app/data /etc/floci/aws \- && printf '[default]\nendpoint_url = http://localhost:4566\n' > /etc/floci/aws/config \+ && printf '[default]\nendpoint_url = http://localhost:4566\ncli_follow_urlparam = false\n' > /etc/floci/aws/config \&& chown 1001:root /app \&& chmod "g+rwX" /app \&& chown 1001:root /app/datadiff --git a/docker/Dockerfile.jvm-package b/docker/Dockerfile.jvm-packageindex 8bcc0fcfda..6dacc19a79 100644--- a/docker/Dockerfile.jvm-package+++ b/docker/Dockerfile.jvm-package@@ -36,8 +36,13 @@ RUN set -eux; \WORKDIR /app+# cli_follow_urlparam: the bundled CLI is v1 (pip ships no v2), where a parameter value that looks+# like a URL is *fetched* and its body used as the value. An init hook putting an SSM parameter such+# as MY_API_URL=https://example.com then fails with "Unable to retrieve https://…", and a hook that+# backgrounds its calls loses that silently. AWS CLI v2 dropped the behaviour, so this only shows up+# in the image, never when the same script is run from a host with v2.RUN mkdir -p /app/data /etc/floci/aws \- && printf '[default]\nendpoint_url = http://localhost:4566\n' > /etc/floci/aws/config \+ && printf '[default]\nendpoint_url = http://localhost:4566\ncli_follow_urlparam = false\n' > /etc/floci/aws/config \&& chown 1001:root /app \&& chmod "g+rwX" /app \&& chown 1001:root /app/data