sets AWS env vars for test workflow
@@ -246,12 +246,18 @@ jobs:
uses: hashicorp/setup-terraform@v2
if: matrix.terraform-dir != ''
+ - name: Set AWS Region
+ if: contains(matrix.component, 'aws')
+ run: |
+ AWS_REGION="us-west-1"
+ echo "AWS_REGION=$AWS_REGION" >> $GITHUB_ENV
+
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
- aws-region: us-west-1
+ aws-region: "${{ env.AWS_REGION }}"
if: matrix.terraform-dir != ''
- name: Terraform Init
@@ -278,6 +284,16 @@ jobs:
if: matrix.terraform-dir != ''
continue-on-error: true
+ - name: Create aws.snssqs specific variables
+ if: contains(matrix.component, 'snssqs')
+ run: |
+ PUBSUB_AWS_SNSSQS_QUEUE_1="sqsssnscerttest-q1-${{env.UNIQUE_ID}}"
+ echo "PUBSUB_AWS_SNSSQS_QUEUE_1=$PUBSUB_AWS_SNSSQS_QUEUE_1" >> $GITHUB_ENV
+ PUBSUB_AWS_SNSSQS_QUEUE_2="sqsssnscerttest-q2-${{env.UNIQUE_ID}}"
+ echo "PUBSUB_AWS_SNSSQS_QUEUE_2=$PUBSUB_AWS_SNSSQS_QUEUE_2" >> $GITHUB_ENV
+ AWS_REGION="us-east-1"
+ echo "AWS_REGION=$AWS_REGION" >> $GITHUB_ENV
+
- name: Set up Go
uses: actions/setup-go@v3
with:
@@ -303,7 +319,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
- AWS_REGION: "us-west-1"
+ AWS_REGION: "${{ env.AWS_REGION }}"
run: |
echo "Running certification tests for ${{ matrix.component }} ... "
export GOLANG_PROTOBUF_REGISTRATION_CONFLICT=ignore
