Skip to content

Commit

Permalink
Add event rules stack set update action
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 22, 2024
1 parent dc676e8 commit f331b6b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/deploy-eventrules-org-sink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ jobs:
role-to-assume: arn:aws:iam::048723829744:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-org-sink-rules

- name: Deploy to management account
# TODO Deploy stack set to management account

- name: Update stack set
working-directory: event-rules/org-sink-rules
run: |
aws cloudformation deploy \
--region us-east-2 \
--stack-name org-sink-event-rules \
--template-file template.yml \
template_body=$(cat template.yml)
aws cloudformation update-stack-set \
--stack-set-name org-sink-event-rules \
--capabilities CAPABILITY_NAMED_IAM \
--no-fail-on-empty-changeset \
--role-arn arn:aws:iam::048723829744:role/PRX-GHA-ServiceRoleForCloudFormation
--template-body "$template_body" \
--operation-preferences FailureTolerancePercentage=100,MaxConcurrentPercentage=100,ConcurrencyMode=SOFT_FAILURE_TOLERANCE,RegionConcurrencyType=PARALLEL \
--auto-deployment Enabled=true,RetainStacksOnAccountRemoval=false

0 comments on commit f331b6b

Please sign in to comment.