How to use the aws-cdk.destroyStack function in aws-cdk

To help you get started, we’ve selected a few aws-cdk 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 seagull-js / seagull / packages / deploy-aws / src / seagull_app.ts View on Github external
async destroyStack() {
    const sdk = new cdk.SDK({})
    const synthStack = this.synthesizeStack(this.projectName)
    const env = synthStack.environment
    await cdk.bootstrapEnvironment(env, sdk, 'CDKToolkit', undefined)
    await cdk.destroyStack({ sdk, stack: synthStack })
  }

aws-cdk

CDK Toolkit, the command line tool for CDK apps

Apache-2.0
Latest version published 4 days ago

Package Health Score

95 / 100
Full package analysis