Skip to content

Commit 0e9c249

Browse files
Merge pull request #902 from NHSDigital/feature/made14-NRL-774-terraform-update
NRL-774 Update Terraform to 1.9.8
2 parents 3a8ec3c + 1b0e075 commit 0e9c249

File tree

8 files changed

+32
-8
lines changed

8 files changed

+32
-8
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ awscli 2.15.11
22
poetry 1.8.2
33
jq 1.7.1
44
python 3.12.2
5-
terraform 1.3.4
5+
terraform 1.9.8
66
java zulu-jre-17.42.19
77
yq 4.35.2
88
allure 2.27.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ For an easy way to make sure your local system matches the requirements needed y
3636
- [poetry](https://python-poetry.org/docs/) (this repository uses poetry ^1.5.1)
3737
- [pyenv](https://github.com/pyenv/pyenv) (this repository uses python ^3.9.15)
3838
- jq
39-
- terraform (this repository uses terraform ^1.3.4)
40-
- [tfenv](https://github.com/tfutils/tfenv) (this repository uses terraform 1.3.4)
39+
- terraform
40+
- [tfenv](https://github.com/tfutils/tfenv)
4141
- coreutils
4242

4343
Swagger generation requirements.

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.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.4
1+
1.9.8

0 commit comments

Comments
 (0)