New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

custom-stack-deployment

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-stack-deployment

Construct for adding custom stack deployment to CDK pipeline

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

This library allows custom stack deployment to the AWS regions where regular CDK pipeline deployment isn't supported yet. The declaration and usage of custom stage is almost identical to using regular CDK stage

Declaration

import { CustomStage, CustomStageProps } from 'custom-stack-deployment';

// additional props that can be passed to custom stage
export interface CustomApplicationStageProps extends CustomStageProps {
  vpcID: string;
}

// declare custom deployment stage
export class CustomApplicationStage extends CustomStage {
  constructor(scope: Construct, id: string, props: CustomApplicationStageProps) {
    super(scope, id, props);

    // instantiate application stacks
    new ApplicationStack(this, 'app', {
      // set environment where stack will be deployed
      env: props.env,
      // pass additional props to the stacks
      vpcID: props.vpcID,
    });
  }
}

Usage

// instantiate the custom stage
const customDeploymentApp = new CustomApplicationStage(this, 'CustomStage', {
  // pass synth step of the pipeline
  synth: pipeline.synth,
  // set environment where stage's stacks will be deployed
  env: {
    account: '1234567890',
    region:  'af-south-1',
  },
  // pass additional props to the stacks
  vpcID: 'vpc0987654321'
});

// add stage to the pipeline's wave
const wave = pipeline.addWave('CustomWave');
wave.addPost(customDeploymentApp);

FAQs

Package last updated on 09 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc