Feature request: enable feature flags when running tests #18535
Labels
@aws-cdk/aws-kms
Related to AWS Key Management
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p1
Description
Right now, feature flags in
cdk.json
take effect when inside of acdk synth
, but are not picked up when in tests. @nija-at says that this is intentional.Use Case
I don't think this is a very sane default for users of cdk: I can totally see why people working on cdk would not want feature flags to automagically get enabled in tests, but IMO that's not appropriate behavior for users of cdk. For example, we recently started getting warnings like this when running
cdk synth
:This felt pretty silly to us, because even though we had the
@aws-cdk/aws-kms:defaultKeyPolicies
enabled in ourcdk.json
file, we could not remove thistrustAccountIdentities
parameter without breaking tests.Proposed Solution
I'd love to see cdk.json feature flags handled the same way between
cdk synth
and unittests.Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: