I want to execute Elastic Beanstalk commands via the CLI. For starters, I want to list the applications in it like so:
aws --profile main --region us-east-1 elasticbeanstalk describe-applications
…but all I get is this:
{
"Applications": []
}
I double-checked the profile I'm using and the region - they are correct. Why is that happening?
It turns out that I didn't have the necessary permissions.
In a test account, I tried adding/removing the elasticbeanstalk:DescribeApplications
action permission. When I have it, the applications are correctly listed. When I don't - I see the empty array.
It's interesting why I don't simply receive a permissions error…
Edit: I opened an issue on GitHub and it turned out to be a bug.