text: // Imports
  const AWS = require('aws-sdk')
  
  AWS.config.update({region: 'us-west-2'})
  
  // Declare local variables
  const ec2 = new AWS.EC2()
  
  createImage('i-00a4518704ed0fd60', 'hamsterImage')
  .then(() => console.log('Complete'))
  
  function createImage (seedInstanceId, imageName) {
    const params = {
      InstanceId: seedInstanceId,
      Name: imageName
    }
  
    return new Promise((resolve, reject) => {
      ec2.createImage(params, (err, data) => {
        if (err) reject(err)
        else resolve(data)
      })
    })
  }
  