{"action":"closed","issue":{"url":"https://api.github.com/repos/awsdocs/aws-doc-sdk-examples/issues/202","repository_url":"https://api.github.com/repos/awsdocs/aws-doc-sdk-examples","labels_url":"https://api.github.com/repos/awsdocs/aws-doc-sdk-examples/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/awsdocs/aws-doc-sdk-examples/issues/202/comments","events_url":"https://api.github.com/repos/awsdocs/aws-doc-sdk-examples/issues/202/events","html_url":"https://github.com/awsdocs/aws-doc-sdk-examples/issues/202","id":349770536,"node_id":"MDU6SXNzdWUzNDk3NzA1MzY=","number":202,"title":"Missing result from describeInstances call","user":{"login":"ytensor42","id":31321958,"node_id":"MDQ6VXNlcjMxMzIxOTU4","avatar_url":"https://avatars2.githubusercontent.com/u/31321958?v=4","gravatar_id":"","url":"https://api.github.com/users/ytensor42","html_url":"https://github.com/ytensor42","followers_url":"https://api.github.com/users/ytensor42/followers","following_url":"https://api.github.com/users/ytensor42/following{/other_user}","gists_url":"https://api.github.com/users/ytensor42/gists{/gist_id}","starred_url":"https://api.github.com/users/ytensor42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytensor42/subscriptions","organizations_url":"https://api.github.com/users/ytensor42/orgs","repos_url":"https://api.github.com/users/ytensor42/repos","events_url":"https://api.github.com/users/ytensor42/events{/privacy}","received_events_url":"https://api.github.com/users/ytensor42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-11T23:13:06Z","updated_at":"2018-08-11T23:57:48Z","closed_at":"2018-08-11T23:57:48Z","author_association":"NONE","body":"Hi, I reopen the issue as it's closed without proper explanation.\r\n\r\nI am stuck at testing few basic calls with missing result so I am looking for some help here.\r\nHere's the link for the sample code.\r\nhttps://github.com/awsdocs/aws-doc-sdk-examples/blob/master/javascript/example_code/ec2/ec2_describeinstances.js\r\n\r\n<pre>\r\nvar AWS = require('aws-sdk');\r\nAWS.config.update({region:'us-west-2'});\r\n\r\nvar ec2 = new AWS.EC2({apiVersion: '2016-11-15'});\r\n\r\nvar params = {\r\n  DryRun: false,\r\n}\r\n\r\nec2.describeInstances(params, function(err, data) {\r\n  if (err) {\r\n    console.log('Error', err.stack);\r\n  }\r\n  else {\r\n    console.log(JSON.stringify(data, null, 4));\r\n  }\r\n});\r\n</pre>\r\n\r\nIt's very basic call but it does not return all EC2 instances. It only returns 63 results.\r\nAll EC2 instances are under same region and all of them are clearly shown at console.\r\n\r\nAnd it does not return NextToken.\r\n\r\nWhen I tried describe instances using aws cli at same instance, I get all 76 instances.\r\nAll instances are in same region.\r\n\r\n<pre>\r\n$ aws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId]' --output text | wc -l\r\n76\r\n</pre>\r\n\r\nAm I missing anything?\r\nI use node 8.11.3.\r\nWill be very much appreciated if I get some clue. \r\n\r\n"}}
{"actor":{"display_login":"ytensor42"}}