Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
arrow-up-right

GitHub Action

AWS SSM Send-Command

0.0.2

AWS SSM Send-Command

arrow-up-right

AWS SSM Send-Command

Remote EC2 bash command execution

Installation

Copy and paste the following snippet into your .yml file.

              

- name: AWS SSM Send-Command

uses: peterkimzz/aws-ssm-send-command@0.0.2

Learn more about this action in peterkimzz/aws-ssm-send-command

Choose a version

AWS SSM Send-Command

This action execute AWS SSM Send-Command by using SSM document AWS-RunShellScript.

Requirements

  1. AWS IAM
  2. aws-actions/configure-aws-credentials@v1
  • name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ap-northeast-2

Before using this actions, you have to set AWS IAM and Github Actions for AWS Authentication.

Inputs

instance-ids

Required The name of the person to greet. Default "World".

commands

Required Bash command you want to execute in a EC2 Computer.

comment

for comment.

working-directory

Where bash command executes.

Outputs

time

The time we greeted you.

Example usage

uses: peterkimzz/aws-ssm-send-command
with:
  instance-ids: i-xxxxxxxx
  commands: ls -al
  comment: Print files
  working-directory: /home/ubuntu