Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .ci/publish-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,28 @@ 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}" \
--layer-name="${FULL_LAYER_NAME}" \
--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}" \
--layer-name="${FULL_LAYER_NAME}" \
--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"
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*/**/*"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see https://github.com/actions/upload-artifact#upload-using-a-wildcard-pattern

the value of the path is defined in the goreleaer.yml, since it starts with .aws then we can assume that's the folder

retention-days: 5

- name: generate build provenance (binaries)
uses: actions/attest-build-provenance@v3
with:
Expand Down