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.