Repository navigation
feat(aws-cdk): allow disabling deployment CloudTrail lookups - #2089
proton0210 wants to merge 1 commit into
Conversation
|
Automated review A maintainer will still review this — treat the notes below as a starting point. 📌 Commit This PR ( The change is clean, additive, and backwards-compatible. The guard keys specifically off No issues found on this change. One product decision a maintainer may wish to confirm sits outside engineering review: the linked request asked for CloudTrail off by default, while this ships it as an on-by-default opt-out. 🔴 0 blocking · 🟡 0 recommended · ⚪ 0 optional Generated automatically. React 👍 or 👎 to tell us whether this review helped, so we can improve these reviews. |
|
@proton0210 I really think this feature ought to be disabled by default for Instead, it should just tell people to run |
Related to #2084; implements the opt-out discussed there while retaining the existing default.
Failed deployments automatically look up CloudTrail events, which can add unrelated or not-yet-delivered context. Add
cdk deploy --no-cloudtrailto skip those lookups while keeping CloudFormation failure messages and other resource diagnostics. The equivalent"cloudtrail": falsesetting incdk.jsonpersists the preference; an explicit CLI flag overrides it. Programmatic deployments acceptcloudTrail: false.The option reaches change-set preparation, classic deployment, delegated change-set execution, and the failure diagnoser. CloudTrail remains enabled by default, including for explicit
cdk diagnose. CLI parser, input types, conversion helpers, and type registry were regenerated from their source configuration.Validation:
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license