mirror of
https://github.com/certd/certd.git
synced 2026-04-25 13:17:25 +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
|
// const { Route53Client, ChangeResourceRecordSetsCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
|
||||||
// import type { Route53ClientConfig } from "@aws-sdk/client-route-53";
|
// import type { Route53ClientConfig } from "@aws-sdk/client-route-53";
|
||||||
const client = await this.route53ClientGet();
|
const client = await this.route53ClientGet();
|
||||||
|
|
||||||
const appendBody:any = {}
|
|
||||||
if(req.action === 'CREATE'){
|
|
||||||
appendBody.TTL = 60;
|
|
||||||
}
|
|
||||||
const input = { // ChangeResourceRecordSetsRequest
|
const input = { // ChangeResourceRecordSetsRequest
|
||||||
HostedZoneId: req.hostedZoneId, // required
|
HostedZoneId: req.hostedZoneId, // required
|
||||||
ChangeBatch: { // ChangeBatch
|
ChangeBatch: { // ChangeBatch
|
||||||
@@ -102,7 +97,7 @@ export class AwsClient {
|
|||||||
Value: `"${req.value}"`, // required
|
Value: `"${req.value}"`, // required
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
...appendBody
|
TTL: 60,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user