Created
March 22, 2017 10:21
-
-
Save hideokamoto/ed30aacb25b8012c08bf091448f7fae5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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