Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
inspiredjw opened this Issue · 2 comments

2 participants

@inspiredjw

I have tried

base64 encoded UserData

and

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

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 http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2/Client.html#runInstances-property

It must be base64 encoded as per the documentation on EC2 (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-RunInstances.html), but it seems this information is omitted from our API docs. This can be corrected.

@lsegal

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.