You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,23 @@ Add the following lines to your `pipeline.yml`:
8
8
steps:
9
9
- plugins:
10
10
- cultureamp/ecs-task-runner#v0.0.0:
11
-
parameter-name: "/my-cool-service/farm-name"
12
-
command: "./run-my-fully-siq-migrations"
11
+
parameter-name: "test-parameter"
12
+
command: "/bin/migrate"
13
+
timeout: 900
13
14
```
14
15
15
16
## Configuration
16
17
17
-
### `message` (Required, string)
18
+
### `parameter-name` (Required, string)
19
+
The name or ARN of the parameter in Parameter Store that contains the task definition.
18
20
19
-
The message to annotate onto the build.
21
+
### `command` (Optional, string)
22
+
The name of the command to run in the task. When omitted, the task will run the command specified in the parameter.
23
+
24
+
### `timeout` (Optional, integer)
25
+
The timeout in seconds that the plugin will wait for the task to complete. If the task does not complete within this time, the plugin will fail. The task execution will continue to run in the background.
26
+
27
+
Default: 2700
20
28
21
29
## Usage
22
30
This plugin is based on an existing pattern in `murmur` where database migrations are run as a task on ECS. To provide additional context for how this plugin is expected to be used, this is the expected pattern:
@@ -35,7 +43,7 @@ This plugin comes with some assumed infrastructure that needs to be deployed bef
35
43
- An IAM role for the BK agent to start the task
36
44
- A Parameter Store parameter extending the task definition by providing entrypoint overrides and networking configuration
37
45
- A log group for the task
38
-
- A security group for your service (this can be the [base-infrastructure-for-services](https://github.com/cultureamp/base-infrastructure-for-services) source security group
46
+
- A security group for your service (this can be the [base-infrastructure-for-services](https://github.com/cultureamp/base-infrastructure-for-services) source security group)
39
47
40
48
This can be visualised below:
41
49

0 commit comments