"aws elasticbeanstalk list-available-solution-stacks" returns empty arrays

0

When trying to figure out a valid solutionStackName for CfnEnvironment. Running the aws command ""aws elasticbeanstalk list-available-solution-stacks" returns empty arrays when run locally. When running the same command in AWS cloudshell it works correctly. Tried running it both in powershell and in wsl2 (ubuntu).

aws elasticbeanstalk list-available-solution-stacks
{
    "SolutionStacks": [],
    "SolutionStackDetails": []
}

Running same command in aws cloudshell

aws elasticbeanstalk list-available-solution-stacks
{
    "SolutionStacks": [
        "64bit Amazon Linux 2018.03 v2.9.11 running PHP 5.4",
        "64bit Amazon Linux 2018.03 v2.9.11 running PHP 5.5",
        "64bit Amazon Linux 2018.03 v2.9.11 running PHP 5.6",
        "64bit Amazon Linux 2018.03 v2.9.11 running PHP 7.0",
        ... + more

Why is this not working locally? All other aws cli commands I tried worked.

Thanks, Patrik

질문됨 2년 전173회 조회
1개 답변
0
수락된 답변

It turned out it was a permissions issue, after updating my aws cli credentials to the correct role I got results back.

I would have expected to get a permission denied back instead of a empty result set, but I assume that is by design.

답변함 2년 전

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

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

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

관련 콘텐츠