From 5ecbb284074ad13a14bc9de7b029edfc45f92ef6 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 10 Feb 2026 14:15:46 +0100 Subject: [PATCH 1/2] ci: debug the aws lambda publishing use > instead of value output and store .aws* folder --- .ci/publish-aws.sh | 12 ++++++------ .github/workflows/release.yml | 8 ++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.ci/publish-aws.sh b/.ci/publish-aws.sh index 32905fc8..50487a69 100755 --- a/.ci/publish-aws.sh +++ b/.ci/publish-aws.sh @@ -45,7 +45,7 @@ zip_file="./dist/${VERSION}-${GOOS}-${GOARCH}.zip" for region in $ALL_AWS_REGIONS; do echo "Publish ${FULL_LAYER_NAME} in ${region}" - publish_output=$(aws lambda \ + aws lambda \ --output json \ publish-layer-version \ --region="${region}" \ @@ -53,11 +53,12 @@ for region in $ALL_AWS_REGIONS; do --compatible-architectures="${ARCHITECTURE}" \ --description="AWS Lambda Extension Layer for Elastic APM ${ARCHITECTURE}" \ --license="Apache-2.0" \ - --zip-file="fileb://${zip_file}") - echo "${publish_output}" > "${AWS_FOLDER}/${region}" + --zip-file="fileb://${zip_file}" > "${AWS_FOLDER}/${region}" + publish_output=$(cat "${AWS_FOLDER}/${region}") layer_version=$(echo "${publish_output}" | jq '.Version') + echo "Grant public layer access ${FULL_LAYER_NAME}:${layer_version} in ${region}" - grant_access_output=$(aws lambda \ + aws lambda \ --output json \ add-layer-version-permission \ --region="${region}" \ @@ -65,8 +66,7 @@ for region in $ALL_AWS_REGIONS; do --action="lambda:GetLayerVersion" \ --principal='*' \ --statement-id="${FULL_LAYER_NAME}" \ - --version-number="${layer_version}") - echo "${grant_access_output}" > "${AWS_FOLDER}/.${region}-public" + --version-number="${layer_version}" > "${AWS_FOLDER}/.${region}-public" done sh -c "./.ci/create-arn-table.sh" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4fccb40..fe422781 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,14 @@ jobs: path: "dist/*.*" retention-days: 5 + # Store artifacts to help with troubleshooting + - uses: actions/upload-artifact@v6 + if: always() + with: + name: aws + path: ".aws*" + retention-days: 5 + - name: generate build provenance (binaries) uses: actions/attest-build-provenance@v3 with: From 38821dcce1365b5c6ec54f4d7a28c7005cbc6f53 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 10 Feb 2026 14:17:57 +0100 Subject: [PATCH 2/2] add --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe422781..e8c7709b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,7 +65,7 @@ jobs: if: always() with: name: aws - path: ".aws*" + path: ".aws*/**/*" retention-days: 5 - name: generate build provenance (binaries)