Skip to content

Mapzen.com integration

Lou Huang edited this page Aug 29, 2016 · 2 revisions

Managing the S3 uploads bucket

# install awscli
$ brew install awscli

# set up credentials, you will need access key and secret key.
# default region name and output format can be set to blank
$ aws configure --profile uploads

# test
$ aws s3 --profile uploads ls s3://mapzen-uploads/play/

# deleting a user dir
# remove --dryrun when ready to run for real
$ aws s3 rm --recursive s3://mapzen-uploads/play/dev-634b388c1ddb3a884b921c906e107004/ --dryrun --profile uploads

List of uploads:

https://dev.mapzen.com/api/uploads?app=play

(Must be logged in to view)

No uploads - empty array:

{
    "uploads": [ ]
}

Not logged in response. note the array

{
    "Error": [ "Not logged in." ]
}
Clone this wiki locally