1111 required : true
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
14+ VERSION : ${{ env.VERSION }}
15+
16+ AWS_REGIONS : ${{ env.AWS_REGIONS }}
17+
1418env :
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
22+ VERSION : ${{ env.VERSION }}
23+
24+ AWS_REGIONS : ${{ env.AWS_REGIONS }}
25+
1826permissions :
1927 id-token : write
2028 contents : write
2937 - name : Set up regions matrix
3038 id : set-matrix
3139 run : |
32- IFS=',' read -ra REGIONS <<< "${{ github.event.inputs.aws_region }}"
40+ IFS=',' read -ra REGIONS <<< "${{ env.AWS_REGIONS }}"
3341 MATRIX="["
3442 for region in "${REGIONS[@]}"; do
3543 trimmed_region=$(echo "$region" | xargs)
@@ -205,7 +213,7 @@ jobs:
205213 run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
206214 - name : Create Release Notes
207215 run : |
208- echo "AWS OpenTelemetry Lambda Layer for Python version ${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" > release_notes.md
216+ echo "AWS OpenTelemetry Lambda Layer for Python version ${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" > release_notes.md
209217 echo "" >> release_notes.md
210218 echo "" >> release_notes.md
211219 echo "See new Lambda Layer ARNs:" >> release_notes.md
@@ -219,10 +227,10 @@ jobs:
219227 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
220228 run : |
221229 gh release create --target "$GITHUB_REF_NAME" \
222- --title "Release lambda-v${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" \
230+ --title "Release lambda-v${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" \
223231 --notes-file release_notes.md \
224232 --draft \
225- "lambda-v${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" \
233+ "lambda-v${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" \
226234 layer_arns.tf layer.zip
227235 echo Removing release_notes.md ...
228236 rm -f release_notes.md
0 commit comments