Logo

dev-resources.site

for different kinds of informations.

How to save cost in non-prod AWS environment

Published at
7/30/2023
Categories
aws
costoptimization
cloud
cloudcost
Author
sagart
Author
6 person written this
sagart
open
How to save cost in non-prod AWS environment

If you are in an organisation whose non-prod AWS environment costs are high and want to cut short on the cost without compromising on the development and deployment velocity, here is a short checklist/quick wins of actions that you can do in order to save money. Of Course you need to check whether the action has an impact on your environment or any process that they follow.

Use instance scheduler: There is this great solution on the AWS solution library. I highly recommend this. It stops and starts EC2 instances and RDS on a defined schedule. Use this to stop the environment when not in use. Instance Scheduler

Spot instances: If your application is stateless we can use spot instances or spot fargate in the environment to reduce the cost.

Single NAT gateway per VPC: NAT Gateways are costly and many IaaC by default create one NAT gateway per AZ which increases the costs. If it does not impact the working, you can create a single NAT gateway per VPC for your non prod environment. This will bring down a considerable amount of cost.

RDS IOPS instead of Storage: If your RDS storage requires IOPS, check if increasing the disk size meets your requirements. If your non-prod environment has reduced load, creating a RDS of 400GB is a great deal rather than creating a 100GB RDS with 1000 IOPS. (~$46 compared to ~$112)

Clean Up scripts: There should be an automation script which regularly detects and deletes unused AMI, EBS volumes, RDS snapshot etc. Storage Lifecycle manager is a great option to handle this. snapshot lifecycle

Schedule Scaling: If we are clear on the time when the environment usage will be high, We can increase or decrease the number of EC2/containers in the environment accordingly. S3 One Zone IA / S3 Intelligent Tier / LifeCycle Policy: This should not be needed always, S3 is dirt cheap, But if objects are accumulated over time, are huge, non-critical and rarely accessed, we can use these solutions accordingly.

Reseller: I do not know about other countries, But in India If we go for offline billing via a reseller of AWS we get a flat discount of 10% on the total monthly bill (Of course you need to commit a monthly amount and this may differ from customer to customer)

Reservation: If your future load is planned and have a clear requirement you can go for a savings plan or reservations.

To summarise, the above actions can help in reducing your non-prod AWS environment bills. Let me know what you think about it. Did any of these give you a TIL moment? Do you have something that is not listed here? Do you want me to cover more services? Do let me know.

costoptimization Article's
30 articles in total
Favicon
Cost Optimization Strategies for AWS: Leveraging Spot Instances, Savings Plans, and Cost Explorer
Favicon
Optimize Cloud Expenses with CloudCADI
Favicon
FinOps Consulting Services for Cloud Cost Optimization
Favicon
Automating Cost Optimization Insights with AWS SAM: A Well-Architected Framework Solution
Favicon
S3 Lifecycle or Intelligent-Tiering? Object Size Always Matters
Favicon
Azure CAF for Cost Optimization: Reducing Cloud Spend Without Compromising Performance
Favicon
Unlocking AWS Cost Savings: Unique Optimization Tips
Favicon
SaaS Cost Optimization on AWS: Effective Strategies for Managing Cloud Expenses
Favicon
15 Cut Points to Save AWS Bills
Favicon
Optimizing Software Licensing Costs with AWS License Manager
Favicon
Open Source Tools for AWS Cost Optimization: The Ultimate Guide
Favicon
Snowflake Advanced Cost Control: Ingest Optimizations
Favicon
AWS Cloud Cost Optimization - Identifying Stale Resources
Favicon
AWS Cost Optimization: Periodic Deletion of ECR Container Images
Favicon
Are You Wasting Money in Your Software Development Project?
Favicon
Mastering AWS Instance Pricing: A Guide to Choosing the Right Plan for Your Needs
Favicon
AWS announces a 7-day window to return Savings Plans
Favicon
Saving 90% of our AWS Cost using ECR Lifecycle Rules
Favicon
Maximizing SPOT Instance Efficiency Strategies
Favicon
Revolutionizing Assessments: A Dive into AWS Well-Architected Tool's Newest Feature โ€“ โ€œReview Templatesโ€
Favicon
Organization's EKS Clusters Discovery
Favicon
Architecting for Cost Savings on BigQuery
Favicon
Cost optimisation on AWS: Navigating NAT Charges with Private ECS Tasks on Fargate
Favicon
Resizing images on-the-fly
Favicon
AWS Cloud Cost Dilemma: Savings Plans vs. RIs - Your Definitive Guide
Favicon
Cloud Cost Control: Exploring 10+ Tools for AWS Spending Optimization
Favicon
With AWS Savings Plans - Next stop is AWS Budgets
Favicon
How to save cost in non-prod AWS environment
Favicon
Optimize Your AWS Costs - Get 60% Savings Now
Favicon
Maximizing Cost Optimization with Well-Architected Programs on AWS

Featured ones: