codepipeline: construct should allow 'disableInboundStageTransitions' to be set
See original GitHub issueThe codepipeline construct doesn’t allow the disableInboundStageTransitions property to be set. This is useful for pipelines you want to run on a schedule or some other event rather than for every source change.
There is a workaround via the CfnPipeline, but it would be great if we could do this through the construct, either in the Pipeline construct, the individual Stage constructs, or both.
Workaround code is:
const cfnPipeline = pipeline.node.findChild('Resource') as codepipeline.CfnPipeline
cfnPipeline.propertyOverrides.disableInboundStageTransitions = [{
reason: 'Pipeline is triggered by schedule not source changes',
stageName: 'Source'
}]
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:6 (3 by maintainers)
Top Results From Across the Web
CodePipeline::Pipeline StageTransition - AWS CloudFormation
The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This message is...
Read more >How can I disable transition in codepipeline via CDK?
As of CDK v2.1, the codepipeline.Pipeline class does not expose this property, but the Level1 CfnPipeline class it builds on does (github ...
Read more >@aws-cdk/aws-codepipeline - npm
Construct an empty Pipeline const pipeline = new codepipeline. ... Actions that don't take an AWS resource will accept an explicit region ...
Read more >AWS::CodePipeline::Pipeline StageTransition - 亚马逊云科技
The name of the pipeline in which you want to disable the flow of artifacts from one stage to another.
Read more >awslabs/aws-cdk - Gitter
hey there! is there a way to create a codepipeline pipeline source stage with ... not clear how to combine these with a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still relevant.
I’m using cdk version 1.109.0 (build c647e38)
`import { Repository } from ‘@aws-cdk/aws-codecommit’; import { CodeCommitSourceAction } from “@aws-cdk/aws-codepipeline-actions”; import { Artifact, CfnPipeline } from ‘@aws-cdk/aws-codepipeline’; import { Construct, Stack, StackProps } from ‘@aws-cdk/core’; import { CdkPipeline, SimpleSynthAction } from ‘@aws-cdk/pipelines’;
interface PipelineStackProps extends StackProps { env: any }
export class PipelineStack extends Stack { constructor(scope: Construct, id: string, props: PipelineStackProps) { super(scope, id, props);
} } `