ec2.client.runInstances cannot parse "UserData" correctly #81

inspiredjw opened this Issue Mar 23, 2013 · 2 comments


None yet
2 participants

I have tried

base64 encoded UserData


String UserData.

None of them worked.

I used to use Java SDK with userdata-file option.

So I wish to use that rather than pass UserData as a String.

But I cannot find that param in AWS-SDK-js.


lsegal commented Mar 26, 2013

Can you provide an example of the code you provided and the error message? UserData should be a documented parameter of the runInstances method, see

It must be base64 encoded as per the documentation on EC2 (, but it seems this information is omitted from our API docs. This can be corrected.


lsegal commented Aug 21, 2013

FYI I've updated SDK documentation for the UserData parameter to notify users that the value should be Base64-encoded. This update will go out with our next release. Thanks for reporting this!

@lsegal lsegal closed this Aug 21, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment