mirror of
https://github.com/certd/certd.git
synced 2026-04-05 07:20:56 +08:00
chore: 修复aws route53 删除record失败的问题
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user