- Newest
- Most votes
- Most comments
Hello.
First, install and set up a web server (IIS, etc.) on EC2 Windows.
https://learn.microsoft.com/en-us/iis/get-started/getting-started-with-iis/create-a-web-site
https://medium.com/@jkenny1930/host-website-on-windows-ec2-instance-using-iis-56231b6dbdcf
Next, create an ALB.
When creating the ALB, please configure the inbound rules of the EC2 security group to allow port 80.
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancer-getting-started.html
I think the configuration described in the documentation below is close to what you want to do.
In your case, you want to keep it on the free tier, so I think you should use only one EC2 and place it in a public subnet so as not to use NAT Gateway.
If you use an EC2 public IPv4 address, you can use the free tier for 750 hours per month for 12 months.
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/migrate-windows-ssl-certificates-to-an-application-load-balancer-using-acm.html
https://aws.amazon.com/about-aws/whats-new/2024/02/aws-free-tier-750-hours-free-public-ipv4-addresses/?nc1=h_ls
Also, if your website only hosts static content such as HTML, you may want to configure it using CloudFront and S3.
https://repost.aws/ja/knowledge-center/cloudfront-serve-static-website
Relevant content
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago