-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-cdk: Batch build configuration #22087
Comments
Commenting to bump |
I think the buildspec template you're submitting isn't quite right. It looks to me like you should have your batch configurations separated from your phase configurations |
|
Regardless of the bug in OP's BuildSpec, there does indeed appear to be an issue with CDK generated build specifications. According to the syntax at https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html CDK fails both these requirements, but CodeBuild is apparently forgiving and accepts JSON, at least when the specification is inlined. CodeBuild also accepts that the version property is a string, but only when doing a simple build run. When doing a batch run, it will fail if the version is a string
This is simple enough to fix manually, but not so easy to correct during CDK synth. I encountered other issues while trying to enable batch builds from the L3 construct pipelines.CodePipeline and I'll create a new GitHub issue with a workaround implementation for everything. |
Describe the bug
I am using the pipeline from https://github.com/awslabs/aws-simple-cicd/. I need to enable batch build in test execution stage to run cypress tests in parallel.
I modified one of the project files to
When I go to the console, the buildspec.yml uploaded looks like this:
But the action on trigger throws:
Expected Behavior
Expected the batch build to be triggered
Current Behavior
Throws the following error:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
Would be good to at-least have documentation on this. I did see YML file sample the batch build but nothing for when it is to be added in CDK files directly
CDK CLI Version
2.35.0
Framework Version
No response
Node.js Version
14.18.3
OS
Linux
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: