Skip to content


Subversion checkout URL

You can clone with
Download ZIP


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

inspiredjw opened this Issue · 2 comments

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.


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.


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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.