A possibly cheaper option might be to create an Amazon Lightsail container service starting at $7/month. It is also easier to manage and has predictable pricing.
Choosing the appropriate compute is challenging when you have many options from AWS to choose from. Personally I only want to pay for the milliseconds of usage rather than paying for compute that is sitting idle. Have you profiled your workload to see how idle the EC2 option really is? Is the EC2 appropriately rightsized? Have you considered AWS Compute Optimizer which recommends optimal AWS resources for your workloads to reduce costs and improve performance?
Looking at other technologies then Lightsail, Serverless or Fargate may be an option. When constraints are smaller than the smallest EC2 instance, Fargate’s flexibility of rightsizing provides better cost. Lightsail out of the box maybe cheaper but depending on the frequency of your single page executions Lambda starts saving money over EC2 once it runs half or less of the time. Lambda saves money over Fargate once it runs a quarter or less of the time.
There are a few options for you.
If you have a static website, you can host that in S3: https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html.
There are more "complete" solutions for static hosting such as AWS Amplify that combines S3 and CloudFront to manage this for you, and the cost would depend on your usage/content: https://aws.amazon.com/amplify/pricing/?nc=sn&loc=4.
As for dynamic websites (and static as well) - you can look at other container services:
- Lightsail (as others have mentioned)
- EC2 (Which you are using). You could try using spot instances to reduce the overall cost of running containers if you want to manage EC2 on your own.
- Fargate, works with ECS and Kubernetes (https://aws.amazon.com/fargate/)
For more information on containers and different services/options: https://aws.amazon.com/containers/
There are different reasons and preferences for the above - such as do you want/need to manage the EC2 instances on your own or do you want AWS to handle more of the work.
Is it possible to have interactive multiple page HITs in MTurk?Accepted Answerasked 3 years ago
How can EC2 maintain IP addresses in a multi-AZ failover situation?Accepted Answerasked 2 years ago
single page websiteasked 4 months ago
AWS Batch - Non Docker Approachasked 3 years ago
Load balance for Cloudfront distribution with 2 origins in different regionsAccepted Answerasked 10 months ago
CDN for EC2 instanceasked a month ago
AppStream 2.0 - Nice DCV - can a user delegate control to another user connected to the same streamasked 4 months ago
Using Lightsail with Cloudfrontasked 2 years ago
Using EC2 vs Workspaceasked a year ago
Single Logout using SAML authentication optionasked 2 years ago