@go-to-k/cdkd 0.109.0 → 0.109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +10 -11
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -18557,7 +18557,7 @@ var RDSProvider = class {
|
|
|
18557
18557
|
//#endregion
|
|
18558
18558
|
//#region src/provisioning/providers/rds-dbproxy-provider.ts
|
|
18559
18559
|
const POLL_INTERVAL_MS$1 = 5e3;
|
|
18560
|
-
const POLL_TIMEOUT_MS$1 =
|
|
18560
|
+
const POLL_TIMEOUT_MS$1 = 1800 * 1e3;
|
|
18561
18561
|
/**
|
|
18562
18562
|
* AWS RDS DBProxy Provider
|
|
18563
18563
|
*
|
|
@@ -18702,8 +18702,8 @@ var RDSDBProxyProvider = class {
|
|
|
18702
18702
|
throw this.wrapError(error, "UPDATE", resourceType, logicalId, physicalId);
|
|
18703
18703
|
}
|
|
18704
18704
|
}
|
|
18705
|
-
await this.applyTagDiff(physicalId, previousProperties["Tags"], properties["Tags"], resourceType, logicalId);
|
|
18706
18705
|
this.invalidateAttributeCache(physicalId);
|
|
18706
|
+
await this.applyTagDiff(physicalId, previousProperties["Tags"], properties["Tags"], resourceType, logicalId);
|
|
18707
18707
|
return {
|
|
18708
18708
|
physicalId,
|
|
18709
18709
|
wasReplaced: false
|
|
@@ -18825,6 +18825,9 @@ var RDSDBProxyProvider = class {
|
|
|
18825
18825
|
return result;
|
|
18826
18826
|
}
|
|
18827
18827
|
async applyTagDiff(physicalId, oldTags, newTags, resourceType, logicalId) {
|
|
18828
|
+
const oldMap = this.toTagMap(oldTags);
|
|
18829
|
+
const newMap = this.toTagMap(newTags);
|
|
18830
|
+
if (oldMap.size === newMap.size && [...oldMap.keys()].every((k) => newMap.has(k)) && [...oldMap.entries()].every(([k, v]) => newMap.get(k) === v)) return;
|
|
18828
18831
|
const client = this.getClient();
|
|
18829
18832
|
const arnCacheKey = `${physicalId}:DBProxyArn`;
|
|
18830
18833
|
let arn = this.attributeCache.get(arnCacheKey);
|
|
@@ -18836,8 +18839,6 @@ var RDSDBProxyProvider = class {
|
|
|
18836
18839
|
return;
|
|
18837
18840
|
}
|
|
18838
18841
|
if (!arn) return;
|
|
18839
|
-
const oldMap = this.toTagMap(oldTags);
|
|
18840
|
-
const newMap = this.toTagMap(newTags);
|
|
18841
18842
|
const toRemove = [];
|
|
18842
18843
|
const toAdd = [];
|
|
18843
18844
|
for (const k of oldMap.keys()) if (!newMap.has(k)) toRemove.push(k);
|
|
@@ -18911,7 +18912,7 @@ var RDSDBProxyProvider = class {
|
|
|
18911
18912
|
//#endregion
|
|
18912
18913
|
//#region src/provisioning/providers/rds-dbproxy-endpoint-provider.ts
|
|
18913
18914
|
const POLL_INTERVAL_MS = 5e3;
|
|
18914
|
-
const POLL_TIMEOUT_MS =
|
|
18915
|
+
const POLL_TIMEOUT_MS = 1800 * 1e3;
|
|
18915
18916
|
/**
|
|
18916
18917
|
* AWS RDS DBProxyEndpoint Provider
|
|
18917
18918
|
*
|
|
@@ -18993,11 +18994,9 @@ var RDSDBProxyEndpointProvider = class {
|
|
|
18993
18994
|
let status;
|
|
18994
18995
|
while (Date.now() < deadline) {
|
|
18995
18996
|
try {
|
|
18996
|
-
const ep = (await client.send(new DescribeDBProxyEndpointsCommand({
|
|
18997
|
-
DBProxyName: dbProxyName,
|
|
18998
|
-
DBProxyEndpointName: dbProxyEndpointName
|
|
18999
|
-
}))).DBProxyEndpoints?.[0];
|
|
18997
|
+
const ep = (await client.send(new DescribeDBProxyEndpointsCommand({ DBProxyEndpointName: dbProxyEndpointName }))).DBProxyEndpoints?.[0];
|
|
19000
18998
|
status = ep?.Status;
|
|
18999
|
+
this.logger.debug(`DBProxyEndpoint ${dbProxyEndpointName} poll: status=${status ?? "not-yet-visible"}`);
|
|
19001
19000
|
if (status === "available") {
|
|
19002
19001
|
endpoint = ep?.Endpoint;
|
|
19003
19002
|
arn = ep?.DBProxyEndpointArn;
|
|
@@ -19044,8 +19043,8 @@ var RDSDBProxyEndpointProvider = class {
|
|
|
19044
19043
|
throw this.wrapError(error, "UPDATE", resourceType, logicalId, physicalId);
|
|
19045
19044
|
}
|
|
19046
19045
|
}
|
|
19047
|
-
await this.applyTagDiff(physicalId, previousProperties["Tags"], properties["Tags"], resourceType, logicalId);
|
|
19048
19046
|
this.invalidateAttributeCache(physicalId);
|
|
19047
|
+
await this.applyTagDiff(physicalId, previousProperties["Tags"], properties["Tags"], resourceType, logicalId);
|
|
19049
19048
|
return {
|
|
19050
19049
|
physicalId,
|
|
19051
19050
|
wasReplaced: false
|
|
@@ -45187,7 +45186,7 @@ function reorderArgs(argv) {
|
|
|
45187
45186
|
*/
|
|
45188
45187
|
async function main() {
|
|
45189
45188
|
const program = new Command();
|
|
45190
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.109.
|
|
45189
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.109.1");
|
|
45191
45190
|
program.addCommand(createBootstrapCommand());
|
|
45192
45191
|
program.addCommand(createSynthCommand());
|
|
45193
45192
|
program.addCommand(createListCommand());
|