Skip to content

cloud-platform-go-get-module stores the latest cloud-platform-terraform-* releases, and exposes them to be queried via it's API

License

Notifications You must be signed in to change notification settings

ministryofjustice/cloud-platform-go-get-module

Repository files navigation

cloud-platform-go-get-module

cloud-platform-go-get-module is an API which provides an interface to GET and POST github repository latest release tags. The aim is to enforce the use of the latest terraform modules on our users by checking their module use when they raise a PR. This is done through a github action in the environments repo

The API stores the latest release tag for all "cloud-platform-terraform-*" repos. When the api starts it searches for the latest release tags for the source repos ("cloud-platform-terraform-*") and then updates redis. The API also has functionality to receive version updates, these can be updated from a github action run from the source repos for example.

Usage

Head to the Makefile for basic commands

Deployment strategy

Once you have merged your changes into main github actions will deploy the app to dev (which is hosted on the live-2 cluster). Once your changes have been deploy you can find them in the cloud-platform-go-get-module namespace and the API can be found on dev url When you are happy that there are no issues with this deployment you can release to production (which is hosted on the live cluster) by tagging a github release using semver eg. 1.2.3. Once the action has deployed the change you will find the API in the cloud-platform-got-get-module-prod namespace and the deployed to the production url

terraform in environments repo

Originally, the deployment of terraform to live-2 was covered by an automated pipeline, we have since removed this pipeline as it wasn't being used. If you need to update the terraform/ cluster resources then you will need to manually deploy the terraform to live-2

Usage

curl -i https://modules.apps.live-2.cloud-platform.service.justice.gov.uk/
curl -i https://modules.apps.live-2.cloud-platform.service.justice.gov.uk/cloud-platform-terraform-$REPO_SUFFIX
curl -X POST -H 'X-API-Key: $API_KEY' -i https://modules.apps.live-2.cloud-platform.service.justice.gov.uk/update/$REPO_NAME/$NEW_VERSION  

About

cloud-platform-go-get-module stores the latest cloud-platform-terraform-* releases, and exposes them to be queried via it's API

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published