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
...
environment:
CLUSTER_NAME: foo-cluster
CONTAINER_NAME: rails
steps:
- aws-cli/install
- aws-authenticate
- run:
command: |
aws sts get-caller-identity
- aws-ecs/run-task:
cluster: '${CLUSTER_NAME}'
overrides: '{"containerOverrides":[{"name": "${CONTAINER_NAME}", "environment": [{"name": "RUN_DB_MIGRATIONS","value": "true"}]}]}'
...
An error occurred (InvalidParameterException) when calling the RunTask operation: name must match ^[a-zA-Z0-9\-_]+$
The same ENV VAR is used elsewhere without issue. If I replace ${CONTAINER_NAME} with the relevant string it works without issue. The Orb does not seem to interpolate the value within this JSON.
Expected behavior:
name value should be populated
Additional Information:
The text was updated successfully, but these errors were encountered:
I've been working on this all day to figure it out but it seems like doing a eval echo on the overrides parameter is causing more issues, even without expanding an environment variable within the json. Here's the error I am getting when trying to run do so:
Error parsing parameter '--overrides': Invalid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
JSON received: {containerOverrides:[{name: sleep, memory: 512}]}
I'll be checking in with my team to see if there's any workarounds but if you can think of one, feel free to let me know.
Orb version:
2.2.1
What happened:
The same ENV VAR is used elsewhere without issue. If I replace ${CONTAINER_NAME} with the relevant string it works without issue. The Orb does not seem to interpolate the value within this JSON.
Expected behavior:
name value should be populated
Additional Information:
The text was updated successfully, but these errors were encountered: