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

Improve update_service Command Functionality as Command Fails to Handle Non-Existent Services #228

Open
nanophate opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nanophate
Copy link

Orb version:

6.0.2

What happened:

Customer reached out about an issue when using our AWS ECS orb, particularly the update_service command https://circleci.com/developer/orbs/orb/circleci/aws-ecs#commands-update_service. When users use the update_service command and the service doesn't exist in AWS, the job keeps running for close to ~15 minutes and burns credits before failing.

Expected behavior:

Users should have the ability to pass a parameter to create the service if it doesn't exist already. Alternatively, if the service doesn't exist in AWS and customers don't pass a parameter, the job should fail immediately without burning any further credits.

Additionally, the orb should support the AWS CLI command for update-service https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/update-service.html, which includes a parameter to set the desired number of tasks (--desired-count) when updating a service. This would eliminate the need for customers to run additional jobs/steps as a workaround.

@nanophate nanophate added the bug Something isn't working label Dec 2, 2024
@marboledacci marboledacci self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants