aws-sdk-go icon indicating copy to clipboard operation
aws-sdk-go copied to clipboard

Incorrect documentation of PrivateDnsHostnameTypeOnLaunch

Open johngmyers opened this issue 3 years ago • 2 comments

Describe the issue with documentation

The documentation of ModifySubnetAttribyteInput.PrivateDnsHostnameTypeOnLaunch incorrectly states that IPv4 only subnets cannot use instance ID based hostnames.

To Reproduce (observed behavior)

Modify the PrivateDnsHostnameTypeOnLaunch attribute of a subnet without an IPv6 address to the value ec2.HostnameTypeResourceName. Create an instance in the subnet and examine its private DNS hostname.

Expected behavior

I expect the documentation to state that this combination works, especially since it does work.

Screenshots

Additional context

johngmyers avatar Dec 25 '21 01:12 johngmyers

Hi @johngmyers , Can you point me to the place where the documentation is wrong?

KaibaLopez avatar Jan 11 '22 20:01 KaibaLopez

@KaibaLopez in service/ec2/api.go around line 116742, the second sentence is incorrect.:

	// The type of hostnames to assign to instances in the subnet at launch. For
	// IPv4 only subnets, an instance DNS name must be based on the instance IPv4
	// address. For IPv6 only subnets, an instance DNS name must be based on the
	// instance ID. For dual-stack subnets, you can specify whether DNS names use
	// the instance IPv4 address or the instance ID.
	PrivateDnsHostnameTypeOnLaunch *string `type:"string" enum:"HostnameType"`

johngmyers avatar Jan 11 '22 20:01 johngmyers

We have noticed this issue has not received attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.

github-actions[bot] avatar Jan 12 '23 00:01 github-actions[bot]