Skip to content
Back to skills

Aws Cdk Knowledge Patch

ASecurity

AWS CDK

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 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-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-aws-cdk-knowledge-patch-nevaberry-plugins)

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 knowledge patch

Load this skill when upgrading AWS CDK applications or working with changes to
construct APIs, synthesis, deployment, or generated CloudFormation contracts.
Use the topic references for complete guidance and examples. Keep each item's
release conditions, feature flags, and alpha-package attribution attached to it.

## Reference index

| Reference | Topics |
| --- | --- |
| [Core, CLI, and synthesis](references/core-cli-and-synthesis.md) | Bootstrap, plugins, validation, diagnostics, references, mixins, tracing, context |
| [Generated L1 contracts](references/generated-l1-contracts.md) | Removed resources and attributes, required properties, type changes, replacement constraints |
| [Compute and runtimes](references/compute-containers-and-runtime.md) | Lambda, event sources, ECS, EKS, EC2, Auto Scaling, Batch, media services |
| [Delivery and pipelines](references/delivery-assets-and-pipelines.md) | Bundling, S3 deployments, ECR, CodeBuild, CodePipeline, CDK Pipelines |
| [Events and workflows](references/events-messaging-and-workflows.md) | Step Functions, EventBridge, Scheduler, SNS, SES, Firehose, streaming, IoT |
| [Networking and edge](references/networking-edge-and-dns.md) | CloudFront, API Gateway, AppSync, load balancers, VPCs, endpoints, Route 53 |
| [Identity, security, and AI](references/identity-security-and-ai.md) | IAM, KMS, Cognito, certificates, AgentCore, Bedrock, SageMaker |
| [Observability and operations](references/observability-operations-and-config.md) | CloudWatch, Logs, Synthetics, AppConfig, custom resources, Backup, CloudTrail |
| [Storage and databases](references/storage-and-databases.md) | S3, DynamoDB, RDS, Aurora, OpenSearch, Glue, Redshift, DocumentDB, ElastiCache, MSK |

## Breaking changes and deprecations

### Generated CloudFormation contracts

CDK 2.268.0 removes generated constructs for multiple resource types; check imports
and instantiations before upgrading. The [L1 reference](references/generated-l1-contracts.md)
preserves the full removed-resource and attribute lists, required-property changes,
type changes, and immutable-property changes for the affected services.

### Lambda runtime defaults

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

### CloudFront and ECS listener defaults

In 2.273.0, `Distribution` behaviors default to `REDIRECT_TO_HTTPS`. Set
`viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.ALLOW_ALL` explicitly on a
behavior that must continue serving HTTP. In 2.214.0, load-balanced ECS patterns
default `openListener` to `false` when a custom security group is supplied; add the
listener ingress clients need to that security group.

### EKS kubectl and ECS Managed Instances requirements

In 2.179.0, EKS `Cluster` and `FargateCluster` require an explicit `kubectlLayer`
matching the Kubernetes version, such as `KubectlV32Layer` for Kubernetes 1.32.
CDK 2.245.0 rejects isolated subnets for the kubectl handler; starting in 2.248.0,
isolated subnets for the handler in `aws_eks` produce a warning and synthesis can continue.
Starting in 2.235.0, pass at least one group in
`ManagedInstancesCapacityProviderProps.securityGroups`.

### S3 deployment handler changes

In 2.267.0, the `BucketDeployment` handler defaults to 1,024 MB instead of 128 MB;
set `memoryLimit: 128` to keep the previous sizing. In 2.268.0, it switches to ARM64
(Graviton). Starting in 2.273.0, `s3deploy.Source.data(objectKey, data)` confines
file writes to the deployment staging directory; use a key that resolves within it.

### Glue and Redshift migrations

In Glue 2.266.0-alpha.0, Spark jobs require
`workerConfiguration: { workerType, numberOfWorkers }` instead of top-level worker
properties. Size `PythonShellJob` with `maxCapacity`; omit `workerType` on `RayJob`,
which uses `Z.2X`. In 2.267.0-alpha.0, migrate `Table` to `S3Table` and replace its
storage and encryption properties as detailed in the [storage reference](references/storage-and-databases.md).
In 2.269.0-alpha.0, Glue jobs reject construct-managed or Glue-reserved keys in
`defaultArguments`, even when the construct would leave the argument unset.

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

### Renamed, deprecated, and narrower APIs

| API | Guidance |
| --- | --- |
| RDS cluster scalability | Use `clusterScalabilityType` in place of `clusterScailabilityType`. |
| DynamoDB recovery | Replace deprecated `pointInTimeRecovery` with `pointInTimeRecoverySpecification`. |
| Fluentd logging | Use `async: true` instead of deprecated `asyncConnect`. |
| Kinesis Analytics | Replace deprecated `KinesisAnalyticsV2` imports from `aws-kinesisanalytics` with `aws-kinesisanalyticsv2`. |
| Route 53 `ARecord` | `deleteExisting` is deprecated; avoid relying on it when moving an existing record under stack management. |
| Lambda policy flag | `@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy` is deprecated. |
| EKS OIDC | `OidcProviderNative` is CloudFormation-backed; the `OpenIdConnectProvider` custom resource is deprecated. |
| Validation plugins | Use `Validations` and stable `policyValidation` interfaces in place of `policyValidationBeta1`. |

In 2.237.0, `IEncryptedResource` extends `IEnvironmentAware`. Use
`IEncryptedResource & IResource` or narrow with `Resource.isResource()` when
`IResource` members are needed. Reference-interface migrations for Batch, Backup,
EventBridge, log groups, and AgentCore are detailed in their topic references.

### Stable construct imports

| Constructs | Stable module or package |
| --- | --- |
| Firehose delivery streams | `aws-cdk-lib/aws-kinesisfirehose` |
| Cognito identity pools | `aws-cdk-lib/aws-cognito-identitypool` |
| Scheduler and targets | `aws-cdk-lib/aws-scheduler`, `aws-cdk-lib/aws-scheduler-targets` |
| EKS v2 | `aws-cdk-lib/aws-eks-v2` |
| AgentCore, including Policy | `aws-cdk-lib/aws-bedrockagentcore` |
| Glue L2 constructs | `aws-cdk-lib/aws-glue` |
| Generated CloudFormation property mixins | `@aws-cdk/cfn-property-mixins` |

## CLI and synthesis quick reference

### Bootstrap, import, and plugin compatibility

`cdk bootstrap --untrust` removes an account from an existing bootstrap stack's
trust configuration. For simplified import during deployment, give each resource
its existing physical name in the stack so CloudFormation can match it.

```sh
cdk bootstrap aws://111111111111/us-east-1 --untrust 222222222222
cdk deploy MyStack --import-existing-resources
```

Use `@aws-cdk/cli-plugin-contract` for shared CLI/plugin types; 2.177.0 blocks
private CLI module imports. New-app templates handle CLI and library versions
independently. Assemblies synthesized with 2.182.0 need a CLI that reads schema v40.
If CLI 2.1017.0 or 2.1018.0 reports `Invalid Assembly Manifest`, resynthesize with
library 2.203.1 or 2.204.0.

### Validation and tracing

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 those
built-in checks. In 2.275.0, an `App` constructor property can disable them per app.
In 2.257.0, `failSynthOnValidationErrors` set to `false` suppresses validation error
output on the console and the resulting failure exit code. The
`validation-report.json` schema changes in 2.258.0 and includes suppressed violations.

Upgrade `aws-cdk-lib` to 2.265.0 if `cdk validate` hangs. Starting in 2.271.0, run
`cdk --debug synth` to see property traces. Tracing includes nested-stack resources
in 2.274.0. Starting in 2.276.0, validation runs for `Stage` constructs below the top level.

### Cross-stack references and customization

Weak references let consumers read outputs without locking producers to
CloudFormation exports. They support same-environment and cross-account or
cross-Region stacks, and list-valued attributes starting in 2.260.0.
Starting in 2.259.0, CDK recommends weak references when no strength has been selected.
Use `withMixin` to apply mixins to a stack; `PropertyMergeStrategy` supports array
merge strategies and deferred `Box` values. `RemovalPolicies.of(stack).retain()`
applies retention across the stack.

## Common construct features

### Step Functions expressions

Use a state's `.jsonata()` factory with expressions inside `{% %}` for `assign`
and `outputs`. Later states can read assigned variables, such as `$orderId`.

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

JSONata Maps support `jsonataItemSelector` and computed `maxConcurrency`.
Distributed Maps support custom CSV delimiters, result-writer configuration,
and destination buckets resolved at execution time from JSONPath or JSONata.
In 2.275.0, each `EvaluateExpression` task gets a dedicated Lambda function;
review synthesized Lambda resource changes in stacks with multiple expression tasks.

### Containers, functions, and event sources

Use `containerInsightsV2: ecs.ContainerInsights.ENHANCED` for enhanced ECS
observability. ECS service L2 native blue/green support shipped in 2.209.0, was
reverted in 2.210.0, and returned in 2.211.0; select
`deploymentStrategy: ecs.DeploymentStrategy.BLUE_GREEN`. Built-in linear and canary
strategies are also supported. Use `forceNewDeployment` to roll out fresh tasks
without changing the task definition.

Lambda supports durable functions, tenant isolation through `TenancyConfig`, and
capacity providers. SQS event sources accept `provisionedPollerConfig`; Kafka event
sources support schema registries, timestamp starts, observability, and failure
destinations. Self-managed Kafka event source mappings support queue consumption
mode starting in 2.278.0.

### Storage, networking, and operations

S3 `replicationRules` requires versioning on both source and destination; use
`replicationRole` for an existing replication IAM role. Replication metrics can be
enabled independently of Replication Time Control. DynamoDB `TableV2` supports
multi-Region strong consistency. CDK supports DynamoDB global-table replication across accounts.

For Aurora Serverless v2 auto-pause, use `serverlessV2MinCapacity: 0` with a supported
engine version and a Serverless v2 instance. `serverlessV2AutoPauseDuration` sets
the inactivity duration. RDS clusters and instances support RDS-managed master
passwords through the native Secrets Manager integration.

CloudFront VPC origins can use private load balancers or EC2 instances. For gRPC,
set `enableGrpc: true`, allow all HTTP methods on the behavior, and enable HTTP/2
on the distribution. Add `cloudfront.AccessLevel.LIST` alongside `READ` on S3
origins so missing-object requests can receive HTTP 404; add
`cloudfront.AccessLevel.READ_VERSIONED` to retrieve specific object versions.

Starting in 2.208.0, `MetricFilter.metric()` no longer carries the filter's
dimension map; specify dimensions and concrete values on the metric graphed or
alarmed on. AgentCore metric dimensions change in 2.264.0: gateways use
`{ Operation, Protocol, Resource }`, runtimes use `{ Operation, Name, Resource }`,
and aggregated runtime metrics use `{ AggregateOperation }`.

Files in this skill

  • SKILL.md12.3 KB
  • coverage.json2.2 KB
  • references/compute-containers-and-runtime.md9.7 KB
  • references/core-cli-and-synthesis.md7.4 KB
  • references/delivery-assets-and-pipelines.md5.5 KB
  • references/events-messaging-and-workflows.md7.5 KB
  • references/generated-l1-contracts.md6.8 KB
  • references/identity-security-and-ai.md6 KB
  • references/networking-edge-and-dns.md8 KB
  • references/observability-operations-and-config.md5.4 KB
  • references/storage-and-databases.md7.7 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.