# Day 20 : Create IAM Role for EC2 with Policy Attachment

Welcome back to Day 20. In this lab, you will learn how to create an IAM role for EC2 with a policy attached. The IAM role name must be **imarole\_ravi**. The entity type should be **AWS Service**, and the use case must be **EC2**.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617163274/96de1f35-182a-4327-8f69-bc06b06806ca.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617195560/68d0af84-f9be-43dc-9319-59b4ce519225.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617240096/996c628c-30db-4b86-a577-9b5e8a05dfa6.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617628910/dbd21e1a-a54b-424a-92e7-813813482b09.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617807349/89d55c40-2573-46b3-9295-daab7eb1d7cb.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617659157/f7c2d1b3-26d8-44b5-8c78-1302a62b73a5.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617671718/286f42f6-774b-47f9-9351-96e1e0bd87c5.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617703192/953d9d50-76a4-4aa3-9431-4e319e2fcb2e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617728555/f3e7c6a6-c2b8-445a-be25-f3de5e79efb9.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617741852/c17debba-836d-48bd-a63c-39dab745fe92.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617770765/b3808845-1213-4a7b-92a1-3dc5226f7292.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617824999/a9acadc9-76db-43c3-9286-26b46ee8dc6a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765617838572/48ad6c8c-befc-4160-a111-7ae28b4cf2a2.png align="center")

Congratulations you did it. It looks good. This lab was successfully completed without any errors. See you in day 21. If you have any issues please let me know I will be happy to assist you. Stay tuned and learn together. If you find my article useful, please kindly like and share it.
