I am trying to deploy an AWS CDK Pipeline into a personal AWS account. I am following this tutorial.
I get the following error:
19:38:51 | CREATE_FAILED | AWS::CodePipeline::Pipeline | MyPipeline92D3D757
Internal Failure
This error is also seen in AWS CloudFormation, when I look at the Stack, it says it failed at creating the pipeline.
For me, this was caused because the AWS CodePipeline could not authenticate with my (personal) Github account. The AWS CodePipeline is needed when creating a CDK pipeline.
I had defined my Pipeline to read the source code from my Github account:
The Pipeline could not be created, because my AWS account could not authenticate with my Github account. AWS uses a secret stored in AWS Secrets Manager, called
github-token.I did not have this, so I created the
github-tokenas follows:repoandadmin:repo_hookscopes selected.github-token