|
12 | 12 | 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' |
13 | 13 |
|
14 | 14 | env: |
15 | | - 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 |
| 15 | + # 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. |
| 16 | + 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 |
16 | 17 | LAYER_NAME: AWSOpenTelemetryDistroJava |
17 | 18 |
|
18 | 19 | permissions: |
@@ -67,21 +68,21 @@ jobs: |
67 | 68 | steps: |
68 | 69 | - name: role arn |
69 | 70 | env: |
70 | | - COMMERCIAL_REGIONS: ${{ env.COMMERCIAL_REGIONS }} |
| 71 | + LEGACY_COMMERCIAL_REGIONS: ${{ env.LEGACY_COMMERCIAL_REGIONS }} |
71 | 72 | run: | |
72 | | - COMMERCIAL_REGIONS_ARRAY=(${COMMERCIAL_REGIONS//,/ }) |
| 73 | + LEGACY_COMMERCIAL_REGIONS_ARRAY=(${LEGACY_COMMERCIAL_REGIONS//,/ }) |
73 | 74 | FOUND=false |
74 | | - for REGION in "${COMMERCIAL_REGIONS_ARRAY[@]}"; do |
| 75 | + for REGION in "${LEGACY_COMMERCIAL_REGIONS_ARRAY[@]}"; do |
75 | 76 | if [[ "$REGION" == "${{ matrix.aws_region }}" ]]; then |
76 | 77 | FOUND=true |
77 | 78 | break |
78 | 79 | fi |
79 | 80 | done |
80 | 81 | if [ "$FOUND" = true ]; then |
81 | | - echo "Found ${{ matrix.aws_region }} in COMMERCIAL_REGIONS" |
| 82 | + echo "Found ${{ matrix.aws_region }} in LEGACY_COMMERCIAL_REGIONS" |
82 | 83 | SECRET_KEY="LAMBDA_LAYER_RELEASE" |
83 | 84 | else |
84 | | - echo "Not found ${{ matrix.aws_region }} in COMMERCIAL_REGIONS" |
| 85 | + echo "Not found ${{ matrix.aws_region }} in LEGACY_COMMERCIAL_REGIONS" |
85 | 86 | SECRET_KEY="${{ matrix.aws_region }}_LAMBDA_LAYER_RELEASE" |
86 | 87 | fi |
87 | 88 | SECRET_KEY=${SECRET_KEY//-/_} |
|
0 commit comments