log.info("Creating application version " + versionLabel);
CreateApplicationVersionRequest request = new CreateApplicationVersionRequest(applicationName, versionLabel);
request.setDescription("Auto deployment on " + friendlyDateFormat.format(new Date()));
request.setSourceBundle(new S3Location(bucketName, warName));
request.setAutoCreateApplication(true);
try {
CreateApplicationVersionResult result = beanstalk.createApplicationVersion(request);
log.info("Version " + result.getApplicationVersion().getVersionLabel() + " has been created.");