Skip to content

Commit

Permalink
Add 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 b01878f commit 1126793
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Deploy CloudWatch-CrossAccountSharingRole

on:
workflow_dispatch:
push:
branches:
- main
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/deploy-role-PRX-DevOps-CrossAccountAccessRole.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Deploy PRX-DevOps-CrossAccountAccessRole

on:
workflow_dispatch:
push:
branches:
- main
Expand Down Expand Up @@ -39,14 +38,14 @@ jobs:
--no-fail-on-empty-changeset \
--role-arn arn:aws:iam::048723829744:role/PRX-GHA-ServiceRoleForCloudFormation
# - name: Update stack set
# working-directory: iam-roles/PRX-DevOps-CrossAccountAccessRole
# run: |
# template_body=$(cat template.yml)

# aws cloudformation update-stack-set \
# --stack-set-name PRX-DevOps-CrossAccountAccessRole \
# --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
- name: Update stack set
working-directory: iam-roles/PRX-DevOps-CrossAccountAccessRole
run: |
template_body=$(cat template.yml)
aws cloudformation update-stack-set \
--stack-set-name PRX-DevOps-CrossAccountAccessRole \
--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

0 comments on commit 1126793

Please sign in to comment.