castlenine/aws-ssm-command

Execute remote commands or scripts on AWS EC2 instances using AWS Systems Manager (SSM) with Github Actions

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Oct 25, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: castlenine/aws-ssm-command@843c2cbe2b68d4b50f130d16f1e07db56179b387 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
aws-access-key-idAWS access key IDyes
aws-secret-access-keyAWS secret access keyyes
aws-regionAWS region of the instanceyes
instance-idsAWS EC2 Instance ID or IDsyes
commandCommand to executenoecho "Hello World from Github Actions"
userUser to execute the command asnoroot
home-envEnvironment variable HOME to export in the commandno/home/ubuntu
working-directoryCommand working directoryno/home/ubuntu
script-parent-folder-pathScript parent folder path if the command is a script fileno.github
wait-for-completionWhether to wait for the command to complete before finishing the actionnotrue
polling-interval-secondsPolling interval in seconds when waiting for command completionno5
timeout-secondsTimeout in seconds when waiting for command completionno1200
commentComment for the commandnoExecuted by Github Actions
action-outputsIf the action have outputsnotrue
console-logIf the command response and result have a console lognotrue
namedescription
request-idRequest ID
request-date-timeRequest date time
request-statusRequest status
request-status-detailsRequest status details
command-statusCommand status
command-status-detailsCommand status details
command-outputCommand output
command-errorCommand error