Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new task revision with deploying the service #521

Open
suraj-sundariya opened this issue Oct 3, 2023 · 3 comments
Open

Create a new task revision with deploying the service #521

suraj-sundariya opened this issue Oct 3, 2023 · 3 comments

Comments

@suraj-sundariya
Copy link

Hi Team,

I just want to create a new task revision without deploying any service.

It is an ECS task without service which will be running as a separate task.

- name: Create housekeeping task
        id: task-def-housekeeping
        uses: aws-actions/amazon-ecs-render-task-definition@v1
        with:
          task-definition: .aws/task-def-housekeeping.json
          container-name: recluster-user-housekeeping
          image: ${{ steps.build-image.outputs.image }}

The above code does not create new task revision.

@rafaelbernard
Copy link

I think AWS hasn't created that action yet. Maybe you will find https://github.com/marketplace/actions/ecs-deploy-task-definition-to-scheduled-task-action-for-github-actions useful for now.

@notAmine
Copy link

notAmine commented Feb 1, 2024

The service input is optional (also cluster) I got this working by not specifying them hope this helps.

@bpo-ddaniel27
Copy link

The service input is optional (also cluster) I got this working by not specifying them hope this helps.

This works for me, this is how my step looks

- name: Deploy Amazon ECS task definition
  uses: aws-actions/amazon-ecs-deploy-task-definition@v1
  with:
    task-definition: ${{ steps.task-def.outputs.task-definition }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants