1212 default : ' us-east-1, us-east-2, us-west-1, us-west-2, ap-south-1, ap-northeast-3, ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-northeast-1, ca-central-1, eu-central-1, eu-west-1, eu-west-2, eu-west-3, eu-north-1, sa-east-1, af-south-1, ap-east-1, ap-south-2, ap-southeast-3, ap-southeast-4, eu-central-2, eu-south-1, eu-south-2, il-central-1, me-central-1, me-south-1, ap-southeast-5, ap-southeast-7, mx-central-1, ca-west-1, cn-north-1, cn-northwest-1'
1313
1414env :
15+ VERSION : ${{ github.event.inputs.version }}
16+ AWS_REGIONS : ${{ github.event.inputs.aws_region }}
17+
18+
1519 COMMERCIAL_REGIONS : us-east-1, us-east-2, us-west-1, us-west-2, ap-south-1, ap-northeast-3, ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-northeast-1, ca-central-1, eu-central-1, eu-west-1, eu-west-2, eu-west-3, eu-north-1, sa-east-1, ap-southeast-5, ap-southeast-7, mx-central-1, ca-west-1, cn-north-1, cn-northwest-1
1620 LAYER_NAME : AWSOpenTelemetryDistroPython
1721
2933 - name : Set up regions matrix
3034 id : set-matrix
3135 run : |
32- IFS=',' read -ra REGIONS <<< "${{ github.event.inputs.aws_region }}"
36+ IFS=',' read -ra REGIONS <<< "${{ env.AWS_REGIONS }}"
3337 MATRIX="["
3438 for region in "${REGIONS[@]}"; do
3539 trimmed_region=$(echo "$region" | xargs)
@@ -205,7 +209,7 @@ jobs:
205209 run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
206210 - name : Create Release Notes
207211 run : |
208- echo "AWS OpenTelemetry Lambda Layer for Python version ${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" > release_notes.md
212+ echo "AWS OpenTelemetry Lambda Layer for Python version ${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" > release_notes.md
209213 echo "" >> release_notes.md
210214 echo "" >> release_notes.md
211215 echo "See new Lambda Layer ARNs:" >> release_notes.md
@@ -219,10 +223,10 @@ jobs:
219223 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
220224 run : |
221225 gh release create --target "$GITHUB_REF_NAME" \
222- --title "Release lambda-v${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" \
226+ --title "Release lambda-v${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" \
223227 --notes-file release_notes.md \
224228 --draft \
225- "lambda-v${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" \
229+ "lambda-v${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" \
226230 layer_arns.tf layer.zip
227231 echo Removing release_notes.md ...
228232 rm -f release_notes.md
0 commit comments