Skip to content

Commit

Permalink
Change command override to be an array item per parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Jan 7, 2025
1 parent d52a241 commit b29193a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/generate-ai-training-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
SUBNETS=$(if [ ${{ inputs.environment }} == "development" ]; then echo "subnet-034e5c652dbad09dd"; else echo "subnet-00b4e88c0ea178f3d"; fi)
SECURITY_GROUPS=($(if [ ${{ inputs.environment}} == "development" ]; then echo "sg-09194f9a648baf082 sg-047498d4c7b2cedd8 sg-06d6458accc0ec5ed sg-0ace4338c75e5d3de";
else echo "sg-02fd053fe7b4660ed sg-0e7119c4423f2c7b0 sg-066d0055caa7cbe90 sg-0c7fb74e11cb64ff8"; fi))
COMMAND="npm run start:generate-ai-training-set ${{ inputs.environment }} ${{ inputs.helpline-shortcodes }} tl-aselo-ai-${{ inputs.environment }}-us-east-1 tl-aselo-ai-${{ inputs.environment }}-us-east-1"
TASK_ROLE="arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ inputs.environment }}-ecsTaskRole"
EXEC_ROLE="arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ inputs.environment }}-ecsTaskExecutionRole"
Expand All @@ -66,7 +65,17 @@ jobs:
--overrides '{
"containerOverrides": [{
"name": "'"$FAMILY"'",
"command": ["sh", "-c", "'"$COMMAND"'"],
"command": [
"sh",
"-c",
"npm",
"run",
"start:generate-ai-training-set",
"${{ inputs.environment }}",
"${{ inputs.helpline-shortcodes }}",
"tl-aselo-ai-${{ inputs.environment }}-us-east-1",
"tl-aselo-ai-${{ inputs.environment }}-us-east-1"
],
"environment": [
{"name": "SSM_REGION", "value": "us-east-1"},
{"name": "AWS_REGION", "value": "us-east-1"}
Expand Down

0 comments on commit b29193a

Please sign in to comment.