Skip to content
Back to skills

Aws Cdk Knowledge Patch

ASecurity

AWS CDK

  • 25 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentpythonrustshellnodenodejsexpresskubernetesawsapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill aws-cdk-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aws Cdk Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aws Cdk Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-aws-cdk-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-aws-cdk-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aws-cdk-knowledge-patch
description: AWS CDK
version: "2.278.0"
license: MIT
metadata:
  author: Nevaberry
---


# AWS CDK compatibility guidance

Load this skill when updating AWS CDK apps, resolving construct or CLI compatibility
issues, or configuring the services indexed below. Open the relevant reference for
the complete guidance and examples. Preserve the stated version, feature-flag,
and alpha-module conditions when applying an item.

## Reference index

| Reference | Topics |
| --- | --- |
| [Core toolkit and validation](references/core-toolkit-and-validation.md) | CLI, bootstrap, cloud assemblies, validation, diagnostics, mixins, references, context, tracing |
| [Generated contracts and types](references/generated-contracts-and-types.md) | Removed L1 resources and attributes, required properties, replacement constraints, shared interfaces |
| [Compute, delivery, and workflows](references/compute-delivery-and-workflows.md) | Lambda, bundling, custom resources, EC2, Auto Scaling, Batch, CodeBuild, pipelines, Step Functions |
| [Containers and Kubernetes](references/containers-and-kubernetes.md) | ECS deployments and capacity, EKS layers, nodes, access, Helm, add-ons, ECR |
| [Networking, APIs, and edge](references/networking-apis-and-edge.md) | VPC addressing and endpoints, load balancers, API Gateway, CloudFront, Route 53 |
| [Events, messaging, and streaming](references/events-messaging-and-streaming.md) | EventBridge, Scheduler, AppSync Events, SNS, SQS, Firehose, Kinesis, Flink, MSK |
| [Identity, security, and AI](references/identity-security-and-ai.md) | IAM, KMS, secrets, Cognito, certificates, signing, AgentCore, Bedrock, SageMaker |
| [Observability and service integrations](references/observability-and-service-integrations.md) | CloudWatch, Logs, Synthetics, AppConfig, SES, IoT, MediaConnect, MediaLive, MediaPackage |
| [Storage and databases](references/storage-and-databases.md) | S3, deployments, S3 Tables, DynamoDB, RDS, Aurora, DocumentDB, Redshift, OpenSearch, Glue, Backup |

## Breaking changes and changed defaults

### Lambda runtime defaults

In 2.259.0, `lambda.Runtime.NODEJS_LATEST` resolves to `nodejs24.x` in every Region.
Existing functions that use it update in place on the next deployment, and generated
custom-resource handlers default to Node.js 24. If your handler uses
`(event, context, callback)`, convert it to an async handler or pin
`runtime: lambda.Runtime.NODEJS_22_X`.

In 2.275.0, CDK synthesizes a dedicated Lambda function for each Step Functions
`EvaluateExpression` task. Review the synthesized Lambda resource changes when
upgrading a stack with multiple expression tasks.

### Generated contracts and shared interfaces

CDK 2.268.0 removes generated L1 resource types. Check imports and instantiations
before upgrading. The [generated-contract reference](references/generated-contracts-and-types.md)
contains the full removal lists, required properties, type changes, and replacement constraints.

In 2.237.0, `IEncryptedResource` extends `IEnvironmentAware`. Use
`IEncryptedResource & IResource` or narrow with `Resource.isResource()` when you need
`IResource` members. Pass an `IEnvironmentAware` to `GrantableResources.isEncryptedResource()`.

### CLI plugin imports

Version 2.174.0 adds `@aws-cdk/cli-plugin-contract` for types shared by the CLI and its
plugins. Update plugins that import private CLI modules because 2.177.0 blocks those imports.

### EKS layers, modules, and subnets

In 2.179.0, `Cluster` and `FargateCluster` require an explicit `kubectlLayer`.
Choose a layer that matches the cluster's Kubernetes version, such as
`KubectlV32Layer` for Kubernetes 1.32.

Starting with 2.240.0, import EKS v2 constructs from `aws-cdk-lib/aws-eks-v2`.
Update imports from `@aws-cdk/aws-eks-v2-alpha` when moving to the stable module.
Starting in 2.248.0, selecting isolated subnets for the kubectl handler in `aws_eks`
produces a warning and synthesis can continue.

### Glue module and job migrations

Starting in 2.270.0, import Glue L2 constructs from `aws-cdk-lib/aws-glue` when
migrating from `@aws-cdk/aws-glue-alpha`.

In 2.266.0-alpha.0, Spark jobs require
`workerConfiguration: { workerType, numberOfWorkers }` in place of the two top-level
properties. Size `PythonShellJob` with `maxCapacity`, and omit `workerType` on
`RayJob`, which uses `Z.2X`.

Starting in 2.269.0-alpha.0, Glue jobs throw a `ValidationError` at synthesis if
`defaultArguments` contains a construct-managed or Glue-reserved key, even when the
construct would leave that argument unset. Replace
`defaultArguments: { '--enable-continuous-cloudwatch-log': 'false' }` with
`continuousLogging: { enabled: false }`.

The [storage reference](references/storage-and-databases.md) includes the complete
managed-key list and the catalog, table, encryption, workflow, and connection migrations.

### CloudFront and bucket deployment defaults

Version 2.273.0 introduces `REDIRECT_TO_HTTPS` as the default viewer protocol policy
for `Distribution` behaviors. Set
`viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.ALLOW_ALL` explicitly on a
behavior that must continue serving HTTP.

In 2.267.0, the `BucketDeployment` handler defaults to 1,024 MB of memory, up from
128 MB. Set `memoryLimit: 128` to keep the previous sizing. In 2.268.0, the handler
switches to ARM64 (Graviton).

### Redshift qualified table names

In 2.276.0-alpha.0, `Table` interprets dotted `tableName` values such as
`'analytics.orders'` and `'warehouse.analytics.orders'` as qualified names for every
table operation. If a release from 2.262.0 onward created a table as the single
identifier `"analytics.orders"` in the default schema, subsequent updates and
`RemovalPolicy.DESTROY` target the qualified name after the upgrade. Empty name
components fail synthesis, and a rename must preserve the qualifier.

### Metric filter dimensions

Starting in 2.208.0, `MetricFilter.metric()` no longer carries over the filter's
dimension map. For a dimensioned metric, specify the dimensions and their concrete
values on the CloudWatch metric you graph or alarm on.

## Deprecations and renamed settings

| Area | Guidance |
| --- | --- |
| RDS | In 2.176.0, use `clusterScalabilityType` on `DatabaseCluster` in place of the misspelled `clusterScailabilityType`. |
| DynamoDB | In 2.178.0, `pointInTimeRecoverySpecification` replaces the deprecated `pointInTimeRecovery` Boolean. Use `pointInTimeRecoverySpecification: { pointInTimeRecoveryEnabled: true, recoveryPeriodInDays: 7 }` for a seven-day recovery window. |
| Lambda | Version 2.188.0 deprecates `@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy`. |
| Route 53 | In 2.209.0, `route53.ARecord` deprecates `deleteExisting`, which deletes a matching DNS record before creating the managed record. Avoid relying on it when moving an existing record under stack management. |
| Kinesis Analytics | In 2.216.0, `KinesisAnalyticsV2` in `aws-kinesisanalytics` is deprecated. Update imports to `aws-kinesisanalyticsv2`. |
| EKS OIDC | Version 2.237.0 adds the CloudFormation-backed `OidcProviderNative` for EKS and deprecates the `OpenIdConnectProvider` custom resource. |
| App validation | Starting in 2.251.0, use `Validations` to add app validation plugins and the stable `policyValidation` interfaces in place of `policyValidationBeta1`. |

## Validation and synthesis

Starting in 2.262.0, CDK validates synthesized CloudFormation templates against a
default rule set. Use 2.262.1 or later for `CDK_VALIDATION=false` to disable the
built-in checks. Starting in 2.275.0, an `App` constructor property can disable
built-in CloudFormation validation for an individual app.

In 2.257.0, set `failSynthOnValidationErrors` to `false` in context to suppress
validation error output on the console and the resulting failure exit code.
Version 2.258.0 changes the schema of `validation-report.json` and includes
suppressed violations. Review parsers that consume this file during synthesis.

Upgrade `aws-cdk-lib` to 2.265.0 if `cdk validate` hangs indefinitely.
Starting in 2.271.0, run `cdk --debug synth` to see property traces and locate the
code that changed a synthesized property. In 2.276.0, CDK runs validation for
`Stage` constructs below the top level.

## Deployment and bootstrap

In 2.174.0, the CLI supports CloudFormation's simplified import during deployment.
Give each resource to be adopted its existing physical name in the stack so
CloudFormation can match it.

```sh
cdk deploy MyStack --import-existing-resources
```

In 2.177.0, remove the specified account from the trust configuration of an existing
bootstrap stack with:

```sh
cdk bootstrap aws://111111111111/us-east-1 --untrust 222222222222
```

The `cdk init` templates shipped with 2.179.0 handle CLI and construct library
versions independently. The generated `aws-cdk` and `aws-cdk-lib` dependencies can
have different versions.

## Step Functions JSONata and variables

In 2.178.0, use a state's `.jsonata()` factory to set `assign` and `outputs` with
JSONata expressions inside `{% %}`. Later states can read assigned variables by
name, such as `$orderId`.

```ts
const rememberOrder = sfn.Pass.jsonata(stack, 'RememberOrder', {
  assign: { orderId: '{% $states.input.orderId %}' },
  outputs: '{% $states.input %}',
});
```

In 2.229.0, Step Functions constructs accept multiline JSONata expressions inside
the `{% %}` delimiters. See the [workflow reference](references/compute-delivery-and-workflows.md)
for Map selectors, concurrency, result export, and task integrations.

## S3 object replication

In 2.177.0, define object replication on an S3 L2 source bucket through
`replicationRules`. Both source and destination need versioning enabled.

```ts
import * as s3 from 'aws-cdk-lib/aws-s3';

const destination = new s3.Bucket(stack, 'Replica', { versioned: true });
new s3.Bucket(stack, 'Source', {
  versioned: true,
  replicationRules: [{ destination }],
});
```

In 2.190.0, set the source bucket's `replicationRole` to use an existing IAM role.
Starting in 2.270.0, a `Bucket` replication rule can enable replication metrics
independently of S3 Replication Time Control.

## ECS deployment strategies

Set `deploymentStrategy: ecs.DeploymentStrategy.BLUE_GREEN` on an ECS service L2
to use native blue/green deployments. L2 support shipped in 2.209.0, was reverted
in 2.210.0, and returned in 2.211.0.

In 2.236.0, ECS services support built-in linear and canary deployment strategies.
Linear shifts traffic in increments; canary shifts an initial percentage and moves
the remaining traffic after a bake interval.

## Cross-stack references and mixins

Version 2.254.0 adds weak references for stacks in the same environment and across
accounts or Regions, so consumers can read outputs without locking the producer
to a CloudFormation export. Starting in 2.259.0, CDK recommends weak references
when no strength has been selected. In 2.260.0, they also work for list-valued attributes.

Version 2.241.0 introduces mixins for applying reusable behavior to constructs.
Use `withMixin` to apply mixins to a stack. Starting in 2.243.0, install
`@aws-cdk/cfn-property-mixins` and import generated CloudFormation property mixins
from that stable package.

Files in this skill

  • SKILL.md11.8 KB
  • coverage.json2.2 KB
  • references/compute-delivery-and-workflows.md10.7 KB
  • references/containers-and-kubernetes.md6.1 KB
  • references/core-toolkit-and-validation.md6.1 KB
  • references/events-messaging-and-streaming.md3.7 KB
  • references/generated-contracts-and-types.md8.7 KB
  • references/identity-security-and-ai.md4.2 KB
  • references/networking-apis-and-edge.md5.8 KB
  • references/observability-and-service-integrations.md5.3 KB
  • references/storage-and-databases.md8.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.