Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ awscli 2.15.11
poetry 1.8.2
jq 1.7.1
python 3.12.2
terraform 1.3.4
terraform 1.9.8
java zulu-jre-17.42.19
yq 4.35.2
allure 2.27.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ For an easy way to make sure your local system matches the requirements needed y
- [poetry](https://python-poetry.org/docs/) (this repository uses poetry ^1.5.1)
- [pyenv](https://github.com/pyenv/pyenv) (this repository uses python ^3.9.15)
- jq
- terraform (this repository uses terraform ^1.3.4)
- [tfenv](https://github.com/tfutils/tfenv) (this repository uses terraform 1.3.4)
- terraform
- [tfenv](https://github.com/tfutils/tfenv)
- coreutils

Swagger generation requirements.
Expand Down
24 changes: 24 additions & 0 deletions terraform/account-wide-infrastructure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,30 @@ Once you're happy with your planned changes, you can apply them with:
terraform apply
```

### If you get "Error: creating CodeBuild Webhook"

If you see this erro:

```
│ 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
│ with aws_codebuild_webhook.github_workflow,
│ on codebuild.tf line 113, in resource "aws_codebuild_webhook" "github_workflow":
│ 113: resource "aws_codebuild_webhook" "github_workflow" {
```

You will need to add the Github PAT credential for codebuild to connect to Github. To fix this:

1. Go to the AWS console and find the Codebuild service
2. Select the created nhsd-nrlf-ci-build-project project
3. Press the "Edit" button (in the top-bar)
4. Where it says "You have not connected to Github", press the "Manage account credentials" link
5. At the "Manage default source credential" page, choose "Personal Access Token" type, "Secrets Manager" service, and "Existing Secret" secret.
6. In the "Connection" drop-down, choose the "nhsd-nrlf--codebuild-github-pat" secret
7. Press the "Save" button

If that has worked, you should see: "Your account is successfully connected through Secrets Manager secret"

### Build and publish the container image for CI build

Once all the mgmt infra has been deployed, you need to build and publish the CI image to the ECR repo.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.4
1.9.8
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.4
1.9.8
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.4
1.9.8
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.4
1.9.8
2 changes: 1 addition & 1 deletion terraform/infrastructure/.terraform-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.4
1.9.8
Loading