DEV Community

Abdullah Al Reza
Abdullah Al Reza

Posted on

AWS Cost Optimization

Cloud Front:
CloudFront caching can reduce the cost. With CloudFront caching, more objects are served from CloudFront edge locations, which are closer to your users. This reduces the load on your origin server and reduces latency.

Auto Scaling:
AWS Auto Scaling can help you optimize your utilization and cost efficiencies when consuming AWS services, so you only pay for the resources you actually need. When demand drops, AWS Auto Scaling will automatically remove any excess resource capacity, so you avoid overspending. AWS Auto Scaling is free to use and allows you to optimize the costs of your AWS environment.

Choose the proper Instance Type:
By choosing the proper instance type, you can reduce costs. With the same configuration from Intel to AMD, you can reduce costs. Moreover, AWS Gravitation will provide you with better performance at a low cost. For an example: c5.large costs 71.54 USD, c5a.large costs 64.24 USD, saving 7.3 USD.

Choose a proper Region:
From Bangladesh to Mumbai or Singapore, two closet regions Latency is almost the same, but price is a big difference. For example, the price of EC2- c5a.large in Singapore is 64.24 USD, while it is 34.31 USD in Mumbai. Save around $30.

Image description

S3 storage classes and life cycle:
Depending on your different access patterns, use S3 storage classes. S3 storage classes are purpose-built to provide the lowest-cost storage. Use Lifecycle Management so that objects are stored cost-effectively throughout their lifecycle.

Terminate unused EC2 completely:
Sometimes we just stop the unused instance. It is true that a stopped instance won’t generate any costs, but an attached EBS will. So, terminate the idle instance completely.

More are coming.

Top comments (0)