cdk-real-drift 0.13.8 → 0.13.10
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/README.md +4 -0
- package/dist/cli.js +44 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -935,6 +935,10 @@ covers them. **If you never run `revert`, cdkrd needs no write permissions at al
|
|
|
935
935
|
`AWS::SageMaker::EndpointConfig` — its production-variant model wiring, plus the
|
|
936
936
|
tags a separate `ListTags` call supplies since `DescribeEndpointConfig` omits
|
|
937
937
|
them),
|
|
938
|
+
`sagemaker:DescribeMonitoringSchedule` + `sagemaker:ListTags` (read an
|
|
939
|
+
`AWS::SageMaker::MonitoringSchedule` — the Cloud Control read omits `Tags`, so
|
|
940
|
+
a declared `Tags` false-flagged as drift on every tagged schedule; a separate
|
|
941
|
+
`ListTags` call supplies them),
|
|
938
942
|
`codebuild:BatchGetProjects` (reads an `AWS::CodeBuild::Project`) +
|
|
939
943
|
`codebuild:BatchGetReportGroups` (reads an `AWS::CodeBuild::ReportGroup`),
|
|
940
944
|
`dax:DescribeClusters` + `dax:DescribeParameterGroups` + `dax:DescribeParameters` +
|
package/dist/cli.js
CHANGED
|
@@ -53,7 +53,7 @@ import { GetWorkgroupCommand, RedshiftServerlessClient } from "@aws-sdk/client-r
|
|
|
53
53
|
import { BuildBotLocaleCommand, CreateIntentCommand, CreateSlotCommand, CreateSlotTypeCommand, DeleteIntentCommand, DeleteSlotCommand, DeleteSlotTypeCommand, DescribeBotLocaleCommand, DescribeIntentCommand, DescribeSlotCommand, DescribeSlotTypeCommand, LexModelsV2Client, ListBotLocalesCommand, ListIntentsCommand, ListSlotTypesCommand, ListSlotsCommand, UpdateBotLocaleCommand, UpdateIntentCommand, UpdateSlotCommand, UpdateSlotTypeCommand } from "@aws-sdk/client-lex-models-v2";
|
|
54
54
|
import { GetScheduleCommand, SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
55
55
|
import { DescribeReceiptRuleCommand, DescribeReceiptRuleSetCommand, ListReceiptFiltersCommand, SESClient, UpdateReceiptRuleCommand } from "@aws-sdk/client-ses";
|
|
56
|
-
import { DescribeEndpointConfigCommand, ListTagsCommand as ListTagsCommand$1, SageMakerClient } from "@aws-sdk/client-sagemaker";
|
|
56
|
+
import { DescribeEndpointConfigCommand, DescribeMonitoringScheduleCommand, ListTagsCommand as ListTagsCommand$1, SageMakerClient } from "@aws-sdk/client-sagemaker";
|
|
57
57
|
import { GetNamespaceCommand, GetServiceCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$4, ServiceDiscoveryClient, UpdateHttpNamespaceCommand } from "@aws-sdk/client-servicediscovery";
|
|
58
58
|
import { createHash } from "node:crypto";
|
|
59
59
|
import { S_BAR, S_BAR_END, S_BAR_START, S_CHECKBOX_INACTIVE, S_CHECKBOX_SELECTED, confirm, isCancel, select, spinner } from "@clack/prompts";
|
|
@@ -2093,6 +2093,15 @@ const KNOWN_DEFAULTS = {
|
|
|
2093
2093
|
"AWS::KinesisAnalyticsV2::Application": { ApplicationMode: "STREAMING" },
|
|
2094
2094
|
"AWS::Events::ApiDestination": { InvocationRateLimitPerSecond: 300 },
|
|
2095
2095
|
"AWS::DMS::Endpoint": { SslMode: "none" },
|
|
2096
|
+
"AWS::MediaConvert::Queue": {
|
|
2097
|
+
PricingPlan: "ON_DEMAND",
|
|
2098
|
+
Status: "ACTIVE"
|
|
2099
|
+
},
|
|
2100
|
+
"AWS::MediaConvert::JobTemplate": {
|
|
2101
|
+
Priority: 0,
|
|
2102
|
+
StatusUpdateInterval: "SECONDS_60",
|
|
2103
|
+
AccelerationSettings: { Mode: "DISABLED" }
|
|
2104
|
+
},
|
|
2096
2105
|
"AWS::CloudFormation::StackSet": { ExecutionRoleName: "AWSCloudFormationStackSetExecutionRole" },
|
|
2097
2106
|
"AWS::Batch::ComputeEnvironment": { State: "ENABLED" },
|
|
2098
2107
|
"AWS::ElasticBeanstalk::Application": { ResourceLifecycleConfig: { VersionLifecycleConfig: {
|
|
@@ -2865,6 +2874,10 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
2865
2874
|
"DataQualityJobInput.EndpointInput.S3DataDistributionType": "FullyReplicated",
|
|
2866
2875
|
"DataQualityJobInput.EndpointInput.S3InputMode": "File"
|
|
2867
2876
|
},
|
|
2877
|
+
"AWS::SageMaker::Model": {
|
|
2878
|
+
"PrimaryContainer.Mode": "SingleModel",
|
|
2879
|
+
"Containers.*.Mode": "SingleModel"
|
|
2880
|
+
},
|
|
2868
2881
|
"AWS::ElasticLoadBalancingV2::TargetGroup": { "Targets.*.AvailabilityZone": "all" },
|
|
2869
2882
|
"AWS::ApiGatewayV2::Stage": { "DefaultRouteSettings.LoggingLevel": "OFF" },
|
|
2870
2883
|
"AWS::ServiceCatalog::CloudFormationProduct": { "ProvisioningArtifactParameters.*.Type": "CLOUD_FORMATION_TEMPLATE" },
|
|
@@ -11610,8 +11623,9 @@ const projectSageMakerVariant = (v) => {
|
|
|
11610
11623
|
return out;
|
|
11611
11624
|
};
|
|
11612
11625
|
const readSageMakerEndpointConfig = async ({ physicalId, declared, region, accountId }) => {
|
|
11613
|
-
const
|
|
11614
|
-
if (!
|
|
11626
|
+
const raw = str$1(physicalId) ?? str$1(declared.EndpointConfigName);
|
|
11627
|
+
if (!raw) return void 0;
|
|
11628
|
+
const name = raw.startsWith("arn:") ? raw.split("/").pop() ?? raw : raw;
|
|
11615
11629
|
const c = new SageMakerClient({
|
|
11616
11630
|
region,
|
|
11617
11631
|
...READ_RETRY
|
|
@@ -11641,6 +11655,32 @@ const readSageMakerEndpointConfig = async ({ physicalId, declared, region, accou
|
|
|
11641
11655
|
}
|
|
11642
11656
|
return model;
|
|
11643
11657
|
};
|
|
11658
|
+
const readSageMakerMonitoringSchedule = async ({ physicalId, declared, region, accountId }) => {
|
|
11659
|
+
const raw = str$1(physicalId) ?? str$1(declared.MonitoringScheduleName);
|
|
11660
|
+
if (!raw) return void 0;
|
|
11661
|
+
const name = raw.startsWith("arn:") ? raw.split("/").pop() ?? raw : raw;
|
|
11662
|
+
const c = new SageMakerClient({
|
|
11663
|
+
region,
|
|
11664
|
+
...READ_RETRY
|
|
11665
|
+
});
|
|
11666
|
+
const r = await c.send(new DescribeMonitoringScheduleCommand({ MonitoringScheduleName: name }));
|
|
11667
|
+
if (!r.MonitoringScheduleName) throw new ResourceGoneError(`SageMaker MonitoringSchedule ${name} absent`);
|
|
11668
|
+
const model = {};
|
|
11669
|
+
if (str$1(r.MonitoringScheduleName)) model.MonitoringScheduleName = r.MonitoringScheduleName;
|
|
11670
|
+
if (r.MonitoringScheduleConfig !== void 0) model.MonitoringScheduleConfig = r.MonitoringScheduleConfig;
|
|
11671
|
+
if (str$1(r.EndpointName)) model.EndpointName = r.EndpointName;
|
|
11672
|
+
const tagArn = str$1(r.MonitoringScheduleArn) ?? (accountId ? `arn:${partitionForRegion(region).partition}:sagemaker:${region}:${accountId}:monitoring-schedule/${name}` : void 0);
|
|
11673
|
+
if (tagArn) try {
|
|
11674
|
+
const tags = projectTagList((await c.send(new ListTagsCommand$1({ ResourceArn: tagArn }))).Tags);
|
|
11675
|
+
if (tags) model.Tags = tags;
|
|
11676
|
+
} catch (err) {
|
|
11677
|
+
const mirrored = mirrorDeclaredTags(declared.Tags);
|
|
11678
|
+
if (mirrored) model.Tags = mirrored;
|
|
11679
|
+
const call = err?.name || "unknown error";
|
|
11680
|
+
process.stderr.write(`[cdkrd] warning: SageMaker ListTags for MonitoringSchedule (${tagArn}) failed (${call}) — mirroring declared Tags to avoid a false drift; grant sagemaker:ListTags to detect out-of-band tag changes\n`);
|
|
11681
|
+
}
|
|
11682
|
+
return model;
|
|
11683
|
+
};
|
|
11644
11684
|
const readMetricFilter = async ({ physicalId, declared, region }) => {
|
|
11645
11685
|
const logGroup = str$1(declared.LogGroupName);
|
|
11646
11686
|
const filterName = str$1(physicalId) ?? str$1(declared.FilterName);
|
|
@@ -12180,6 +12220,7 @@ const SDK_OVERRIDES = {
|
|
|
12180
12220
|
"AWS::Glue::Connection": readGlueConnection,
|
|
12181
12221
|
"AWS::Glue::SecurityConfiguration": readGlueSecurityConfiguration,
|
|
12182
12222
|
"AWS::SageMaker::EndpointConfig": readSageMakerEndpointConfig,
|
|
12223
|
+
"AWS::SageMaker::MonitoringSchedule": readSageMakerMonitoringSchedule,
|
|
12183
12224
|
"AWS::Logs::MetricFilter": readMetricFilter,
|
|
12184
12225
|
"AWS::Scheduler::Schedule": readSchedulerSchedule
|
|
12185
12226
|
};
|