corymhall/cdk-diff-action
The CDK Diff GitHub Action allows you to run CDK diff as part of your CI/CD workflow.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| githubToken | github token | yes | — |
| allowedDestroyTypes | Comma delimited list of resource types that are allowed to be destroyed | no | "" |
| failOnDestructiveChanges | Whether or not destructive changes should fail the job | no | true |
| stackSelectorPatterns | Comma delimited list of stack selector patterns. Use this to control which stages/stacks to diff. By default all stages & stacks are diffed @see https://github.com/aws/aws-cdk-cli/tree/main/packages/%40aws-cdk/toolkit-lib#stack-selection | no | "" |
| stackSelectionStrategy | Used in combination with "stackSelectorPatterns" to control which stacks to diff. Valid values are "all-stacks", "main-assembly", "only-single", "pattern-match", "pattern-must-match", "pattern-must-match-single" @default pattern-must-match if "stackSelectorPatterns" is provided, otherwise "all-stacks" @see https://github.com/aws/aws-cdk-cli/tree/main/packages/%40aws-cdk/toolkit-lib#stack-selection | no | all-stacks |
| noFailOnDestructiveChanges | List of stages where breaking changes will not fail the build | no | "" |
| cdkOutDir | The location of the CDK output directory | no | cdk.out |
| diffMethod | The method to create a stack diff. Valid values are 'change-set' or 'template-only'. Use changeset diff for the highest fidelity, including analyze resource replacements. In this method, diff will use the deploy role instead of the lookup role. Use template-only diff for a faster, less accurate diff that doesn't require permissions to create a change-set. | no | change-set |
| defaultStageDisplayName | An optional display name for the CDK default stage. | no | DefaultStage |
| title | An optional title for each diff comment on the PR. | no | "" |
Outputs
no outputs