Skip to content

Commit 9756e7f

Browse files
Merge pull request #188 from companieshouse/docs/add-tf-readme
docs: add terraform ecs readme
2 parents b28af22 + 73326a8 commit 9756e7f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,32 @@ API handling CRUD operations on CH Ordering Service
3131
[1]: https://www.oracle.com/java/technologies/downloads/#java21
3232
[2]: https://maven.apache.org/download.cgi
3333
[3]: https://git-scm.com/downloads
34+
35+
## Terraform ECS
36+
37+
### What does this code do?
38+
39+
The code present in this repository is used to define and deploy a dockerised container in AWS ECS.
40+
This is done by calling a [module](https://github.com/companieshouse/terraform-modules/tree/main/aws/ecs) from terraform-modules. Application specific attributes are injected and the service is then deployed using Terraform via the CICD platform 'Concourse'.
41+
42+
43+
Application specific attributes | Value | Description
44+
:---------|:-----------------------------------------------------------------------------|:-----------
45+
**ECS Cluster** | order-service | ECS cluster (stack) the service belongs to
46+
**Load balancer** | {env}-chs-apichgovuk <br> {env}-chs-apichgovuk-private | The load balancer that sits in front of the service
47+
**Concourse pipeline** |[Pipeline link](https://ci-platform.companieshouse.gov.uk/teams/team-development/pipelines/orders.api.ch.gov.uk) <br> [Pipeline code](https://github.com/companieshouse/ci-pipelines/blob/master/pipelines/ssplatform/team-development/orders.api.ch.gov.uk) | Concourse pipeline link in shared services
48+
49+
50+
### Contributing
51+
- Please refer to the [ECS Development and Infrastructure Documentation](https://companieshouse.atlassian.net/wiki/spaces/DEVOPS/pages/4390649858/Copy+of+ECS+Development+and+Infrastructure+Documentation+Updated) for detailed information on the infrastructure being deployed.
52+
53+
### Testing
54+
- Ensure the terraform runner local plan executes without issues. For information on terraform runners please see the [Terraform Runner Quickstart guide](https://companieshouse.atlassian.net/wiki/spaces/DEVOPS/pages/1694236886/Terraform+Runner+Quickstart).
55+
- If you encounter any issues or have questions, reach out to the team on the **#platform** slack channel.
56+
57+
### Vault Configuration Updates
58+
- Any secrets required for this service will be stored in Vault. For any updates to the Vault configuration, please consult with the **#platform** team and submit a workflow request.
59+
60+
### Useful Links
61+
- [ECS service config dev repository](https://github.com/companieshouse/ecs-service-configs-dev)
62+
- [ECS service config production repository](https://github.com/companieshouse/ecs-service-configs-production)

0 commit comments

Comments
 (0)