[ECS] [request]: UpdateService call should return DeploymentArn of the created deployment
- Dominant language
- Shell
- Stars
- 5.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
**Tell us about your request**
The UpdateService API call currently returns "The full description of your service following the update call" in the form of a "service" object.
Since the new Blue/green paradigm has been introduced, I have been working to incorporate it into my CI/CD pipelines, which currently is somewhat brittle due to inability to conclusively match the deployment to the command that started it.
**Which service(s) is this request for?**
ECS
**Tell us about the problem you're trying to solve.**
In the pipeline, I have to get and store the ServiceDeploymentArn, to operate the hooks and other deployment scripts that get called during the deployment.
Calling update-service from AWS CLI doesn't produce any useful output that can be used in later in my pipeline script.
I have to call list-service-deployments and filter it by statuses PENDING and IN_PROGRESS, which can easily break the pipeline if, for example, someone else starts another deployment (e.g. from console) at the same time. That would produce 2 elements from the list call and I have no way of identifying which is which at this point.
The solution to that problem would be to add the ServiceDeploymentArn to the output of UpdateService call, so that I can store it first thing, and use it for subsequent operations on that pipeline.
Contributor guide
Research direction
No repository file or test is named. Start by reviewing the ECS UpdateService API response and the AWS CLI output described in the issue; the work is complete when the created deployment's ServiceDeploymentArn or DeploymentArn is returned and can be used by subsequent pipeline operations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, shell
- Domain
- api, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100