大网数据广告活动
服务器运维问答

How to setup domain for Application Load Balancer with AWS Auto Scaling

· 52CE 我爱测

I have an EC2 instance running my Web Application with and Elastic IP. I use CloudFlare's basic CDN and GoDaddy is the domain registrar. So, the nameservers at Godaddy are those of CloudFlare and the IP at cloudflare is the Elast…

问题原文

原帖链接 · gentrobot · CC BY-SA 3.0

I have an EC2 instance running my Web Application with and Elastic IP. I use CloudFlare's basic CDN and GoDaddy is the domain registrar. So, the nameservers at Godaddy are those of CloudFlare and the IP at cloudflare is the Elastic IP assigned to the instance.

I have just finished adding an Application Load Balancer. The steps that I took, were: 1. Created a Load Balancer 2. Created a Launch Configuration 3. Created an Auto Scaling Group with Minimum 2 and Maximum 100 instances, with alarms to increase and decrease when CPU average utilization increases/decreases. 4. I DID NOT add any instance while creating the Load Balancer 5. I had created an AMI for my EC2 instance and used that while setting up the Launch Configuration.

I can access the Web Application from the DNS of the Load Balancer. How do I tell the domain to use the Load Balancer and instances started by it? I do not use Route53 and have configured the Apache VirtualHost manually.

已采纳解答

原帖链接 · Tim · CC BY-SA 3.0

Ideally you want to use Route 53 and add an alias record. It'll cost you $0.50 per month plus $0.40 per million DNS queries. Maybe $1 a month, probably less.

However CloudFlare have an article on how to use ELB with their DNS. You have to do it this way because you need to use a CNAME to point at the ELB domain name, as ELB doesn't have a fixed IP address, and you can't typically put a CNAME at the domain apex.

I found this with the Google search "use elb with cloudflare dns", so you can probably find other resources if required.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。