This content originally appeared on DEV Community and was authored by Praneeta Prakash
Table of Contents
New Abstractions
- Amazon Bedrock Inference Profiles Support
- Amazon S3 Tables L2 Construct Support
- CloudWatch Logs Transformer Support
- RDS Database Insights for Instances
- Enhanced CloudWatch Dashboard Features
CLI Enhancements
- Enhanced Diff Command with Move Detection
- Feature Flag Management
Documentation Changes
Community and Content Highlights
- Contributor Highlight
- Community Events
- Community published content
Welcome to the July 2025 AWS CDK monthly update! This month brought significant new features, improvements, and fixes across the CDK ecosystem. Here you will find the key highlights.
New Abstractions
Amazon Bedrock Inference Profiles Support
We're excited to announce comprehensive support for Amazon Bedrock Inference Profiles in the AWS CDK Bedrock Alpha construct library. This feature enables better cost tracking, model usage optimization, and cross-region inference capabilities.
Key capabilities:
• Application Inference Profiles: User-defined profiles for cost tracking and model usage monitoring
• Cross-Region Inference Profiles: System-defined profiles for seamless traffic distribution across AWS regions
• Prompt Routers: Intelligent prompt routing capabilities
typescript
import * as bedrock from '@aws-cdk/aws-bedrock-alpha';
// Create an application inference profile for cost tracking
const appProfile = new bedrock.ApplicationInferenceProfile(this, 'MyAppProfile', { applicationInferenceProfileName: 'my-cost-tracking-profile',
modelSource: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0,
description: 'Profile for tracking model usage costs', });
// Create a cross-region inference profile for resilience
const crossRegionProfile = bedrock.CrossRegionInferenceProfile.fromConfig({
geoRegion: bedrock.CrossRegionInferenceProfileRegion.US,
model: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0,
});
// Grant usage permissions to other resources appProfile.grantProfileUsage(myLambdaFunction);
Amazon S3 Tables L2 Construct Support
Amazon S3 Tables deliver the first cloud object store with built-in Apache Iceberg support and streamline storing tabular data at scale. L2 constructs are added to AWS CDK to support the base CfnNamespace and CfnTable constructs with a more concise user interface, recommended defaults, and in-built validations.
typescript
// Create namespace
const namespace = new Namespace(this, 'MyNamespace', {
namespaceName: 'analytics_namespace',
tableBucket: myTableBucket,
});
// Create table with schema and maintenance settings
const table = new Table(this, 'MyTable', {
tableName: 'user_events',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
icebergMetadata: {
icebergSchema: {
schemaFieldList: [
{ name: 'id', type: 'int', required: true },
{ name: 'timestamp', type: 'timestamp' }
]
}
},
compaction: {
status: Status.ENABLED,
targetFileSizeMb: 128,
},
snapshotManagement: {
status: Status.ENABLED,
maxSnapshotAgeHours: 48,
minSnapshotsToKeep: 5,
}
});
CloudWatch Logs Transformer Support
New support for CloudWatch Logs Transformers allows you to process and transform log data before it's stored, providing powerful data processing capabilities.
typescript
// Create a log group
const logGroup = new logs.LogGroup(this, 'MyLogGroup');
// Create a JSON parser processor
const jsonParser = new logs.ParserProcessor({
type: logs.ParserProcessorType.JSON
});
// Create a processor to add keys
const addKeysProcessor = new logs.JsonMutatorProcessor({
type: logs.JsonMutatorType.ADD_KEYS,
addKeysOptions: {
entries: [{
key: 'metadata.transformed_in',
value: 'CloudWatchLogs'
}]
}});
// Create a transformer with these processors
new logs.Transformer(this, 'Transformer', {
transformerName: 'MyTransformer',
logGroup: logGroup,
transformerConfig: [jsonParser, addKeysProcessor]
});
RDS Database Insights for Instances
Database Insights support has been extended to RDS instances, providing enhanced monitoring capabilities similar to what was previously available only for Aurora clusters.
typescript
import { DatabaseInstance, DatabaseInstanceEngine, DatabaseInsightsMode } from 'aws-cdk-lib/aws-rds';
const instance = new DatabaseInstance(this, 'MyDatabase', {
engine: DatabaseInstanceEngine.mysql({ version: MysqlEngineVersion.VER_8_0 }),
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO),
vpc: myVpc,
// Enable Database Insights for enhanced monitoring
databaseInsightsMode: DatabaseInsightsMode.STANDARD,
});
Enhanced CloudWatch Dashboard Features
New CloudWatch dashboard capabilities include search expressions and improved metric visibility controls.
typescript
import { Dashboard, GraphWidget, Metric } from 'aws-cdk-lib/aws-cloudwatch';
const dashboard = new Dashboard(this, 'MyDashboard');
dashboard.addWidgets(
new GraphWidget({
title: 'Application Metrics',
// New search expression support
searchExpression: 'SEARCH(\'{AWS/Lambda,FunctionName} MetricName="Duration"\')',
// Enhanced metric visibility controls
left: [
new Metric({
namespace: 'AWS/Lambda',
metricName: 'Duration',
// New properties for better control
id: 'duration-metric',
visible: true,
}),
],
})
);
CLI Enhancements
Enhanced Diff Command with Move Detection
The cdk diff command now intelligently detects when resources are moved rather than deleted and recreated, providing clearer insights into your infrastructure changes.
bash
# Enable move detection in diff output
cdk diff —include-moves
# Example output now shows:
Stack Service
Resources
[+] AWS::CloudWatch::Alarm SuccessRate SuccessRateAB36B766 (OR move from Messaging.SuccessRateAB36B766 via refactoring)
Stack Messaging
Resources
[-] AWS::CloudWatch::Alarm SuccessRate SuccessRateAB36B766 destroy (OR move to Service.SuccessRateAB36B766 via refactoring)
Feature Flag Management
The AWS CDK uses feature flags to enable potentially breaking behaviors in a release. Flags are stored as Context values and the AWS CDK values in cdk.json or (~/.cdk.json). The new feature flag management allows you to configure individual flags more easily. This requires aws-cdk-lib version >= 2.209.0.
bash
# Modify a specific feature flag
cdk flags --unstable=flags --set @aws-cdk/aws-redshift:columnId --value="true"
# View all active and missing feature flags
cdk flags --unstable=flags --all
ESM Plugin Support
CDK plugins now support ECMAScript Modules (ESM), providing better compatibility with modern JavaScript tooling.
javascript
// ESM plugin example
export default {
name: 'my-esm-plugin',
version: '1.0.0',
init(context) {
// Plugin initialization logic
}
};
Documentation Changes
A new way to contribute to the AWS CDK Developer Guide - Now, any page on the Dev Guide website has an “Edit this page on GitHub” link that takes you directly to the source-of-truth file in aws-cdk-guide GitHub repository.
Community and Content Highlights
Contributor Highlight
HUGE thanks to Hung Tran for 6 merged PRs in July! They made multiple high impact contributions including Bedrock models, ECS Windows 2025 AMI, Lambda insights versions. We also celebrate mazyu36, Tietew and badmintoncryer for their impactful contributions to the CDK.
Community Events
The AWS Community in Japan held a CDK Conference in July that was attended by over 500 people (video link). Many thanks to the JAWS community organizers for running this event. Some of the popular sessions were (content is in Japanese):
- CDK Contribution Workshop by Kenta Goto
- What Are All Those Files Generated by cdk init? by Tomoki Sato
- A Special Feature on Useful AWS MCP Servers for AWS CDK Development by Yoshimi Maehara
- Learning from Amplify Gen2: How to Use the AWS CDK Toolkit Library by Masahiko Murakami
Community published content
- Do You Really Know the Difference Between L1, L2, and L3 CDK Constructs? by Yusuf Adeyemo
- How to Choose Validation Approaches in AWS CDK by Kenta Goto
- Structuring and Refactoring AWS CDK Projects: Best Practices and Patterns by Robert Dahlborg
Feedback
We continue to value your feedback and contributions. If you encounter any issues or have suggestions for improvements, please:
• Report issues on our GitHub repository
• Join discussions in our community Slack
The AWS CDK team is committed to making infrastructure as code more accessible, powerful, and enjoyable. These July updates represent significant steps forward in that mission, with enhanced AWS service support, improved developer experience,
and better tooling.
Happy coding with CDK!
This content originally appeared on DEV Community and was authored by Praneeta Prakash

Praneeta Prakash | Sciencx (2025-08-14T01:13:10+00:00) AWS CDK in July 2025. Retrieved from https://www.scien.cx/2025/08/14/aws-cdk-in-july-2025/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.