Closed jagadeeshmaneri closed 1 year ago
@jagadeeshmaneri will it be sufficient to be able to specify path
when passing the repo? E.g. see the path
attribute below:
blueprints.CodePipelineStack.builder()
.application("npx ts-node bin/pipeline.ts") // this is supported at the moment, you can override the app
.name("blueprints-eks-pipeline")
.owner("aws-samples")
.codeBuildPolicies(blueprints.DEFAULT_BUILD_POLICIES)
.repository({
repoUrl: 'cdk-eks-blueprints-patterns',
credentialsSecretName: 'github-token',
targetRevision: 'main',
path: 'infra/cdk' // this attribute is supported now but ignored by CodePipeline at the moment.
})
This is addressed, closing the issue.
Describe the bug
Currently, we take the approach of writing cdk code alongside the application code.
The cdk code is organized to be a subfolder of the GitHub repository root folder, and all the
/bin
,/lib
,cdk.json
, etc., are actually not inside the root folder of the repo. With thesynth
step defined with an assumption ofcdk.json
to be the repository's root folder in EKS Blueprints, thebuild
stage in the pipeline fails with issues like belowbuild
script not defined inpackage.json
--app
is required either in command-line, in cdk.json or in~/.cdk.json
Expected Behavior
It will be a good option to let developers define the
synth
step behavior, so we write the commands that are required for the pipeline to execute (along withnpx cdk synth
) before getting intoAssets
or other stages.Current Behavior
With default
installCommands
andcommands
already defined by the CodePipleine'sbuild
method, multiple issues (mentioned above) are encountered.Reproduction Steps
Create a pipeline with CDK code that is part of the subfolder inside the repository's root folder.
Possible Solution
Update the
build
method to return thecdkpipelines.CodePipeline
with developer-definedPipelineProps
for thesynth
stage.Additional Information/Context
No response
CDK CLI Version
2.64.0
EKS Blueprints Version
1.5.4
Node.js Version
16.16.0
Environment details (OS name and version, etc.)
MacOS, 13
Other information
No response