AWS Security ChangesHomeSearch

AWS cdk high security documentation change

Service: cdk · 2026-03-07 · Security-related high

File: cdk/v2/guide/hello-world.md

Summary

Changed recommendation from 'recommended for production' to 'not recommended for production' regarding hardcoding AWS environment credentials

Security assessment

Corrects a security anti-pattern by advising against hardcoding credentials in production environments, which directly addresses a security risk of credential exposure. This provides explicit security guidance.

Diff

diff --git a/cdk/v2/guide/hello-world.md b/cdk/v2/guide/hello-world.md
index e586201d5..e6ef7ef3a 100644
--- a//cdk/v2/guide/hello-world.md
+++ b//cdk/v2/guide/hello-world.md
@@ -416 +416 @@ When you use the AWS CLI to configure security credentials on your local machine
-Next, you will configure the AWS environment for your CDK stack by modifying the `HelloCdkStack` instance in your _application file_. For this tutorial, you will hard code your AWS environment information. This is recommended for production environments. For information on other ways to configure environments, see [Configure environments to use with the AWS CDK](./configure-env.html).
+Next, you will configure the AWS environment for your CDK stack by modifying the `HelloCdkStack` instance in your _application file_. For this tutorial, you will hard code your AWS environment information. This is not recommended for production environments. For information on other ways to configure environments, see [Configure environments to use with the AWS CDK](./configure-env.html).