Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Override profile CLI default output format to use JSON #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willgarcia
Copy link

When the default output format is text:

1 🍒  migrate-delimited-files-to-nosql/master 05817a7  $ aws configure
AWS Access Key ID [****************]:
AWS Secret Access Key [****************]:
Default region name [ap-southeast-2]:
Default output format [text]:

the download script fails:

0 🍒  migrate-delimited-files-to-nosql/master 4de075b  $ bash -x download-imdb-title-basics.sh
+ AWSPROFILE=default
+ BUCKETKEY=mybucket/mykey/
+ mkdir -p tempimdbfiles
+ cd tempimdbfiles
++ aws s3api list-objects --bucket imdb-datasets --prefix documents/v1/current/title.basics.tsv.gz --request-payer requester --profile default
++ jq -r '.Contents[].Key'
parse error: Invalid numeric literal at line 2, column 0

Adding the option --output json fixes the issue..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant