How to use the @aws-cdk/aws-stepfunctions.Parallel function in @aws-cdk/aws-stepfunctions

To help you get started, we’ve selected a few @aws-cdk/aws-stepfunctions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fourTheorem / slic-starter / cicd / lib / stages / build-modules-stage.ts View on Github external
constructor(scope: Construct, props: BuildModulesStateProps) {
    super(scope, `${props.stageName}BuildStage${props.stageNo}`)

    const { stageName, stageModules, stageNo } = props

    this.stageState = new Parallel(this, `${stageName}Build${stageNo}`, {
      inputPath: '$',
      outputPath: '$' // Pass changes
    })

    stageModules.forEach((moduleName, moduleIndex) => {
      const artifacts = new S3BucketBuildArtifacts({
        bucket: props.artifactsBucket,
        name: `${stageName}_${moduleName}_build.zip`,
        includeBuildId: true,
        packageZip: true
      })

      this.buildModuleProjects[moduleName] = new codeBuild.Project(
        this,
        `${stageName}_${moduleName}_build_project`,
        {
github fourTheorem / slic-starter / cicd / lib / stages / deploy-modules-stage.ts View on Github external
constructor(scope: Construct, props: DeployModulesStageProps) {
    super(scope, `${props.stageName}DeployStage${props.stageNo}`)

    const { stageName, stageModules, stageNo } = props

    this.stageState = new Parallel(this, `${stageName}Deploy${stageNo}`, {
      inputPath: '$',
      outputPath: '$'
    })

    stageModules.forEach((moduleName, moduleIndex) => {
      this.deployModuleProjects[moduleName] = new codeBuild.Project(
        this,
        `${stageName}_${moduleName}_deploy_project`,
        {
          projectName: `${stageName}_${moduleName}_deploy`,
          buildSpec: {
            version: '0.2',
            env: {
              variables: {
                MODULE_NAME: moduleName,
                SLIC_STAGE: stageName,