---
title: "Discussion on \"I Built an EC2 Instance and Deliberately Locked Myself Out\" | Hashnode"
description: "Discussion on \"I Built an EC2 Instance and Deliberately Locked Myself Out\". A hands-on AWS EC2 hardening walkthrough: scoping SSH to a single IP, enforcing IMDSv2 to block SSRF credential theft, and tearing it all down."
url: "https://hashnode.com/posts/i-built-an-ec2-instance-and-deliberately-locked-myself-out/6ab50676b4538d610537c91a"
---

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

Discussion

# [I Built an EC2 Instance and Deliberately Locked Myself Out](https://mirack.hashnode.dev/i-built-an-ec2-instance-and-deliberately-locked-myself-out?utm_source=hashnode&utm_medium=feed)

A hands-on AWS EC2 hardening walkthrough: scoping SSH to a single IP, enforcing IMDSv2 to block SSRF credential theft, and tearing it all down.

Nov 12, 2025 · 9 min read · mirack.hashnode.dev  
Read the article

-   [#cloud-security](https://hashnode.com/tag/cloud-security)
-   [#cloud-technologies](https://hashnode.com/tag/cloud-technologies)

## Written by

[Nwadiaro Miracle](https://hashnode.com/@mirack)

@mirack

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

Software developer || Technical Writer

A software developer and technical writer passionate about technology, communication, and bridging the gap between technical complexity and user-friendly experiences. I create user-friendly content that simplifies complex concepts for audiences of varying technical backgrounds.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
