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
+35-12Lines changed: 35 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,7 +228,7 @@ Running a service requires the following minimum set of permissions:
228
228
]
229
229
}
230
230
```
231
-
231
+
232
232
Running a one-off/stand-alone task requires the following minimum set of permissions:
233
233
```json
234
234
{
@@ -342,7 +342,7 @@ In the following example, the service would not be updated until the ad-hoc task
342
342
wait-for-task-stopped: true
343
343
```
344
344
345
-
Overrides and VPC networking options are available as well. See [action.yml](action.yml) for more details. The `FARGATE`
345
+
Overrides and VPC networking options are available as well. See [action.yml](action.yml) for more details. The `FARGATE`
346
346
launch type requires `awsvpc` network mode in your task definition and you must specify a network configuration.
347
347
348
348
### Tags
@@ -369,21 +369,44 @@ To tag your tasks:
369
369
370
370
## Preserving Empty Values with keep-null-value-keys
371
371
372
-
By default, this action removes empty string, array, and object values from the ECS task definition before registering it. If you want to preserve empty values for specific keys, use the `keep-null-value-keys` input. This is a comma-separated list of key names. When specified, any empty value for those keys will be kept in the registered task definition.
372
+
By default, this action removes empty string, array, and object values from the ECS task definition before registering it. This behavior aligns with ECS defaults but can be problematic when you explicitly want to override a non-null default value with an empty or null value.
373
+
374
+
To preserve empty values for specific keys, use the keep-null-value-keys input. This is a comma-separated list of key names. When specified, empty values for those keys will be retained in the registered task definition.
375
+
376
+
This is particularly useful in cases where ECS or a previous task definition applies a default value and you want to explicitly unset it.
To automatically retry a failed task definition deployment, use the max-retries input. This controls how many times the action will attempt to register and deploy the task definition before failing.
This is useful for cases where a default value is non-null and you want to override the value and set it to null.
409
+
Retries apply to transient failures during task definition registration or service update, such as eventual consistency issues or temporary AWS API errors.
Copy file name to clipboardExpand all lines: action.yml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,8 @@ inputs:
90
90
required: false
91
91
keep-null-value-keys:
92
92
description: 'A comma-separated list of keys whose empty values (empty string, array, or object) should be preserved in the task definition. By default, empty values are removed.'
93
+
max-retries:
94
+
description: 'The maximum number of retry attempts for AWS API calls. Defaults to 3.'
0 commit comments