fix aws role #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: utility-check-healthy | |
on: | |
push: | |
paths: | |
- .github/workflows/check_healthy.yml | |
workflow_call: | |
inputs: | |
env: | |
description: AWS environment to check | |
required: true | |
type: 'string' | |
default: 'dev' | |
jobs: | |
wait-for-services: | |
name: Wait for services to be healthy | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
include: | |
- service: api | |
script_params: api-1 api api frontend v9 | |
- service: api | |
script_params: api | |
- service: attribution | |
script_params: attribution attribution attribution backend v9 | |
# - service: aggregation | |
# script_params: aggregation aggregation aggregation backend v9 | |
# - service: consent | |
# script_params: consent consent consent backend v9 | |
# - service: web | |
# script_params: web-v2-1 web web frontend v9 | |
# - service: sidekiq-web | |
# script_params: sidekiq sidekiq sidekiq frontend v9 | |
# - service: admin | |
# script_params: web-admin-1 web-admin web-admin frontend v9 | |
# - service: sidekiq-admin | |
# script_params: sidekiq-admin sidekiq-admin sidekiq-admin frontend v9 | |
# - service: portal | |
# script_params: web-portal-1 dpc-portal web-portal frontend v9 | |
# - service: sidekiq-portal | |
# script_params: sidekiq-portal sidekiq-portal sidekiq-portal frontend v9 | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v4 | |
with: | |
path: dpc-app | |
- name: AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ vars.AWS_REGION }} | |
role-to-assume: arn:aws:iam::${{ secrets.ACCOUNT_ID }}:role/delegatedadmin/developer/dpc-dev-github-actions | |
- name: Check Service | |
run: | | |
./dpc-app/scripts/check-deployment-status.sh dev ${{ matrix.script_params }} |