Skip to content

Commit

Permalink
Set creds in common workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Aug 19, 2024
1 parent 7e077fc commit 0fb234a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/execute_ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
name: Execute ssh command
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::657556092833:role/midendev-GithubActionsRole
role-session-name: GithubActionsSession

- name: Execute ssh command
id: run_ssm_command
run: |
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/test-ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ jobs:
- name: Checkout Code Repository
uses: actions/checkout@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::657556092833:role/midendev-GithubActionsRole
role-session-name: GithubActionsSession

call-execute-ssh:
uses: ./.github/workflows/execute_ssh.yml
needs: setup
Expand Down

0 comments on commit 0fb234a

Please sign in to comment.