Skip to content

Commit

Permalink
Add PRX-HealthEventsSinkRole deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Jun 26, 2024
1 parent 81aad0e commit d77ab80
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-role-PRX-HealthEventsSinkRole.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy PRX-HealthEventsSinkRole

on:
push:
branches:
- main
paths:
- iam-roles/PRX-HealthEventsSinkRole/template.yml

concurrency:
group: ${{ github.workflow }}

permissions:
id-token: write
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::048723829744:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-mgmt-health-events-role

- name: Deploy to management account
working-directory: iam-roles/PRX-HealthEventsSinkRole
run: |
aws cloudformation deploy \
--region us-east-2 \
--stack-name PRX-HealthEventsSinkRole \
--template-file template.yml \
--capabilities CAPABILITY_NAMED_IAM \
--no-fail-on-empty-changeset \
--role-arn arn:aws:iam::048723829744:role/PRX-GHA-ServiceRoleForCloudFormation

0 comments on commit d77ab80

Please sign in to comment.