From 794d2eca4c125d71bc8a050aa620f132f40d1ea2 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Tue, 30 Jun 2026 10:59:28 -0700 Subject: [PATCH] chore: skip publishing of AWS Lambda layers to AWS regions known to be disrupted https://health.aws.amazon.com/health/status This will require eventually restoring publishing to these regions when service is restored. See https://github.com/elastic/apm-agent-python/pull/2658 for an alternative take used for the Python APM agent. --- .ci/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ci/Makefile b/.ci/Makefile index 31136eaac2..08f675f8ef 100644 --- a/.ci/Makefile +++ b/.ci/Makefile @@ -10,6 +10,11 @@ RELEASE_NOTES_URL = https://www.elastic.co/guide/en/apm/agent/nodejs/current/rel ELASTIC_LAYER_NAME = elastic-apm-node-ver-$(ELASTIC_LAYER_VERSION) export AWS_FOLDER +# AWS Regions to skip when publishing Lambda layers. +# This can be when a region is known to be down for a long while. +# Check for operational issues at: https://health.aws.amazon.com/health/status +SKIP_THESE_AWS_REGIONS = me-central-1 me-south-1 + .PHONY: dist dist: validate-ref-name ../dev-utils/make-distribution.sh @@ -47,6 +52,10 @@ get-all-aws-regions: publish-in-all-aws-regions: validate-layer-name get-all-aws-regions @mkdir -p $(AWS_FOLDER) @while read AWS_DEFAULT_REGION; do \ + if [[ "$(SKIP_THESE_AWS_REGIONS)" == *"$${AWS_DEFAULT_REGION}"* ]]; then \ + echo "skip publish to region $${AWS_DEFAULT_REGION}"; \ + continue; \ + fi; \ echo "publish '$(ELASTIC_LAYER_NAME)' in $${AWS_DEFAULT_REGION}"; \ AWS_DEFAULT_REGION="$${AWS_DEFAULT_REGION}" ELASTIC_LAYER_NAME=$(ELASTIC_LAYER_NAME) $(MAKE) publish > $(AWS_FOLDER)/$${AWS_DEFAULT_REGION}.publish; \ AWS_DEFAULT_REGION="$${AWS_DEFAULT_REGION}" ELASTIC_LAYER_NAME=$(ELASTIC_LAYER_NAME) $(MAKE) grant-public-layer-access; \