-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
47 lines (43 loc) · 1.21 KB
/
action.yml
File metadata and controls
47 lines (43 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: 'AWS Run Shell Script'
description:
'Run a shell script inside an EC2 managed instance via AWS SSM SendCommand'
author: '@hisapy'
branding:
icon: server
color: orange
inputs:
instance_id:
description: 'The instance ID to send the command to'
required: true
working_directory:
description: 'The working directory for the command execution'
required: false
default: '/home/ec2-user'
user:
description: 'The user to run the command as'
required: false
default: 'ec2-user'
command:
description: 'The shell command to execute via AWS-RunShellScript'
required: true
comment:
description: 'A comment for the command execution'
required: false
timeout:
description: 'The timeout for the command execution in seconds'
default: '120'
required: false
wait_for_result:
description: 'Whether to wait for command to return a result (true|false)'
required: false
default: 'true'
outputs:
command_id:
description: The SSM command ID
command_status:
description: The status of the command executed in the instance
command_output:
description: The output of the command executed in the instance
runs:
using: node24
main: dist/index.js