How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • // Modern API
    const modernPipeline = new pipelines.CodePipeline(this, 'Pipeline', {
      selfMutation: false,
      synth: new pipelines.ShellStep('Synth', {
        input: pipelines.CodePipelineSource.connection('my-org/my-app', 'main', {
          connectionArn: 'arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41', // Created using the AWS console * });',
        }),
        commands: [
          'npm ci',
          'npm run build',
          'npx cdk synth',
        ],
      }),
    });
    
    // Original API
    const cloudAssemblyArtifact = new codepipeline.Artifact();
    const originalPipeline = new pipelines.CdkPipeline(this, 'Pipeline', {
      selfMutating: false,
      cloudAssemblyArtifact,
    });
    
    Docs
  • const pipeline = new pipelines.CodePipeline(this, 'Pipeline', {
      // Encrypt artifacts, required for cross-account deployments
      crossAccountKeys: true,
      synth: new pipelines.ShellStep('Synth', {
        input: pipelines.CodePipelineSource.connection('my-org/my-app', 'main', {
          connectionArn: 'arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41', // Created using the AWS console * });',
        }),
        commands: [
          'npm ci',
          'npm run build',
          'npx cdk synth',
        ],
      }),
    });
    
    Docs
  • const script = new pipelines.ShellStep('MainScript', {
       commands: ['npm ci','npm run build','npx cdk synth'],
       input: pipelines.CodePipelineSource.gitHub('org/source1', 'main'),
       additionalInputs: {
         '../siblingdir': pipelines.CodePipelineSource.gitHub('org/source2', 'main'),
       }
    });
    
    Docs
  • const pipeline = new pipelines.CodePipeline(this, 'Pipeline', {
      synth: new pipelines.ShellStep('Synth', {
        input: pipelines.CodePipelineSource.connection('my-org/my-app', 'main', {
          connectionArn: 'arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41', // Created using the AWS console * });',
        }),
        commands: ['npm ci','npm run build','npx cdk synth'],
      }),
    
      // Turn this on because the pipeline uses Docker image assets
      dockerEnabledForSelfMutation: true,
    });
    
    pipeline.addWave('MyWave', {
      post: [
        new pipelines.CodeBuildStep('RunApproval', {
          commands: ['command-from-image'],
          buildEnvironment: {
            // The user of a Docker image asset in the pipeline requires turning on
            // 'dockerEnabledForSelfMutation'.
            buildImage: codebuild.LinuxBuildImage.fromAsset(this, 'Image', {
              directory: './docker-image',
            }),
          },
        }),
      ],
    });
    
    Docs
  • declare const pipeline: pipelines.CodePipeline;
    const preprod = new MyApplicationStage(this, 'PreProd');
    const prod = new MyApplicationStage(this, 'Prod');
    
    pipeline.addStage(preprod, {
      post: [
        new pipelines.ShellStep('Validate Endpoint', {
          commands: ['curl -Ssf https://my.webservice.com/'],
        }),
      ],
    });
    pipeline.addStage(prod, {
      pre: [
        new pipelines.ManualApprovalStep('PromoteToProd'),
      ],
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples