How to use the aws-cdk.loadToolkitInfo 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 / src / deploy.ts View on Github external
private async deployCDKApp() {
    const env = this.synthStack.environment
    const toolkitInfo = await cdk.loadToolkitInfo(env, this.sdk, 'CDKToolkit')
    await cdk.bootstrapEnvironment(env, this.sdk, 'CDKToolkit', undefined)
    const stack = this.synthStack
    await cdk.deployStack({ sdk: this.sdk, stack, toolkitInfo })
    return true
  }
}
github seagull-js / seagull / packages / pipeline / src / pipeline.ts View on Github external
private async deployCDKPipeline() {
    const env = this.synthStack.environment
    const toolkitInfo = await cdk.loadToolkitInfo(env, this.sdk, 'CDKToolkit')
    await cdk.bootstrapEnvironment(env, this.sdk, 'CDKToolkit', undefined)
    const sdk = this.sdk
    const stack = this.synthStack
    await cdk.deployStack({ sdk, stack, toolkitInfo })
  }
github seagull-js / seagull / packages / deploy-aws / src / seagull_app.ts View on Github external
async deployStack() {
    const sdk = new cdk.SDK({})
    const synthStack = this.synthesizeStack(this.projectName)
    const env = synthStack.environment
    await cdk.bootstrapEnvironment(env, sdk, 'CDKToolkit', undefined)
    const toolkitInfo = await cdk.loadToolkitInfo(env, sdk, 'CDKToolkit')
    await cdk.deployStack({ sdk, stack: synthStack, toolkitInfo })
  }

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