{"size": 364, "ext": "js", "max_stars_repo_path": "create-instance.js", "max_stars_repo_name": "magician11/aws-tools", "max_stars_repo_stars_event_min_datetime": "2021-07-03T14:40:32.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-03T14:40:32.000Z", "max_issues_repo_path": "create-instance.js", "max_issues_repo_name": "magician11/aws-tools", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "create-instance.js", "max_forks_repo_name": "magician11/aws-tools", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.2666666667, "max_line_length": 61, "alphanum_fraction": 0.5851648352}
const { createInstance } = require('./modules/aws');

(async () => {
  try {
    if (process.argv.length == 3) {
      const response = await createInstance(process.argv[2]);
      console.log(JSON.stringify(response, null, 2));
    } else {
      console.log('usage: node create-instance.js [AMI ID]');
    }
  } catch (error) {
    console.log(error);
  }
})();
