Adding changes to make it easy to deploy on AWS Elastic Beanstalk

Adding environment variable options, and to be able to choose the DynamoDB endpoint based on region obtained from EC2 instance metadata