📄

Got a Timeout Error Trying to Deploy to Elastic Beanstalk from CircleCI

This article was automatically translated from theJapanese original by AI. It may contain translation errors.

This post was published over 2 years ago. Its content may be outdated.

The error

$ aws elasticbeanstalk update-environment --region ap-northeast-1 ..... When I ran this command, the deploy itself seemed to go through, but I got the following error.

WARNING: terminal is not fully functional
Press RETURN to continue
....

....
Too long with no output (exceeded 10m0s): context deadline exceeded

The fix

I solved it by setting AWS_PAGER to an empty string in the CircleCI config file.

deploy:
    environment:
      AWS_DEFAULT_REGION: ap-northeast-1
      AWS_PAGER: "" # disable the paging program that was enabled in aws-cli v2
    docker:
      - image: fooo:latest
    steps:
      - checkout
      ....

(It seems this problem was caused by a feature that was enabled starting in aws-cli v2.) For details, see here.

Closing

After setting AWS_PAGER, it finished in less than a minute 😂

References

Recent Articles

Network(beta)

Drag to move / Ctrl+wheel to zoom