mobilefish

Untitled

Apr 1st, 2020
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /* runtime functions */
  2. function getS3ObjectAndCreateDeployment() {
  3. // Get the s3 object to fetch application-name and deploymentgroup-name metadata.
  4. s3.headObject({
  5. Bucket: bucket,
  6. Key: key
  7. }, function(err, data) {
  8. if (err) {
  9. context.done('Error', 'Error getting s3 object: ' + err);
  10. } else {
  11. console.log('Creating deployment');
  12. createDeployment(data);
  13. }
  14. });
  15. }
Add Comment
Please, Sign In to add comment