This study aims to reduce the cost of using computing services on AWS. Cost reduction is needed because there is a possibility that the total cost of using cloud services exceeds the estimated budget. One type of EC2 that offers a large discount is the Spot Instance. The downside of this type of EC2 is that AWS reserves the right to stop it at any time. The proposed solution is an automation system to select and run EC2 Spot Instance types based on price, discount, amount of memory, and vCPU usage from previous instances. The automation system is built with the implementation of fuzzy inference system and Best-Worst Method (BWM). All input data is obtained using the Boto3 SDK. System deployment is done in Lambda functions. This Lambda function is automatically executed whenever a Spot Instance is terminated by AWS. The EventBridge service will catch the event and then trigger the Lambda to run. System testing was run for 4 (four) days with event simulation using the Send Events feature. From these tests it is known that the automation system can select the appropriate instance and generate a total cost of $3.85 (USD). After calculating the total cost with regular EC2 estimation (On Demand), the cost is reduced by 71.28%. This number proved to be 4.28% greater than previous similar studies.
Read full abstract