Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(scope: Construct, name: string, resources?: any) {
super(scope, `${name}Stage`)
const pipeline: Pipeline = resources.pipeline
pipeline.addStage({
name,
actions: [
new ManualApprovalAction({
actionName: `${name}_action`
})
]
})
}
}
stageName: 'Source',
actions: [sourceAction]
})
this.addDeployStage(
StageName.stg,
orchestratorCodeBuildRole,
sourceOutputArtifact
)
this.addTestStage(sourceOutputArtifact)
this.addStage({
stageName: 'Approval',
actions: [
new ManualApprovalAction({
actionName: 'MoveToProduction'
})
]
})
this.addDeployStage(
StageName.prod,
orchestratorCodeBuildRole,
sourceOutputArtifact
)
this.addStage({
stageName: 'UpdateDeploymentState',
actions: [
new CodeBuildAction({
actionName: 'UpdateState',