MIssing "ListDeployments" permission not handled correctly
fleaz opened this issue · 2 comments
fleaz commented
iBotPeaches commented
Thanks for the find.
Let me think how we can detect this easier and bail out.
Vacoris commented
@iBotPeaches the result is coming from
aws-codedeploy-action/deploy.sh
Line 121 in e524961
Something like:
if ! aws deploy list-deployments \
--application-name "$INPUT_CODEDEPLOY_NAME" \
--deployment-group-name "$INPUT_CODEDEPLOY_GROUP" \
--include-only-statuses "Queued" "InProgress" | jq -r '.deployments'; then
exit 1;
fi