Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(scope: Construct, props: BuildModulesStateProps) {
super(scope, `${props.stageName}BuildStage${props.stageNo}`)
const { stageName, stageModules, stageNo } = props
this.stageState = new Parallel(this, `${stageName}Build${stageNo}`, {
inputPath: '$',
outputPath: '$' // Pass changes
})
stageModules.forEach((moduleName, moduleIndex) => {
const artifacts = new S3BucketBuildArtifacts({
bucket: props.artifactsBucket,
name: `${stageName}_${moduleName}_build.zip`,
includeBuildId: true,
packageZip: true
})
this.buildModuleProjects[moduleName] = new codeBuild.Project(
this,
`${stageName}_${moduleName}_build_project`,
{
constructor(scope: Construct, props: DeployModulesStageProps) {
super(scope, `${props.stageName}DeployStage${props.stageNo}`)
const { stageName, stageModules, stageNo } = props
this.stageState = new Parallel(this, `${stageName}Deploy${stageNo}`, {
inputPath: '$',
outputPath: '$'
})
stageModules.forEach((moduleName, moduleIndex) => {
this.deployModuleProjects[moduleName] = new codeBuild.Project(
this,
`${stageName}_${moduleName}_deploy_project`,
{
projectName: `${stageName}_${moduleName}_deploy`,
buildSpec: {
version: '0.2',
env: {
variables: {
MODULE_NAME: moduleName,
SLIC_STAGE: stageName,