Skip to content

Commit bec121b

Browse files
authored
Switch to AWS' dual-stack S3 URLs (#213)
The default AWS S3 URLs only support IPv4, whereas the dual-stack URLs support both IPv4 and IPv6: https://docs.aws.amazon.com/AmazonS3/latest/API/ipv6-access.html https://docs.aws.amazon.com/AmazonS3/latest/API/dual-stack-endpoints.html By switching to the dual-stack URLs, it means systems that support IPv6 will now use it instead of IPv4, which is helpful in IPv6 environments where IPv4 traffic has to fall back to being routed via NAT gateways (which has performance and ingress cost implications). See also: https://salesforce-internal.slack.com/archives/C01R6FJ738U/p1770827176094169 GUS-W-21348093.
1 parent f6fbb10 commit bec121b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [Unreleased]
44

5+
- Changed the S3 URLs used for downloads to use AWS' dual-stack (IPv6 compatible) endpoint. ([#213](https://github.com/heroku/heroku-buildpack-clojure/pull/213))
56

67
## [v95] - 2026-02-18
78

lib/openjdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function openjdk::install_openjdk_via_jvm_common_buildpack() {
1212

1313
# Legacy behaviour for customers and testing code can override the download location of the heroku/jvm buildpack
1414
# with JVM_COMMON_BUILDPACK for testing and debugging purposes.
15-
local jvm_common_buildpack_tarball_url="${JVM_COMMON_BUILDPACK:-https://buildpack-registry.s3.us-east-1.amazonaws.com/buildpacks/heroku/jvm.tgz}"
15+
local jvm_common_buildpack_tarball_url="${JVM_COMMON_BUILDPACK:-https://buildpack-registry.s3.dualstack.us-east-1.amazonaws.com/buildpacks/heroku/jvm.tgz}"
1616

1717
local jvm_common_buildpack_tarball_path
1818
jvm_common_buildpack_tarball_path=$(mktemp)

0 commit comments

Comments
 (0)