gulp-elasticbeanstalk-deploy
Gulp plugin for deploying a set of files directly into an Amazon Elasticbeanstlak Instance
Usage
var gulp = gulpEbDeploy = gulp
The code above would work as follows
- Take the files sepcified by
gulp.src
and zip them on a file named{ version }-{ timestamp }.zip
(i.e:1.0.0-2016.04.08_13.26.32.zip
) - If amazon credentials (
accessKeyId
,secretAccessKey
) are provided in theamazon
object, set them on theAWS.config.credentials
. If not provided, the default values from AWS CLI configuration will be used. - Try to upload the zipped file to the bucket specified by
amazon.bucket
. If it fails because the bucket doesn't exist, try to create the bucket and then try to upload the zipped file again - Uploads the ziped files to the bucket on the path
{{ name }}/{{ filename }}
(i.e:my-application/1.0.0-2016.04.08_13.26.32.zip
) - Creates a new version on the Application specified by
applicationName
with VersionLabel{ version }-{ timestamp }
(i.e:1.0.0-2016.04.08_13.26.32
) - Updates the Environment specified by
environmentName
by settings its application version to the new just uploaded - Waits for completion of the deploy process on the environment, informing on status changes