Add stack set status change rule #3
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: Deploy org sink rules | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- event-rules/org-sink-rules/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-org-sink-rules | |
# TODO Deploy stack set to management account | |
- name: Update stack set | |
working-directory: event-rules/org-sink-rules | |
run: | | |
template_body=$(cat template.yml) | |
aws cloudformation update-stack-set \ | |
--stack-set-name org-sink-event-rules \ | |
--capabilities CAPABILITY_NAMED_IAM \ | |
--template-body "$template_body" \ | |
--operation-preferences FailureTolerancePercentage=100,MaxConcurrentPercentage=100,ConcurrencyMode=SOFT_FAILURE_TOLERANCE,RegionConcurrencyType=PARALLEL \ | |
--auto-deployment Enabled=true,RetainStacksOnAccountRemoval=false |