Skip to content

Commit

Permalink
fix: assume IAM role before running `cloudposse/github-action-atmos-g…
Browse files Browse the repository at this point in the history
…et-setting` (#58)

* fix: assume IAM role before running `cloudposse/github-action-atmos-get-setting`

* Update integration-tests.yml
  • Loading branch information
goruha committed Aug 28, 2024
1 parent ca53b7a commit b453cd2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
component: "foobar"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
atmos-version: 1.81.0
atmos-version: 1.86.2

- uses: actions/checkout@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit b453cd2

Please sign in to comment.