Is it possible to create an EC2 instance from a Launch Configuration via command line interface or API?


Amazon AWS allows you to create Launch Configurations to be used with auto scaling groups.
However how can you spin-up up an individual instance instance based on a launch configuration?


You will have to create an ASG in order to create an instance from a launch config, following is the command. Change min, max and desired capacities as per your needs. Refer the doc.

once the instance is launched you can detached the instance and delete the ASG.

to delete the ASG

However pls check your requirement again and this is NOT a recommended way to do things in AWS. Use a service like Cloud formation instead.

Leave a Reply