---
title: "Discussion on \"AWS cost optimization\" | Hashnode"
description: "Discussion on \"AWS cost optimization\". Step 1 : Firstly we have to create aws ec2 instance\n\n\nStep 2 : In this step we create a snapshot\n\nThen click on create snapshot\n\nStep 3 : Create a lambda function\n\n\nStep 4 : Then you can use below code\nimport boto3\n\ndef lambda_handler(event, context)..."
url: "https://hashnode.com/posts/aws-cost-optimization/65236815f0637aad258983a0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [AWS cost optimization](https://cloud-devops-blog.hashnode.dev/aws-cost-optimization?utm_source=hashnode&utm_medium=feed)

Step 1 : Firstly we have to create aws ec2 instance Step 2 : In this step we create a snapshot Then click on create snapshot Step 3 : Create a lambda function Step 4 : Then you can use below code import boto3 def lambda\_handler(event, context)...

Oct 9, 2023 · 4 min read · cloud-devops-blog.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#cost-optimisation](https://hashnode.com/tag/cost-optimisation)
-   [#cost-to-develop-an-app](https://hashnode.com/tag/cost-to-develop-an-app)
-   [#ec2-instance](https://hashnode.com/tag/ec2-instance)
-   [#snapshot-testing](https://hashnode.com/tag/snapshot-testing)

## Written by

[khalid kifayat](https://hashnode.com/@khalid786)

@khalid786

  
[View profile](https://hashnode.com/@khalid786)

DevOps Engineer

Skillful Tech Engineer having working experience with creating &amp; managing AI-NLP-Chatbots and Cloud computing Infrastructure deployment, testing, monitoring, scripting, automation, Version control, documentation &amp; system's support.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
