cdk-real-drift 0.13.7 → 0.13.9
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 +35 -1
- 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";
|
|
@@ -2064,6 +2064,7 @@ const KNOWN_DEFAULTS = {
|
|
|
2064
2064
|
Path: "/",
|
|
2065
2065
|
Description: ""
|
|
2066
2066
|
},
|
|
2067
|
+
"AWS::SageMaker::DataQualityJobDefinition": { StoppingCondition: { MaxRuntimeInSeconds: 3600 } },
|
|
2067
2068
|
"AWS::IAM::ServerCertificate": { Path: "/" },
|
|
2068
2069
|
"AWS::CertificateManager::Certificate": { KeyAlgorithm: "RSA_2048" },
|
|
2069
2070
|
"AWS::AppRunner::Service": {
|
|
@@ -2858,6 +2859,12 @@ const KNOWN_DEFAULT_ONE_OF_PATHS = {
|
|
|
2858
2859
|
"AWS::Batch::ComputeEnvironment": { "ComputeResources.Ec2Configuration": [[{ ImageType: "ECS_AL2023" }], [{ ImageType: "ECS_AL2" }]] }
|
|
2859
2860
|
};
|
|
2860
2861
|
const KNOWN_DEFAULT_PATHS = {
|
|
2862
|
+
"AWS::SageMaker::DataQualityJobDefinition": {
|
|
2863
|
+
"DataQualityJobInput.BatchTransformInput.S3DataDistributionType": "FullyReplicated",
|
|
2864
|
+
"DataQualityJobInput.BatchTransformInput.S3InputMode": "File",
|
|
2865
|
+
"DataQualityJobInput.EndpointInput.S3DataDistributionType": "FullyReplicated",
|
|
2866
|
+
"DataQualityJobInput.EndpointInput.S3InputMode": "File"
|
|
2867
|
+
},
|
|
2861
2868
|
"AWS::ElasticLoadBalancingV2::TargetGroup": { "Targets.*.AvailabilityZone": "all" },
|
|
2862
2869
|
"AWS::ApiGatewayV2::Stage": { "DefaultRouteSettings.LoggingLevel": "OFF" },
|
|
2863
2870
|
"AWS::ServiceCatalog::CloudFormationProduct": { "ProvisioningArtifactParameters.*.Type": "CLOUD_FORMATION_TEMPLATE" },
|
|
@@ -11634,6 +11641,32 @@ const readSageMakerEndpointConfig = async ({ physicalId, declared, region, accou
|
|
|
11634
11641
|
}
|
|
11635
11642
|
return model;
|
|
11636
11643
|
};
|
|
11644
|
+
const readSageMakerMonitoringSchedule = async ({ physicalId, declared, region, accountId }) => {
|
|
11645
|
+
const raw = str$1(physicalId) ?? str$1(declared.MonitoringScheduleName);
|
|
11646
|
+
if (!raw) return void 0;
|
|
11647
|
+
const name = raw.startsWith("arn:") ? raw.split("/").pop() ?? raw : raw;
|
|
11648
|
+
const c = new SageMakerClient({
|
|
11649
|
+
region,
|
|
11650
|
+
...READ_RETRY
|
|
11651
|
+
});
|
|
11652
|
+
const r = await c.send(new DescribeMonitoringScheduleCommand({ MonitoringScheduleName: name }));
|
|
11653
|
+
if (!r.MonitoringScheduleName) throw new ResourceGoneError(`SageMaker MonitoringSchedule ${name} absent`);
|
|
11654
|
+
const model = {};
|
|
11655
|
+
if (str$1(r.MonitoringScheduleName)) model.MonitoringScheduleName = r.MonitoringScheduleName;
|
|
11656
|
+
if (r.MonitoringScheduleConfig !== void 0) model.MonitoringScheduleConfig = r.MonitoringScheduleConfig;
|
|
11657
|
+
if (str$1(r.EndpointName)) model.EndpointName = r.EndpointName;
|
|
11658
|
+
const tagArn = str$1(r.MonitoringScheduleArn) ?? (accountId ? `arn:${partitionForRegion(region).partition}:sagemaker:${region}:${accountId}:monitoring-schedule/${name}` : void 0);
|
|
11659
|
+
if (tagArn) try {
|
|
11660
|
+
const tags = projectTagList((await c.send(new ListTagsCommand$1({ ResourceArn: tagArn }))).Tags);
|
|
11661
|
+
if (tags) model.Tags = tags;
|
|
11662
|
+
} catch (err) {
|
|
11663
|
+
const mirrored = mirrorDeclaredTags(declared.Tags);
|
|
11664
|
+
if (mirrored) model.Tags = mirrored;
|
|
11665
|
+
const call = err?.name || "unknown error";
|
|
11666
|
+
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`);
|
|
11667
|
+
}
|
|
11668
|
+
return model;
|
|
11669
|
+
};
|
|
11637
11670
|
const readMetricFilter = async ({ physicalId, declared, region }) => {
|
|
11638
11671
|
const logGroup = str$1(declared.LogGroupName);
|
|
11639
11672
|
const filterName = str$1(physicalId) ?? str$1(declared.FilterName);
|
|
@@ -12173,6 +12206,7 @@ const SDK_OVERRIDES = {
|
|
|
12173
12206
|
"AWS::Glue::Connection": readGlueConnection,
|
|
12174
12207
|
"AWS::Glue::SecurityConfiguration": readGlueSecurityConfiguration,
|
|
12175
12208
|
"AWS::SageMaker::EndpointConfig": readSageMakerEndpointConfig,
|
|
12209
|
+
"AWS::SageMaker::MonitoringSchedule": readSageMakerMonitoringSchedule,
|
|
12176
12210
|
"AWS::Logs::MetricFilter": readMetricFilter,
|
|
12177
12211
|
"AWS::Scheduler::Schedule": readSchedulerSchedule
|
|
12178
12212
|
};
|