From fa41d440a9c89ebf2f6cbe2c8481773922c85730 Mon Sep 17 00:00:00 2001 From: Billy Trend Date: Fri, 22 Nov 2024 11:14:52 -0500 Subject: [PATCH 1/2] aws test --- .github/workflows/aws-test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/aws-test.yml diff --git a/.github/workflows/aws-test.yml b/.github/workflows/aws-test.yml new file mode 100644 index 000000000..bf34961fa --- /dev/null +++ b/.github/workflows/aws-test.yml @@ -0,0 +1,28 @@ +name: "e2e sagemaker health check" + +on: + pull_request: {} + workflow_dispatch: {} + schedule: + - cron: "0 10 * * *" # schedule in UTC, 6am EST + +env: + # renovate: datasource=python-version depName=python + PYTHON_VERSION: 3.11.10 + +jobs: + run-e2e-test: + permissions: + contents: read + id-token: write + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 + with: + role-to-assume: arn:aws:iam::455073351313:role/deploy-sagemaker-endpoint-workflow + aws-region: ${{ matrix.region }} + role-session-name: ci_role_session + output-credentials: true From b86f5d47ae58657109bcac54c708871ae6f2fade Mon Sep 17 00:00:00 2001 From: Billy Trend Date: Fri, 22 Nov 2024 11:15:43 -0500 Subject: [PATCH 2/2] region --- .github/workflows/aws-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws-test.yml b/.github/workflows/aws-test.yml index bf34961fa..98db84c65 100644 --- a/.github/workflows/aws-test.yml +++ b/.github/workflows/aws-test.yml @@ -23,6 +23,6 @@ jobs: uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 with: role-to-assume: arn:aws:iam::455073351313:role/deploy-sagemaker-endpoint-workflow - aws-region: ${{ matrix.region }} + aws-region: us-east-1 role-session-name: ci_role_session output-credentials: true