質問

I want to implement a service for my customers which allows them to fill in a HTML form (with their user info, email for example). When submitting the form, a Java Servlet will store the details sent and will share an Amazon AMI and. The response of the servlet will be a bookmark URL to the AMI.

What is the right way of invoking AWS related commands from a Java Servlet?

役に立ちましたか?

解決

Have you tried the AWS SDK for Java? There are three packages dealing specifically with EC2. The key method you want is probably AmazonEC2Client.modifyImageAttribute (or the asynchronous class method).

The alternatives would be to use the underlying REST Query API directly or to create a private local service that calls a command-line tool. I would go with the SDK.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top