搜索

PythonReactSEOPDF
GitHub Skill

aws-route53

Manage AWS Route 53 DNS zones and records.

ThinkfleetAI☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

AWS Route 53

Manage DNS hosted zones and records.

List hosted zones

aws route53 list-hosted-zones --query 'HostedZones[].{Id:Id,Name:Name,Records:ResourceRecordSetCount,Private:Config.PrivateZone}' --output table

List records

aws route53 list-resource-record-sets --hosted-zone-id Z1234ABCDEF \
  --query 'ResourceRecordSets[].{Name:Name,Type:Type,TTL:TTL,Values:ResourceRecords[].Value}' | jq .

Create/update A record

aws route53 change-resource-record-sets --hosted-zone-id Z1234ABCDEF \
  --change-batch '{
    "Changes": [{
      "Action": "UPSERT",
      "ResourceRecordSet": {
        "Name": "app.example.com",
        "Type": "A",
        "TTL": 300,
        "ResourceRecords": [{"Value": "1.2.3.4"}]
      }
    }]
  }' | jq '{ChangeId: .ChangeInfo.Id, Status: .ChangeInfo.Status}'

Create CNAME record

aws route53 change-resource-record-sets --hosted-zone-id Z1234ABCDEF \
  --change-batch '{
    "Changes": [{
      "Action": "UPSERT",
      "ResourceRecordSet": {
        "Name": "www.example.com",
        "Type": "CNAME",
        "TTL": 300,
        "ResourceRecords": [{"Value": "app.example.com"}]
      }
    }]
  }' | jq '{ChangeId: .ChangeInfo.Id, Status: .ChangeInfo.Status}'

Check change status

aws route53 get-change --id /change/C1234567890 | jq '{Status: .ChangeInfo.Status}'

Notes

  • DNS changes are eventual; may take 60s to propagate.
  • Use UPSERT to create or update a record in one call.
  • Hosted zone IDs start with Z or /hostedzone/Z.
  • Always confirm before modifying DNS records.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!