Skip to content

Commit a114ecb

Browse files
Merge branch 'main' into get-person-service
2 parents 645fc2d + 1da751c commit a114ecb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/guides/setting-up-a-new-consumer.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ per environment.
1919
```bash
2020
make generate-client-certificate
2121
```
22-
2322
This will output three files in the ./scripts/client_certificates directory:
2423

2524
- a private key e.g. `dev-nhs-client.key`
@@ -114,3 +113,14 @@ kubectl -n hmpps-integration-api-[environment] get secrets [your queue secret na
114113
5. Create new [Cloud Platform Environments GitHub repository](https://github.com/ministryofjustice/cloud-platform-environments/tree/main) branch
115114
6. Update terraform to load the secret value from AWS and update filter_policy value. Follow [Example](https://github.com/ministryofjustice/cloud-platform-environments/pull/22111/files). Note: The name of aws_secretsmanager_secret module has to be same as the secret name created from step 4/5 above.
116115
7. Follow steps 3-8 in [Create an API key](#create-an-api-key) to merge branch to main.
116+
117+
## Create a new endpoint for a client
118+
119+
### Create basic infrastructure
120+
Within the [Cloud Platform Environments GitHub repository](https://github.com/ministryofjustice/cloud-platform-environments/tree/main) and the namespace of the environment:
121+
122+
1. Create a branch.
123+
2. Add a new API Gateway resource, a SQS method, a SQS method response, and an integration. Example: [api_gateway.tf](https://github.com/ministryofjustice/cloud-platform-environments/pull/22695/files)
124+
3. Ensure that all the permissions are up-to-date and add a new role and policy for your new resource. Example: [iam.tf](https://github.com/ministryofjustice/cloud-platform-environments/pull/22787/files#diff-a376622fa4a4c2fd9404d5ee4221487259264608a0cbe36b99c150c472558f29)
125+
4. Check that the integration is pointing to the right queue. Example: [api_gateway.tf](https://github.com/ministryofjustice/cloud-platform-environments/pull/22795/files)
126+
5. Deploy and test (do not use Postman, rather use a GET cURL command with "x-api-key" as your header.)

0 commit comments

Comments
 (0)