https://pulumi.com logo
#general
Title
# general
f

fast-motherboard-21624

07/11/2019, 6:09 AM
task:
Copy code
new aws.Task('curlbin', {
      image: 'byrnedo/alpine-curl',
      command: [
        '-H',
        'X-Status: Awesome',
        '<https://postb.in/1562821941108-3337054019793>',
      ],
    })
      .run({
        environment: {},
        host: { os: 'linux' },
      })
      .catch(e => {
        console.log('failed to run task', e);
      })
      .finally(() => {
        console.log('finished tas');
      });
  } catch (e) {
    console.log('failed to run task', e);
  }
error:
Copy code
2019-07-11T06:03:59.645Z 474f76ff-9f41-4154-8f53-9cf9cc000e9a (node:1) UnhandledPromiseRejectionWarning: Error: Cannot find module '@pulumi/cloud/index.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at /var/task/__index.js:179:34
at __f2 (/var/task/__index.js:213:6)
at next (/var/task/__index.js:239:17)
at /var/task/__index.js:169:9
at Generator.next (<anonymous>)
at /var/task/__index.js:121:71