Fix a missing link (#65)

This commit is contained in:
Yoshiyuki Mineo authored and GitHub committed 2025-05-01 19:25:49 +09:00
1 parent 410eb250e3
commit 8d195df6f7
1 file changed
+2 -2
+2 -2
View File
@@ -83,8 +83,8 @@ the function AmazonEC2MachineID that returns the lower 16-bit private IP address
It also works correctly on Docker It also works correctly on Docker
by retrieving [instance metadata](http://docs.aws.amazon.com/en_us/AWSEC2/latest/UserGuide/ec2-instance-metadata.html). by retrieving [instance metadata](http://docs.aws.amazon.com/en_us/AWSEC2/latest/UserGuide/ec2-instance-metadata.html).
[AWS VPC](http://docs.aws.amazon.com/en_us/AmazonVPC/latest/UserGuide/VPC_Subnets.html) [AWS IPv4 VPC](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html)
is assigned a single CIDR with a netmask between /28 and /16. is usually assigned a single CIDR with a netmask between /28 and /16.
So if each EC2 instance has a unique private IP address in AWS VPC, So if each EC2 instance has a unique private IP address in AWS VPC,
the lower 16 bits of the address is also unique. the lower 16 bits of the address is also unique.
In this common case, you can use AmazonEC2MachineID as Settings.MachineID. In this common case, you can use AmazonEC2MachineID as Settings.MachineID.