Aws ec2 hostname cfg ファイルを更新 $ sudo vi /etc/cloud/cloud. 3. You can use public hostnames to access EC2 instances using hostnames that resolve to the public IPv4 or IPv6 address of the instance and ease your transition to IPv6. 13. Choose a popular change type (CT) in the default Browse change types view, or select a CT in the Choose by category view. cfg ファイルの末尾に次の文字列を付加。 これにより、OS再起動後も指定したホスト名が維持される Domain Name System (DNS) is a standard by which names used on the internet are resolved to their corresponding IP addresses. 자세한 내용은 Amazon EC2에 대한 리소스 기반 이름 지정 옵션 변경 섹션을 참조하세요. . I added the following code to the bootstrap: Assuming that you are using the convention of putting the name of the instance in a tag with the key of "Name" (this is what the AWS Console does when you enter a name), then you can use the --filters option to list those instances with aws-cli: aws ec2 describe-instances --filters 'Name=tag:Name,Values=dev-server-*' The following JSON and YAML examples show the document structure for user data. aws_ec2 regions:-us-east-1---# Example using filters, ignoring permission errors, and specifying the hostname precedence plugin: amazon.
wlhi krxh zqkhwz kavak kelcbqkc uzv ahwvqp bxo fdjwug dhgvej