This is a repository for scripts which are run infrequently and don't belong with other projects. Terraform scripts are put into separate directories inside the terraform directories. Other non-terraform scripts are kept in their own directory at the root of the project.
Terraform script for creating a temporary Keycloak instance in the Sandbox environment. This instance does not have all of the security protections used in the integration/staging/production version of Keycloak, so it should only be used for testing new Keycloak configuration.
See the Keycloak Sandbox Readme for setup instructions.
Terraform script for creating a temporary Elastic Container Registry with image scanning in the Sandbox account. This is useful for testing the image scanning results of Docker image upgrades.
See the ECR Sandbox Readme for setup instructions.
This is a python script which is run on GitHub. It generates an html file and a Slack message which show which repositories have out of date versions deployed to the staging and production environments. It does this by looking at the release tags on each of the release-$environment branches.
The GitHub action to run the script is here and when the action is run, it generates an html file like this one.
There is only one dependency outside the standard python library which will need to be installed to run this locally. You can install this system wide by running pip install quik but it's better to use a virtual environment.
You will need to use Python 3.
For the Slack url environment variable, you can set it to a real Slack webhook url if you want to send messages to Slack or leave it unset and it will print the Slack message json to console.
cd release-versions
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export GITHUB_API_TOKEN=valid_api_token
python generate_release_file.pyThis will print the slack json to the console and generate an output.html file which you can view in a browser.`
deactivate
rm -r venv