Skip to content

Instantly share code, notes, and snippets.

@chiefGui
Created March 30, 2018 15:15
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 chiefGui/03fb322f5e79a7d353006350d82a82bd to your computer and use it in GitHub Desktop.
Save chiefGui/03fb322f5e79a7d353006350d82a82bd to your computer and use it in GitHub Desktop.
require('AWSRequest')
var creds = {
key: 'AKIAI6DMD4QIN463KJQA',
secret: 'k/8XnjyCSt0QMKXhzS1gu+P2lbEnD2VoQyZoJMWR'
};
var target = 'GameLift.ListAliases';
var requestBody = '{}';
var Request = new AWSRequest(
'gamelift.sa-east-1.amazonaws.com',
'/',
'',
[
{
name : 'x-amz-target',
value : target
},
{
name: 'content-type',
value: 'application/x-amz-json-1.1'
}
],
requestBody,
"sa-east-1",
"gamelift",
creds
);
Request.makeRequest(function(respnose, error) {
Spark.setScriptData("result", error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment