Skip to content

Check execution as a job #14

Check execution as a job

Check execution as a job #14

Workflow file for this run

# Test ssh connectivity through ssm
name: Test SSH Connectivity
on:
push:
branches:
- DEVOPS-2881-test-ssh-connectivity-ec2
workflow_dispatch:
jobs:
deploy:
name: Test ssh workflow
permissions:
id-token: write
contents: write
environment: dev
runs-on: ubuntu-latest
steps:
- 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
with:
command: ls -lrt
instance_id: i-0d50212756bccc552
wait_for_execution: "3"
# - name: Run command on EC2 instance
# uses: ./.github/workflows/execute_ssh.yml
# with:
# command: ls -lrt
# instance_id: i-0d50212756bccc552
# wait_for_execution: "3"