Skip to content

Commit 47b5bcc

Browse files
committed
[NRL-774] Add uncommitted comment to account-wide-infra README about codebuild errors
1 parent cff6e67 commit 47b5bcc

File tree

1 file changed

+24
-0
lines changed
  • terraform/account-wide-infrastructure

1 file changed

+24
-0
lines changed

terraform/account-wide-infrastructure/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,30 @@ Once you're happy with your planned changes, you can apply them with:
4343
terraform apply
4444
```
4545
46+
### If you get "Error: creating CodeBuild Webhook"
47+
48+
If you see this erro:
49+
50+
```
51+
│ Error: creating CodeBuild Webhook (nhsd-nrlf-ci-build-project): operation error CodeBuild: CreateWebhook, https response error StatusCode: 400, RequestID: , ResourceNotFoundException: Access token not found in CodeBuild project for server type github
52+
53+
│ with aws_codebuild_webhook.github_workflow,
54+
│ on codebuild.tf line 113, in resource "aws_codebuild_webhook" "github_workflow":
55+
│ 113: resource "aws_codebuild_webhook" "github_workflow" {
56+
```
57+
58+
You will need to add the Github PAT credential for codebuild to connect to Github. To fix this:
59+
60+
1. Go to the AWS console and find the Codebuild service
61+
2. Select the created nhsd-nrlf-ci-build-project project
62+
3. Press the "Edit" button (in the top-bar)
63+
4. Where it says "You have not connected to Github", press the "Manage account credentials" link
64+
5. At the "Manage default source credential" page, choose "Personal Access Token" type, "Secrets Manager" service, and "Existing Secret" secret.
65+
6. In the "Connection" drop-down, choose the "nhsd-nrlf--codebuild-github-pat" secret
66+
7. Press the "Save" button
67+
68+
If that has worked, you should see: "Your account is successfully connected through Secrets Manager secret"
69+
4670
### Build and publish the container image for CI build
4771
4872
Once all the mgmt infra has been deployed, you need to build and publish the CI image to the ECR repo.

0 commit comments

Comments
 (0)