Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ssm workflow #122

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ssm_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: AWS SSM Send-Command
on:
workflow_call:
inputs:
COMMAND:
description: 'This action helps you to execute remote bash command for AWS EC2 instance without SSH or other accessing.'
required: false
type: string
secrets:
AWS_ACCESS_KEY_ID:
required: false
description: 'AWS Access Key ID to install AWS CLI.'
AWS_SECRET_ACCESS_KEY:
required: false
description: 'AWS Secret access key to install AWS CLI'
INSTANCE_ID:
required: false
description: 'To get the instance ID of a running instance'

jobs:
start:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: AWS SSM Send-Command
uses: peterkimzz/[email protected]
id: ssm
with:
aws-region: eu-west-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
instance-ids: ${{ secrets.INSTANCE_ID }}
comment: aws-ssm-send-command testing
working-directory: /home/ubuntu/
command: ${{ inputs.COMMAND }}
...