Reputation: 948
After I use PutObjectTagging using the AWS CLI:
aws s3api put-object-tagging --bucket foo --key bar/file --tagging '{"TagSet": [{"Key": "type", "Value": "env-file"}]}'
My shell prompts with the following less
output:
{
"VersionId": "XXXX"
}
however, this requires me to quit the less
prompt. When I run this under a bash script, this seems to hang my script after the command.
How can I avoid this less
prompt with the VersionId output when using the CLI?
Upvotes: 2
Views: 541
Reputation: 269470
It sounds like the cli_pager
is being invoked. You can turn it off with a configuration setting in your ~/.aws/config
file.
From Using AWS CLI pagination options:
The following example sets the default to disable the use of a pager:
[default]
cli_pager=
Upvotes: 7