diff --git a/.github/workflows/dev-api-gateway.yml b/.github/workflows/dev-api-gateway.yml index 76d2f0ff2..476f35797 100644 --- a/.github/workflows/dev-api-gateway.yml +++ b/.github/workflows/dev-api-gateway.yml @@ -73,7 +73,7 @@ jobs: - name: Update Task Definition and service run: | FAMILY=$(sed -n 's/.*"family": "\(.*\)",/\1/p' taskdef/api-gateway-service.json) - NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/api-gateway-service.json) + NAME=$(jq -r '.containerDefinitions[0].name' taskdef/api-gateway-taskdef.json) SERVICE_NAME="${NAME}_service" echo "SERVICE_NAME: $SERVICE_NAME"