From a16c736f8d0a6f5a1981d3635e7c55da1e79af61 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Wed, 28 Aug 2024 20:13:00 +0300 Subject: [PATCH] fix: assume IAM role before running `cloudposse/github-action-atmos-get-setting` --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index aa4cc8a..a3969b6 100644 --- a/action.yml +++ b/action.yml @@ -103,6 +103,14 @@ runs: suzuki-shunsuke/tfcmt: v4.11.0 terraform-docs/terraform-docs: v0.18.0 + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4.0.2 + with: + aws-region: ${{ steps.config.outputs.aws-region }} + role-to-assume: ${{ steps.config.outputs.terraform-apply-role }} + role-session-name: "atmos-terraform-apply-gitops" + mask-aws-account-id: "no" + - name: Get atmos settings uses: cloudposse/github-action-atmos-get-setting@v1 id: component