From 24d6cee6cc7a3dae1d9dd9331ea1fb9d0b230e1e Mon Sep 17 00:00:00 2001 From: Andrea Amorosi Date: Tue, 1 Sep 2026 11:16:58 +0200 Subject: [PATCH] fix(ci): omit null layer metadata fields Placeholder layer versions can omit optional metadata such as LicenseInfo. Remove null values from the publish request so the AWS CLI accepts these versions during partition deployment. Refs #7975 --- .github/workflows/layers_partitions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/layers_partitions.yml b/.github/workflows/layers_partitions.yml index 3d6246e5197..f6284aeb461 100644 --- a/.github/workflows/layers_partitions.yml +++ b/.github/workflows/layers_partitions.yml @@ -159,7 +159,7 @@ jobs: - name: Create Layer id: create-layer run: | - cat '${{ matrix.layer }}-${{ matrix.arch }}.json' | jq '{"LayerName": "${{ matrix.layer }}-${{ matrix.arch }}", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "CompatibleArchitectures": .CompatibleArchitectures, "LicenseInfo": .LicenseInfo}' > input.json + jq '{"LayerName": "${{ matrix.layer }}-${{ matrix.arch }}", "Description": .Description, "CompatibleRuntimes": .CompatibleRuntimes, "CompatibleArchitectures": .CompatibleArchitectures, "LicenseInfo": .LicenseInfo} | with_entries(select(.value != null))' '${{ matrix.layer }}-${{ matrix.arch }}.json' > input.json LAYER_VERSION=$(aws --region ${{ matrix.region}} lambda publish-layer-version \ --zip-file 'fileb://./${{ matrix.layer }}-${{ matrix.arch }}.zip' \