By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Resource based hostname not available when launching instance

0

I want to use resource-based naming for a new EC2 instance. When launching the instance, "Hostname type" is set to "IP name" and cannot be changed.

Hostname type configuration

From https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html

The EC2 instance guest OS hostname type depends on the subnet settings:

  • If the instance is launched into an IPv4-only subnet, you can select either IP name or resource name.
  • If the instance is launched into a dual-stack (IPv4+IPv6) subnet, you can select either IP name or resource name.
  • If the instance is launched into an IPv6-only subnet, resource name is used automatically.

My VPC is dual-stack:

VPC and subnet settings

Can anyone explain why this is?

asked 12 days ago43 views
1 Answer
1
Accepted Answer

Hello.

When selecting the subnet when starting EC2, you can select the host name by selecting the exact subnet ID to start with instead of "No preference".
a

a

profile picture
EXPERT
answered 12 days ago
profile picture
EXPERT
reviewed 11 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions