Does com.amazonaws.services.ec2 contain a method to create a brand new EC2 instance from an existing AMI? I'm looking to do this from the Java SDK, not the web management console.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
RunInstances is the method, it should be in the SDK.
Here is a sample to create EC2 Instances with Amazon AWS SDK for Java :
Source code (create RDS, EC2 and ELB instances) is available at http://code.google.com/p/xebia-france/source/browse/training/xebia-spring-travel/trunk/xebia-spring-travel-amazon-aws/src/main/java/fr/xebia/demo/amazon/aws/AmazonAwsInfrastructureMaker.java?spec=svn1781&r=1781
Hope this helps,
Cyrille