ELB, CloudFront, and S3 respond to each request with one or more IP addresses for the environment and change their IP addresses frequently so you cannot directly add the IP address. The only option is to add them as a CNAME record, but CloudFront allows you to add ELB, CloudFront, or S3 as an endpoint while using an Alias record.
Creating an Alias record set
How to do it...
Steps to create an Alias record:
- Select your hosted zone.
- Click on Create Record Set to create a new record.
- Provide the following values:
- Name: We will keep it blank, as we want to resolve test.packttest.com.
- Type: Select A - IPv4 address.
DNS: Resource Record Type
-
- Alias: select Yes.
- Choose the Alias target from the following:
- S3 Endpoint
- ELB...