Skip to content

Fix error in Java MyPipelineStack #354

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

Merged
1 commit merged into from
Sep 29, 2021
Merged

Fix error in Java MyPipelineStack #354

1 commit merged into from
Sep 29, 2021

Conversation

lpshanley
Copy link
Contributor

@lpshanley lpshanley commented Sep 5, 2021

Overview

  • For Java projects there is no package.json to install AWS-CDK. This causes errors when attempting to deploy the pipeline as the npm ci step depends on this file.
  • Fixed the commands to Arrays.asList("npm install -g aws-sdk", "cdk synth") to correct this behavior.

Testing

  • Created new pipeline following the updated steps and was successful in pipeline creation and deployment.

Relevant links

Issue #, if available: n/a

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Overview
- For Java projects there is no `package.json` to install AWS-CDK. This
causes errors when attempting to deploy the pipeline as the `npm ci`
step depends on this file.
- Fixed the commands to `Arrays.asList("npm install -g aws-sdk", "cdk
  synth")` to correct this behavior.

Testing
- Created new pipeline following the updated steps and was successful in
  pipeline creation and deployment.

Relevant links
- https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines-readme.html
- In the `Synth and sources` section this behavior is described.
@ghost
Copy link

ghost commented Sep 29, 2021

Yes, good catch. The CDK Toolkit isn't installed in Java projects (or Python, or C#). Will fix that in the other two languages too.

@ghost ghost merged commit 7d563cb into awsdocs:main Sep 29, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant