You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(core): Add stage prefix to stack name shortening process (#25359)
There is an issue in the stack name generation process where the prefix generated from assembly's stage name is not taken into account when shortening a stack name to meet the requirement of being equal or less than 128 characters longs.
This can lead to generating an invalid stack name greater than 128 characters: since the stack name is shortened to 128 characters, when the prefix is added, the limit is exceeded.
Current solution:
- Adding a feature flag
- With the feature flag on, the prefix is processed within the generateUniqueName function.
- With the feature flag off, stack name generation is not changed
Fixes#23628
NOTE: This PR was previously opened, but it was merged before I was able to add a feature flag, which ended up adding breaking changes and the changes of the PR were rolled back. Old PR: #24443
Copy file name to clipboardExpand all lines: packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md
+23-1
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ Flags come in three types:
53
53
|[@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments](#aws-cdkaws-secretsmanageruseattachedsecretresourcepolicyforsecrettargetattachments)| SecretTargetAttachments uses the ResourcePolicy of the attached Secret. | 2.67.0 | (fix) |
54
54
|[@aws-cdk/aws-redshift:columnId](#aws-cdkaws-redshiftcolumnid)| Whether to use an ID to track Redshift column changes | 2.68.0 | (fix) |
|[@aws-cdk/core:includePrefixInUniqueNameGeneration](#aws-cdkcoreincludeprefixinuniquenamegeneration)| Include the stack prefix in the stack name generation process | V2NEXT | (fix) |
56
57
57
58
<!-- END table -->
58
59
@@ -96,7 +97,8 @@ The following json shows the current recommended set of flags, as `cdk init` wou
0 commit comments