title: How to pass environment variables when programmatically starting a new Amazon EC2 from image?
body: <p>I am using AWS Java API RunInstance() to start a  new EC2 instance from my custom AMI image. How do I pass environment variables  to the new EC2  INSTANCE  such as database url, AWS credentials etc.  ? </p>