-
Notifications
You must be signed in to change notification settings - Fork 2
/
step.yaml
executable file
·72 lines (61 loc) · 2.16 KB
/
step.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# The schema version. Required. Must be exactly the string "integration/v1".
apiVersion: integration/v1
# The schema kind. Required. Must be one of "Query", "Step", or "Trigger"
# corresponding to its directory location.
kind: Step
# The name of the action. Required. Must be exactly the name of the directory
# containing the action.
name: aws-ec2-step-instances-reboot
# The version of the action. Required. Must be an integer. If specified in the
# directory name, must be exactly the version in the directory name.
version: 1
# High-level phrase describing what this action does. Required.
summary: Reboot instances
# Single-paragraph explanation of what this action does in more detail.
# Optional. Markdown.
description: |
Reboots a provided set of EC2 instances.
# URL or path relative to this file to an icon or icons representing this
# action. Optional. Defaults to the integration icon.
icon:
# The mechanism to use to construct this step. Required. Must be an action
# builder. See the Builders section below.
build:
# The schema version for builders. Required. For now, must be the exact
# string "build/v1". We may consider supporting custom third-party builders
# in the future.
apiVersion: build/v1
# The builder to use. Required.
kind: Docker
publish:
repository: relaysh/aws-ec2-step-instances-reboot
schemas:
spec:
source: file
file: spec.schema.json
examples:
- summary: Reboot a single EC2 instance
content:
apiVersion: v1
kind: Step
name: ec2-reboot-instances
image: relaysh/aws-ec2-step-instances-reboot
spec:
aws:
connection: !Connection { type: aws, name: my-aws-account }
region: !Parameter awsRegion
instanceIDs:
- !Parameter instance-id
- summary: Reboot multiple EC2 instances (from list)
content:
apiVersion: v1
kind: Step
name: ec2-reboot-instances
image: relaysh/aws-ec2-step-instances-reboot
spec:
aws:
connection: !Connection { type: aws, name: my-aws-account }
region: !Parameter awsRegion
instanceIDs:
- i-0123456789abcdef0
- i-abcdef0123456789a