# Day 27 : Configuring a Public VPC with an EC2 Instance for Internet Access

Welcome back to Day 27. In this lab you will learn how to configure a public VPC with an EC2 Instance for Internetaccess.

Create a public VPC named **datacenter-pub-vpc**, and a subnet named **datacenter-pub-subnet** under the same, make sure public IP is being auto assigned to resources under this subnet. Further, create an EC2 instance named **datacenter-pub-ec2** under this VPC with instance type **t2.micro**. Make sure SSH port **22** is open for this instance and accessible over the internet.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566287838/a38a764b-d8d0-4d37-b4ff-46b1c15c640e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566331562/be3a8eac-d043-4008-94ee-74da0c478467.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566407608/e970c6b6-a8ec-4d49-869f-a65deccda056.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566499769/61b254c3-27f7-4d0f-a2f7-5188547fac27.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566516691/8bb15c17-5c97-4d8f-b875-70f262a46913.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566539373/5d555099-dfab-4a10-b32a-0e73a875e955.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566571745/f2ee2b7f-c09d-45a3-9a97-dd34225e3aef.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566601859/e6fc6bc6-9c00-497e-b6d6-7db43e86eb22.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566626313/9f6ec7f9-8556-4084-8107-a9c434e40c4a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566646532/9bc05cef-8c24-4b44-a477-32bd92f7eac9.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566675797/799bb714-a6cf-47a8-9cb0-ed46305a7693.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566699205/7c091341-c5c1-472b-85fa-3c0afc470d52.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566734203/ef70d634-4f95-4810-943a-1f30e821780b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566768809/b12b1254-aac6-4e57-bc85-5e9c61bdf6d1.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566784288/9e52d350-55ed-4d10-a4a2-d001a603a791.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566818591/01f5f0d3-a055-4404-bd01-cea010bbd8d0.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566858601/7df79e24-d245-40a0-962d-f36f64c2c54a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566877232/5a10453d-9ad5-4bae-80cd-15b0524190b1.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766566986819/11dee69c-f1cd-4128-a96f-7e9028b28f65.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567015589/3850d968-d87a-4513-b40e-127bd5287cce.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567046252/79cb10c6-32c8-4fe9-9d56-339f14445461.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567101360/3aa079ca-8e6b-4289-a803-8464356f5e09.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567131168/b03f7651-ea1d-49d3-af4b-2b8d19790a7e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567230118/c27582e6-0c79-4cd6-9dca-6654a60249be.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567247415/17bc5dc4-5109-4efe-b3d0-a1c9fefe001a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567292192/afc0227c-b8ff-41cf-95bc-267e07161ee9.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567345705/2723f037-b4d5-48dc-90c9-b1e66f2d41fe.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567383349/0da31fb4-27c9-43f8-b4cd-ddf06611c106.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567512198/7ed82df9-fc83-4880-bb7c-26a4172573e6.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567526314/d0dc2b34-632c-4a23-9738-2709d20470fa.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567555473/b50153a5-595c-4941-a1f2-e680d2f5abac.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567697268/bc44b280-a61a-4760-939f-9962e58fcb2d.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1766567720473/c9d113dd-10cd-4c8b-9a43-e84b8c2dd9ec.png align="center")

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