clean.sh
977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 创建 change-batch.json 文件
cat > change-batch.json << 'EOF'
{
"Comment": "Delete ACM validation records for Terraform",
"Changes": [
{
"Action": "DELETE",
"ResourceRecordSet": {
"Name": "_38dbe569f4f71fcfaf384183c7f531ba.mpc.run.place.",
"Type": "CNAME",
"TTL": 60,
"ResourceRecords": [
{
"Value": "_68e30da85fcd913de932f3cc80b130c4.xlfgrmvvlj.acm-validations.aws."
}
]
}
},
{
"Action": "DELETE",
"ResourceRecordSet": {
"Name": "_9d8662df0e8208339433e95f42819b27.kibana.mpc.run.place.",
"Type": "CNAME",
"TTL": 60,
"ResourceRecords": [
{
"Value": "_bd5632db36a7c5fd19ff3225e050ddcc.xlfgrmvvlj.acm-validations.aws."
}
]
}
}
]
}
EOF
# 执行删除
aws route53 change-resource-record-sets --hosted-zone-id Z0077830G2OGJLRYHVBK --change-batch file://change-batch.json