Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

MediaStore Uploads

Key Value
Services MediaStore
Integrations AWS CLI
Categories Media; Storage

Introduction

A demo application illustrating the use of the AWS MediaStore API with LocalStack. The sample creates a MediaStore container, uploads files to it, downloads files from it, and cleans up the resources.

Prerequisites

Check prerequisites

make check

Installation

make install

Start LocalStack

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start

Run the application

make run

The script creates a MediaStore container, uploads a test file, downloads it and verifies the content, then deletes the container.

You should see output similar to:

$ make run
Creating MediaStore container in LocalStack ...
MediaStore container endpoint: http://localhost:4510/my-container1
Uploading file to MediaStore container ...
{
    "ContentSHA256": "",
    "ETag": "\"bf10a48192efd84f35b9a79fb3a18b70\"",
    "StorageClass": ""
}
Downloading file from MediaStore container ...
{
    "ContentLength": "22",
    "ContentType": "",
    "ETag": "\"bf10a48192efd84f35b9a79fb3a18b70\"",
    "StatusCode": 200
}
Checking file content of downloaded file ...
test file content 123
Cleaning up - deleting MediaStore container

License

This code is available under the Apache 2.0 license.