Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
}
}
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 })
}
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 })
}