#!/bin/bash -eux mkdir -p /usr/local/dynamodb_local curl -s https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz -o /usr/local/dynamodb_local/dynamodb_local_latest.tar.gz cd /usr/local/dynamodb_local tar zxf dynamodb_local_latest.tar.gz cat > /usr/local/bin/dynamodb-local <&1 & EOL chmod a+x /usr/local/bin/dynamodb-local