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 897578b commit 9616203
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::048723829744:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-trax-dns
role-session-name: gha-deploy-cw-share-role

- name: Deploy to management account
working-directory: iam-roles/CloudWatch-CrossAccountSharingRole
Expand All @@ -39,15 +39,15 @@ jobs:
--no-fail-on-empty-changeset \
--role-arn arn:aws:iam::048723829744:role/PRX-GHA-ServiceRoleForCloudFormation
# - name: Update stack set
# working-directory: iam-roles/CloudWatch-CrossAccountSharingRole
# run: |
# template_body=$(cat template.yml)

# aws cloudformation update-stack-set \
# --stack-set-name CloudWatch-CrossAccountSharingRole \
# --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 \
# --regions us-east-2 \
- name: Update stack set
working-directory: iam-roles/CloudWatch-CrossAccountSharingRole
run: |
template_body=$(cat template.yml)
aws cloudformation update-stack-set \
--stack-set-name CloudWatch-CrossAccountSharingRole \
--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 \
--regions us-east-2 \

0 comments on commit 9616203

Please sign in to comment.