Files
alfred-preferences/Alfred.alfredpreferences/snippets/Prompt 工具箱/EC2 私有主機名稱轉換 [41074303-F0B1-4982-84E6-12F9E9EAF0D6].json
2026-03-26 09:22:38 +08:00

8 lines
918 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"alfredsnippet" : {
"snippet" : "在 AWS EC2 中,預設的私有 DNS 主機名稱hostname應遵循以下具體格式將 IPv4 位址轉換為主機名稱,輸出格式為:\n\n```\nip-<octet1>-<octet2>-<octet3>-<octet4>\n```\n\n具體要求如下\n\n1. 主機名稱必須以 `ip-` 為前綴。\n2. IPv4 位址的每個數值段octet需用十進制形式表示並用連字號 `-` 分隔。\n3. 主機名稱必須全部小寫,只能包含字母、數字和連字號,且不得以連字號開頭或結尾。\n4. 主機名稱的總長度不得超過 63 個字元。\n\n請僅輸出結果範例不要添加任何額外的說明或內容\n\n若實例的私有 IPv4 位址為 `10.0.5.23`,則對應的主機名稱應為:\n\n```\nip-10-0-5-23\n```",
"uid" : "41074303-F0B1-4982-84E6-12F9E9EAF0D6",
"name" : "EC2 私有主機名稱轉換",
"keyword" : "aws.ec2host"
}
}