{"id":20895019,"url":"https://github.com/upplication/gulp-elasticbeanstalk-deploy","last_synced_at":"2025-05-12T23:31:18.939Z","repository":{"id":57257423,"uuid":"55775454","full_name":"Upplication/gulp-elasticbeanstalk-deploy","owner":"Upplication","description":"Gulp plugin for deploying a set of files directly into an Amazon Elasticbeanstlak Instance","archived":false,"fork":false,"pushed_at":"2018-12-04T23:21:07.000Z","size":39,"stargazers_count":10,"open_issues_count":4,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T04:05:33.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Upplication.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-08T11:54:57.000Z","updated_at":"2021-12-10T08:13:12.000Z","dependencies_parsed_at":"2022-09-13T03:32:11.120Z","dependency_job_id":null,"html_url":"https://github.com/Upplication/gulp-elasticbeanstalk-deploy","commit_stats":null,"previous_names":["souler/gulp-elasticbeanstalk-deploy"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Fgulp-elasticbeanstalk-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Fgulp-elasticbeanstalk-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Fgulp-elasticbeanstalk-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upplication%2Fgulp-elasticbeanstalk-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Upplication","download_url":"https://codeload.github.com/Upplication/gulp-elasticbeanstalk-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253840323,"owners_count":21972460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T10:24:28.291Z","updated_at":"2025-05-12T23:31:17.603Z","avatar_url":"https://github.com/Upplication.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-elasticbeanstalk-deploy\n\n  [![NPM Version][npm-image]][npm-url]\n  [![Build Status][travis-image]][travis-url]\n  [![Test Coverage][coveralls-image]][coveralls-url]\n\nGulp plugin for deploying a set of files directly into an Amazon Elasticbeanstlak Instance\n\n## Usage\n```js\nvar gulp = require('gulp')\n ,  gulpEbDeploy = require('gulp-elasticbeanstalk-deploy')\n\ngulp.task('deploy', function() {\n    return gulp.src([\n        'config/**/*',\n        'lib/**/*',\n        'docs/**/*.html',\n        'package.json'\n    ], {\n        base: './',\n        nodir: true // Set this if you have problems when unzipping\n    })\n    .pipe(gulpEbDeploy({\n        name: 'my-application', // optional: If not set, the name from package.json will be used\n        version: '1.0.0', // optional: If not set, the version from package.json will be used\n        timestamp: true, // optional: If set to false, the zip will not have a timestamp\n        waitForDeploy: true, // optional: if set to false the task will end as soon as it starts deploying\n        amazon: {\n            accessKeyId: \"\u003c your access key (fyi, the 'short' one) \u003e\", // optional\n            secretAccessKey: \"\u003c your secret access key (fyi, the 'long' one) \u003e\", // optional\n            signatureVersion: \"v4\", // optional\n            region: 'eu-west-1',\n            bucket: 'elasticbeanstalk-apps',\n            applicationName: 'MyApplication',\n            environmentName: 'my-application-env'\n        }\n    }))\n})\n```\n\nThe code above would work as follows\n* 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`)\n* If amazon credentials (`accessKeyId`, `secretAccessKey`) are provided in the `amazon` object, set them on the `AWS.config.credentials`. If not provided, the default values from AWS CLI configuration will be used.\n* 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\n* 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`)\n* 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`)\n* Updates the Environment specified by `environmentName` by settings its application version to the new just uploaded\n* Waits for completion of the deploy process on the environment, informing on status changes\n\n\n[npm-image]: https://img.shields.io/npm/v/gulp-elasticbeanstalk-deploy.svg\n[npm-url]: https://npmjs.org/package/gulp-elasticbeanstalk-deploy\n[travis-image]: https://img.shields.io/travis/Upplication/gulp-elasticbeanstalk-deploy/master.svg\n[travis-url]:  https://travis-ci.org/Upplication/gulp-elasticbeanstalk-deploy\n[coveralls-image]: https://img.shields.io/coveralls/Upplication/gulp-elasticbeanstalk-deploy/master.svg\n[coveralls-url]: https://coveralls.io/r/Upplication/gulp-elasticbeanstalk-deploy?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupplication%2Fgulp-elasticbeanstalk-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupplication%2Fgulp-elasticbeanstalk-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupplication%2Fgulp-elasticbeanstalk-deploy/lists"}