AWS - Execute Sharing of an AMI from a Java Servlet

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.

Need Your Help

Why does using Random in Sort causing

c# linq list sorting random

I tried shuffling a list of byte (List) using either code:

How can I call sympy by javascript with django / jquery or ajax

javascript python ajax django sympy

I'm sorry for this poor question, but I'm not realy familar with Python. Normally I'm working with PHP and JavaScript, but for my recent project I have to integrate some symbolic math to a webpage....