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

Closed
inspiredjw opened this Issue Mar 23, 2013 · 2 comments

Comments

Projects
None yet
2 participants

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.

Contributor

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 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.

Contributor

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