-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(cdk/pipelines): CFN InternalFailure when provisioning pipeline from CI/CD tutorial #28376
Comments
Looks like the pipeline was not successfully created by cloudformation due to internal failure. Some things I would recommend for the next steps to investigate:
|
Thanks for taking a look @pahud,
Do you have any further suggestions to investigate? |
OK.
This essentially use the GitHub (Version 1) action which is not recommended(details). Please use the const pipeline = new pipelines.CodePipeline(this, 'Pipeline', {
pipelineName: 'MyPipeline',
synth: new pipelines.ShellStep('Synth', {
// input: pipelines.CodePipelineSource.gitHub('austinegri/TmpPipeline', 'mainline'),
input: pipelines.CodePipelineSource.connection('austinegri/TmpPipeline', 'mainline', {
connectionArn: 'arn:aws:codestar-connections:<REGION>:xxxxxxxxxxxx:connection/xxxxxxxxx',
}),
commands: ['npm ci', 'npm run build', 'npx cdk synth']
})
}); |
Thank you so much @pahud! Using the V2 connection I was able to Update - I now see that the troubleshooting section mentions needed a Github access token is needed - but this was not mentioned in the setup steps so I didn't notice this at all |
Describe the bug
I am following the tutorial from https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html#cdk_pipeline_define.
Bootstrap succeeds - it has admin access.
I run
cdk deploy
from the above section and I see the following in cloud formation in the PipelineStack events:I checked cloudtrail for more details on this issue - there is not a single cloudtrail event during the deployment that has an
Error Code
value - manual inspection of each resource prior to the rollback shows that there don't appear to be issues.Any advice on how to investigate and fix the root cause of this failure would be appreciated!
Expected Behavior
Successful cdk deploy
Current Behavior
Internal Failure during PipelineStack create
Reproduction Steps
Steps followed from Tutorial: https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html#cdk_pipeline_bootstrap
cdk bootstrap aws://ACCOUNT-NUMBER/REGION --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess
cdk init app --language java
src/main/java/com/myorg/MyPipelineStack.java
:src/main/java/com/myorg/MyPipelineApp.java
:Possible Solution
Unclear
Additional Information/Context
No response
CDK CLI Version
2.115.0 (build 58027ee)
Framework Version
No response
Node.js Version
Welcome to Node.js v20.10.0.
OS
Ubuntu 22.04.3 LTS
Language
Java
Language Version
1.8
Other information
https://github.com/austinegri/TmpPipeline2
The text was updated successfully, but these errors were encountered: