Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* runtime functions */
- function getS3ObjectAndCreateDeployment() {
- // Get the s3 object to fetch application-name and deploymentgroup-name metadata.
- s3.headObject({
- Bucket: bucket,
- Key: key
- }, function(err, data) {
- if (err) {
- context.done('Error', 'Error getting s3 object: ' + err);
- } else {
- console.log('Creating deployment');
- createDeployment(data);
- }
- });
- }
Add Comment
Please, Sign In to add comment