1

I'm trying to list all deployments from aws codedeploy. There's an aws codedeploy API here: http://docs.aws.amazon.com/codedeploy/latest/APIReference/API_ListDeployments.html but I'm still not sure how I would go about getting a response via curl.

I've tried this so far and it doesn't work:

echo $(curl -s 'https://ID_GOES_HERE.execute-api.LOCATION_GOES_HERE.amazonaws.com/ListDeployments')

EDIT: I was able to get what I wanted to achieve by using boto3 for my python script. I was originally planning to use requests:http to basically use GET calls but it seems like boto3 takes care of this for me.

1
  • Why do you need to use curl, rather than the AWS CLI itself? Commented Nov 4, 2017 at 3:08

1 Answer 1

1

Are you putting ID and Location in curl command ?Above mentioned command dont have id and location.

Also optionally you can try following CLI command to List the deployments in a deployment group for an application registered with the applicable IAM user or AWS account.

list-deployments
[--application-name <value>]
[--deployment-group-name <value>]
[--include-only-statuses <value>]
[--create-time-range <value>]
[--cli-input-json <value>]
[--starting-token <value>]
[--max-items <value>]
[--generate-cli-skeleton <value>]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.