amazon-ecs-render-task-definition icon indicating copy to clipboard operation
amazon-ecs-render-task-definition copied to clipboard

environment-variables not working

Open joa-queen opened this issue 4 years ago • 1 comments

The error: Warning: Unexpected input(s) 'environment-variables', valid inputs are ['task-definition', 'container-name', 'image']

The definition:

- name: Fill in the new image ID in the Amazon ECS task definition
      id: task-def
      uses: aws-actions/amazon-ecs-render-task-definition@v1
      with:
        task-definition: ${{ env.ECS_TASK_DEFINITION }}
        container-name: ${{ env.CONTAINER_NAME }}
        image: ${{ steps.build-image.outputs.image }}
        environment-variables: |
          TEST=something

joa-queen avatar Nov 19 '21 19:11 joa-queen

Hello @joaqtor , As you can see in the releases section, the latest one (v1.0.24) has been released on August 30th. However the PR which enables handling of env variables (https://github.com/aws-actions/amazon-ecs-render-task-definition/pull/114) has been merged on October 14th. While waiting for a new release which includes the PR mentioned above, you can fix your github workflow by using the master ref :

- name: Fill in the new image ID in the Amazon ECS task definition
     id: task-def
     uses: aws-actions/amazon-ecs-render-task-definition@master
     with:
       task-definition: ${{ env.ECS_TASK_DEFINITION }}
       container-name: ${{ env.CONTAINER_NAME }}
       image: ${{ steps.build-image.outputs.image }}
       environment-variables: |
         TEST=something

kubical-moncef avatar Nov 22 '21 14:11 kubical-moncef

This issue seems to have been resolved. Closing older Issue. Please create a new issue if necessary.

amazreech avatar May 22 '24 17:05 amazreech