Skip to content

[aws-cli] aws-cli feature does not contain less dependency #1224

@miketheman

Description

@miketheman

The https://ghcr.io/devcontainers/features/aws-cli does not install less which is a requirement for aws-cli.

$ aws sts get-caller-identity

Unable to redirect output to pager. Received the following error when opening pager:
[Errno 2] No such file or directory: 'less'

Learn more about configuring the output pager by running "aws help config-vars".

Setting the envvar overrides the default, allowing the commands to work.

$ export AWS_PAGER=""
$ aws sts get-caller-identity
... output ...

So in my mind, either the less dependency should be installed by the feature, or the envvar should be set to allow operation.
Yes, I realize this can be accomplished by adding less to a Dockerfile, but that is not the solution one should have to arrive to after the feature fails to work.

The "correct" one ought to be to install less instead of mucking with the user's env.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions