aws-route53
Manage AWS Route 53 DNS zones and records.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
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
UPSERTto create or update a record in one call. - Hosted zone IDs start with
Zor/hostedzone/Z. - Always confirm before modifying DNS records.
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-03-11
- Mise à jour de l’index
- 2026-03-11
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!