@go-to-k/cdkd 0.260.14 → 0.261.0
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 +29 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1901,7 +1901,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1901
1901
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1902
1902
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1903
1903
|
function getCdkdVersion() {
|
|
1904
|
-
return "0.
|
|
1904
|
+
return "0.261.0";
|
|
1905
1905
|
}
|
|
1906
1906
|
/**
|
|
1907
1907
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -21074,13 +21074,35 @@ var AgentCoreRuntimeProvider = class {
|
|
|
21074
21074
|
* adopting an existing runtime should pass
|
|
21075
21075
|
* `--resource <logicalId>=<agentRuntimeId>` (e.g. `runtime-12345`,
|
|
21076
21076
|
* matching the physical id format returned by `create()`).
|
|
21077
|
+
*
|
|
21078
|
+
* The imported record's `attributes` are enriched to the same CFn read-only
|
|
21079
|
+
* set `create()` / `update()` write (via {@link buildAttributes}) so an
|
|
21080
|
+
* imported runtime resolves `Fn::GetAtt [Runtime, AgentRuntimeArn]` (and the
|
|
21081
|
+
* other read-only attributes) from cached state, matching deploy-created
|
|
21082
|
+
* runtimes (issue #1188). The enrichment is best-effort: a single
|
|
21083
|
+
* `GetAgentRuntime` is issued, and any failure (throttle, transient error,
|
|
21084
|
+
* a `--resource` id that does not resolve) falls back to the minimal
|
|
21085
|
+
* `{ AgentRuntimeId }` record — the live `getAttribute()` path still resolves
|
|
21086
|
+
* the ARN, so import never fails on the enrichment. `WorkloadIdentityDetails`
|
|
21087
|
+
* is not populated here (`GetAgentRuntime` does not return it — it is a
|
|
21088
|
+
* create/update-response field only).
|
|
21077
21089
|
*/
|
|
21078
21090
|
async import(input) {
|
|
21079
|
-
if (input.knownPhysicalId) return
|
|
21080
|
-
|
|
21081
|
-
|
|
21082
|
-
|
|
21083
|
-
|
|
21091
|
+
if (!input.knownPhysicalId) return null;
|
|
21092
|
+
const physicalId = input.knownPhysicalId;
|
|
21093
|
+
try {
|
|
21094
|
+
const resp = await this.client.send(new GetAgentRuntimeCommand({ agentRuntimeId: physicalId }));
|
|
21095
|
+
return {
|
|
21096
|
+
physicalId,
|
|
21097
|
+
attributes: this.buildAttributes(resp, resp.agentRuntimeName ?? "")
|
|
21098
|
+
};
|
|
21099
|
+
} catch (err) {
|
|
21100
|
+
this.logger.debug(`Could not enrich imported BedrockAgentCore Runtime ${physicalId} attributes (${err instanceof Error ? err.message : String(err)}); recording AgentRuntimeId only (Fn::GetAtt resolves live via getAttribute)`);
|
|
21101
|
+
return {
|
|
21102
|
+
physicalId,
|
|
21103
|
+
attributes: { AgentRuntimeId: physicalId }
|
|
21104
|
+
};
|
|
21105
|
+
}
|
|
21084
21106
|
}
|
|
21085
21107
|
};
|
|
21086
21108
|
|
|
@@ -62054,7 +62076,7 @@ function createMigrateCommand() {
|
|
|
62054
62076
|
*/
|
|
62055
62077
|
function buildProgram() {
|
|
62056
62078
|
const program = new Command();
|
|
62057
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
62079
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.261.0");
|
|
62058
62080
|
program.addCommand(createBootstrapCommand());
|
|
62059
62081
|
program.addCommand(createSynthCommand());
|
|
62060
62082
|
program.addCommand(createListCommand());
|