Skip to main content

Running Terraform for Probations

Work in progress - As we are still in the early stages of the Platform Operations team, this page will be updated as we continue to refine our support processes and gain familiarity with Probations.

Running Terraform for Probations

Guidance for running terraform locally in legacy accounts can be found here - note that there are different methods for this, depending on which repository you are working with:

  • Overview: Ensure that you have generated the relevant access keys to work with the relevant Probations Service(s) - you may want to consider saving the code snippet from this section into a bash script on your machine, then creating an alias to run it for you.
    • This assumes that you have been set up with an AWS Account for hmpps-probations. If you do not have this, speak to a member of the team
  • Method 1: Ensure that you have cloned the relevant repository, as well as the hmpps-delius-pipelines and hmpps-env-configs repository at the same level, for example:
ls my_probations_folder/
hmpps-delius-pipelines
hmpps-env-configs
hmpps-mis-terraform

You should then set up the local aliases as outlined in the document, and attempt to run plan/apply commands as outlined

  • Method 2: Ensure that you have cloned the relevant environment and updated your ENVIRONMENT_NAME and COMPONENT values within the .env file as appropriate
  • Method 3: Ensure that you have the hmpps-delius-transit-gateway repository cloned - adapt the script as required depending on the environment that you are targeting

NOTE: Method 1 is the most commonly used method for Probations Terraform repositories. Method 2 pertains to the alfresco + hmpps-engineering-pipelines repos, and Method 3 pertains to the hmpps-delius-transit-gateway repository. If you are unsure which method to use, please reach out to a member of the team for guidance.

This page was last reviewed on 9 September 2026. It needs to be reviewed again on 9 March 2027 .