DEV Community

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

Collapse
alejomartinez8 profile image
Alejandro Martinez

I have had that question, what's the difference to deploy on EC2 and Amplify?, in my job they have it on EC2, but I found many docs with Amplify. Thanks. Greate Article!

Thread Thread
thangphan37 profile image
Phan Công Thắng Author

I think You can secure, compute your app with EC2. But using Amplify you can't do that. Amplify can be useful in case You want to deploy apps quickly.

Thread Thread
ptejada profile image
Pablo Tejada

What do you mean by secure?

Thread Thread
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.