DEV Community 👩‍💻👨‍💻

Discussion on: How to deploy a nextjs app to AWS EC2 with Github action

thangphan37 profile image
Phan Công Thắng Author

I think You can restrict what IP can access to the resources that you have deployed to EC2!

Thread Thread
ptejada profile image
Pablo Tejada

I mean EC2 is not serverless for sure. You can also create EC2 snapshots.

I am really not sure the point you are trying to make here. If you want whitelist access to your serverless service you can do that as well. It will definitely not look like whitelisting access to an EC2, and they should not look alike because they are two different things.