The aws deploy list-deployments command outputs one deployment-id, but why are there multiple outputs?

0

I am deploying using codedeploy through Jenkins.

In Jenkins, I created a shell to query codedeploy's deployment-id with aws-cli. Here is the corresponding command.

aws deploy list-deployments --application-name [my-application-name] --deployment-group-name [my-deployment-group-name] --query "deployments[0]" --output text

In the case of other distribution groups, only one distribution id was normally output, but in the case of a specific distribution group, two were output. One was the most recent one, but the second output was the deployment-id that was deployed 4 months ago.

What could be the cause of this output?

Additionally, how can I delete the Deployment history in codedeploy?

joker
질문됨 일 년 전306회 조회
1개 답변
0
수락된 답변

When you use client-side filtering with the AWS CLI it's best practice to use json or yaml output, as with--output text pagination occurs before filtering which can result in extra output sometimes. Or add --no-paginate and hopefully the extra output will go away.

전문가
답변함 일 년 전
  • It perfectly answered what I was curious about. thank you!!!

  • It perfectly answered what I was curious about. thank you!!!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠