# Day 37: Managing EC2 Access with S3 Role-based Permissions

Welcome to Day 37. Today, we will learn how to create a private S3 bucket and upload data from an EC2 instance using S3 role-based permissions. An Instance named **xfusion-ec2** alreday exists. You just need to create a private S3 bucket and the related IAM role and policy. After creating the IAM role, please attach it to the EC2 instance.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767355758419/70e7e0c1-4cd5-4942-a2d1-aef64ed5db49.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767355795312/a5cecc64-97cc-475f-a3d0-e9cfe31d3b75.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767355881266/2ea37a02-a7e4-4f27-a776-34d47fe5cb32.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767355937209/16a18578-922a-4955-a49e-f5d2d6c5f6fb.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356024445/cd6c77a4-60a5-4c87-b8f3-d03723c1a953.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356092591/6da6b6c1-1e9e-4a2d-bc43-8974f22167ca.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356076680/06f039f6-8d16-4697-843e-903f3f05ef50.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356136973/f5bf7ae9-65ba-4c80-b2d9-da63e9d4367f.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356187406/10660a15-d980-4bcf-bcaa-fd5d18502750.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356212830/502e5918-660e-448d-815d-d8fd0efe1299.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356234087/e97fc5b1-7589-432c-b684-e72b34ac8b7d.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356253499/36c1393f-2abc-4629-901f-c7525db20918.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356269848/ec7ff033-fec4-4875-b214-d344a7a5c5c9.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356319856/ff77f11d-4263-4fe6-ad81-a86c76ffabc8.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356469677/296d0e38-4497-4f81-bf5c-25fe13f23184.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767357784859/53d24e23-1d50-4a75-b44a-26f4a716bdb3.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356758401/d223131d-19fe-4d4d-87da-4dd42b055e9b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356779661/6ad05687-1b67-4136-b735-a9bd86fa6d73.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356351384/11025dd3-5009-45ef-a19b-a145538f9817.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356403574/e9158817-7342-4a38-b847-e35654afd4c1.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356813625/f8f9990a-85d5-4e55-af5b-a0425a159143.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356841061/67aa7859-9dd1-497c-b9c1-25c87c27853e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356928213/359e45eb-a7f4-4efc-94be-5a7ecc09798a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356942098/dcbadfb5-4eb2-49eb-be37-280d9a4ac4d9.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767356955678/51d5fac1-0263-4ca1-86fe-4791f84cb4a8.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767357538437/15a007ff-d2f0-4d38-84c8-a4e1a1819433.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767357421726/edd08f63-1118-438a-949b-a4b8c0ba9b29.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767357586346/b7aaee78-0a9a-4d35-a036-47966602c100.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767357605460/6fb6486d-e81b-46bf-acc5-45902da6740c.png align="center")

Congratulations you did it. It looks good. This lab was successfully completed without any errors. See you in day 38. 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.
