1111 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'
1212
1313env :
14+ VERSION : ${{ github.event.inputs.version }}
15+
1416 AWS_DEFAULT_REGION : us-east-1
1517 AWS_PUBLIC_ECR_REGION : us-east-1
1618 AWS_PRIVATE_ECR_REGION : us-west-2
1719 RELEASE_PUBLIC_REPOSITORY : public.ecr.aws/aws-observability/adot-autoinstrumentation-python
1820 RELEASE_PRIVATE_REPOSITORY : 020628701572.dkr.ecr.us-west-2.amazonaws.com/adot-autoinstrumentation-python
1921 RELEASE_PRIVATE_REGISTRY : 020628701572.dkr.ecr.us-west-2.amazonaws.com
2022 PACKAGE_NAME : aws-opentelemetry-distro
21- WHEEL_ARTIFACT_NAME : aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
22- SOURCE_ARTIFACT_NAME : aws_opentelemetry_distro-${{ github.event.inputs.version }}.tar.gz
23+ WHEEL_ARTIFACT_NAME : aws_opentelemetry_distro-${{ env.VERSION }}-py3-none-any.whl
24+ SOURCE_ARTIFACT_NAME : aws_opentelemetry_distro-${{ env.VERSION }}.tar.gz
2325 # Legacy list of commercial regions to deploy to. New regions should NOT be added here, and instead should be added to the `aws_region` default input to the workflow.
2426 LEGACY_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
2527 LAYER_NAME : AWSOpenTelemetryDistroPython
2628 LAYER_ARTIFACT_NAME : aws-opentelemetry-python-layer.zip
27- VERSION : ${{ github.event.inputs.version }}
28-
2929permissions :
3030 id-token : write
3131 contents : write
9191 - name : Set up regions matrix
9292 id : set-matrix
9393 env :
94- AWS_REGIONS : ${{ github.event.inputs.aws_region }}
94+ AWS_REGIONS : ${{ env.AWS_REGIONS }}
9595 run : |
9696 IFS=',' read -ra REGIONS <<< "$AWS_REGIONS"
9797 MATRIX="["
@@ -190,7 +190,7 @@ jobs:
190190 file : ./Dockerfile
191191 platforms : linux/amd64,linux/arm64
192192 tags : |
193- ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
193+ ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }}
194194
195195 # Publish to private ECR
196196 - name : Build and push private ECR image
@@ -201,7 +201,7 @@ jobs:
201201 file : ./Dockerfile
202202 platforms : linux/amd64,linux/arm64
203203 tags : |
204- ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
204+ ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }}
205205
206206 publish-layer-prod :
207207 runs-on : ubuntu-latest
@@ -443,7 +443,7 @@ jobs:
443443 id : create_release
444444 env :
445445 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
446- VERSION : ${{ github.event.inputs.version }}
446+ VERSION : ${{ env.VERSION }}
447447 run : |
448448 # Extract all dependencies from pyproject.toml
449449 DEPS=$(python3 -c "
0 commit comments