From 100ec6a48713a72f540ebe3fc52c050b401cbe95 Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Mon, 2 Dec 2024 11:01:46 -0500 Subject: [PATCH] Update Porter CD deploy action --- .../deploy-devops-porter-cd-pipeline-stack.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-devops-porter-cd-pipeline-stack.yml b/.github/workflows/deploy-devops-porter-cd-pipeline-stack.yml index 9294cd78e..f723215b2 100644 --- a/.github/workflows/deploy-devops-porter-cd-pipeline-stack.yml +++ b/.github/workflows/deploy-devops-porter-cd-pipeline-stack.yml @@ -34,13 +34,20 @@ jobs: - us-west-2 steps: - uses: actions/checkout@v4 + - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 with: - aws-region: us-west-2 - role-to-assume: arn:aws:iam::561178107736:role/DevOps-GitHubOidcFederatedRole - role-session-name: GitHubActions-DeployPorterCdPipelineStack + aws-region: ${{ matrix.region }} + role-to-assume: arn:aws:iam::561178107736:role/PRX-GHA-AccessRole + role-session-name: gha-deploy-porter-cd + - name: Deploy CloudFormation stack working-directory: devops run: | - aws cloudformation deploy --region ${{ matrix.region }} --stack-name porter-cd-pipeline --template-file porter-cd-pipeline.yml --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --no-fail-on-empty-changeset + aws cloudformation deploy \ + --region ${{ matrix.region }} \ + --stack-name porter-cd-pipeline \ + --template-file porter-cd-pipeline.yml \ + --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \ + --no-fail-on-empty-changeset