---
title: "Discussion on \"What Is IMDSv2 in AWS? IMDSv1 vs IMDSv2 Explained with Examples\" | Hashnode"
description: "Discussion on \"What Is IMDSv2 in AWS? IMDSv1 vs IMDSv2 Explained with Examples\". Understand how EC2 Instance Metadata Service works, why IMDSv2 was introduced, and how it protects against SSRF attacks."
url: "https://hashnode.com/posts/what-is-imdsv2-in-aws-imdsv1-vs-imdsv2-explained-with-examples/69e31f36fd22b8ad62bbc43a"
---

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

Discussion

# [What Is IMDSv2 in AWS? IMDSv1 vs IMDSv2 Explained with Examples](https://blog.khansab.in/what-is-imdsv2-in-aws-imdsv1-vs-imdsv2-explained-with-examples?utm_source=hashnode&utm_medium=feed)

Understand how EC2 Instance Metadata Service works, why IMDSv2 was introduced, and how it protects against SSRF attacks.

Apr 18 · 5 min read · blog.khansab.in  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#ec2](https://hashnode.com/tag/ec2)
-   [#cloud-security](https://hashnode.com/tag/cloud-security)
-   [#imdsv2](https://hashnode.com/tag/imdsv2)
-   [#devops](https://hashnode.com/tag/devops)
-   [#imdsv1](https://hashnode.com/tag/imdsv1)
-   [#imds](https://hashnode.com/tag/imds)
-   [#instance-metadata-service](https://hashnode.com/tag/instance-metadata-service)

## Written by

[Mohsin Khansab](https://hashnode.com/@mohsinkhansab)

@mohsinkhansab · India

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

Software Engineer

Software engineer skilled in building web applications and REST APIs using Java, ReactJS, and Spring Boot. Experienced in agile teams, performance optimization, and code quality. Passionate about engineering and building scalable systems.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
