Skip to content

Instantly share code, notes, and snippets.

@hideokamoto
Created March 22, 2017 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hideokamoto/ed30aacb25b8012c08bf091448f7fae5 to your computer and use it in GitHub Desktop.
Save hideokamoto/ed30aacb25b8012c08bf091448f7fae5 to your computer and use it in GitHub Desktop.
'use strict'
const aws = require('aws-sdk')
var ssm = new aws.SSM({apiVersion: '2014-11-06'})
var params = {
InstanceId: 'YOUR_INSTANCE_ID',
TypeName: 'Custom:WPVersionsList'
}
ssm.listInventoryEntries(params, function (err, data) {
if (err) console.log(err, err.stack) // an error occurred
else console.log(data) // successful response
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment