chore: 修复aws route53 删除record失败的问题

This commit is contained in:
xiaojunnuo
2025-12-26 09:29:29 +08:00
parent cbb8319cfa
commit 74865d53f8

View File

@@ -83,11 +83,6 @@ export class AwsClient {
// const { Route53Client, ChangeResourceRecordSetsCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
// import type { Route53ClientConfig } from "@aws-sdk/client-route-53";
const client = await this.route53ClientGet();
const appendBody:any = {}
if(req.action === 'CREATE'){
appendBody.TTL = 60;
}
const input = { // ChangeResourceRecordSetsRequest
HostedZoneId: req.hostedZoneId, // required
ChangeBatch: { // ChangeBatch
@@ -102,7 +97,7 @@ export class AwsClient {
Value: `"${req.value}"`, // required
},
],
...appendBody
TTL: 60,
},
},
],