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
amazon/aws-cli イメージを CircleCI で使う - Qiita
先日、待ちに待った AWS 公式の aws-cli イメージ がついに公開されました。 というわけで早速 CircleCI で使ってみたのですが、少しだけハマったので共有します。 結論から CircleCI で amazon/aws-cli イメージを使う場合は環境変数 ...

WARNING: terminal is not fully functional - cimg/python:3.8-node
I am attempting to upgrade the aws-cli Orb from 0.0.13 to 1.0.0, and also using a newer image cimg/python:3.8-node (instead of node:12) to skip installing pip but also get LTS of nodejs baked in. The job seems to be running fine until I get to a simple yarn command that hangs, and at the top of the output of that step is WARNING: terminal is not fully functional The yarn command is a simple aws cloudformation validate-template ... and I am able to SSH and run everything just fine. This also ...

