Stop and start services to reduce billing.


Hi, I have a AWS lab account that resembles my prod and mainly used to test any changes that will be done to prod. It has all the services running same as in my Prod so it generates a huge bill every month . Is there a way to stop and start the account or services only when I need to test anything without losing any data so it reduces my billing cost. I do not want to delete any services. Thank you in advance.

1개 답변

Hi - To reduce AWS billing costs for a lab account mirroring a production environment, without losing data or deleting services, consider automating the start/stop of EC2 instances using AWS Lambda and CloudWatch Events, utilizing Auto Scaling Groups to scale down services to zero when not in use, and leveraging the stop/start feature of AWS RDS for databases. For containerized workloads on ECS or EKS, scale down tasks or pods to zero and utilize AWS Lambda for cost-effective, event-driven components. Implement data backup strategies with EBS snapshots and S3 Lifecycle policies for cost-efficient storage. Use infrastructure as code tools like AWS CloudFormation or Terraform for environment management, enabling easy teardown and rebuild while managing data persistence. Monitor spending with AWS Budgets and CloudWatch Alarms. Thanks

profile pictureAWS
답변함 3달 전
profile picture
검토됨 2달 전
  • You can automate this with step, lambda functions on an event bridge schedule

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠