I have installed the EC2 plugin, and I have all the parameters correctly set, but my cloud is not launching agents. I can not launch the instance through the plugin, but I can do it manually using AWS console.
In the logs, I can see the following message
No existing instance found - but cannot create new instance
- CloudBees CI (CloudBees Core) on traditional platforms - Operations Center 188.8.131.52
- EC2 Plugin versions below 1.45
Due to the way that the plugin performs the calculations to determine if a new instance has to be launched, calculating the minimum between the available total Slaves and the available slaves for that AMI, it is possible that your instance will not be launched.
One of the factors that is taken into consideration for the calculations is the number of running AMIs using a given template. If you are using the same template on different Agent Clouds, it is more likely that you get into this kind of errors.
The best way to workaround this issue is to increase the Agent Cloud Capacity. This will generally solve the problem.