/hmpps-delius-bastion

Bastion servers for the Delius migration project.

Primary LanguageHCL

hmpps-delius-bastion

Repo for the delius bastion

Peering with application VPC

Create a branch then add an entry to the list bastion_peering_ids in the file env_configs/dev.tfvars or appropriate env.

Format is "{bastion peering id}, {vpc cidr block}, {environment name}" e.g.

"pcx-0ff5d735b31edffa7,10.161.4.0/23,delius-core-sandpit"

It's worth adding an output to the VPC Terraform to make it easier to get these values e.g.

output "bastion_peering_id_string" {
  value = "${aws_vpc_peering_connection.bastion_peering.id},${aws_vpc.vpc.cidr_block},${local.environment_name}"
}

GitHub Actions

An action to delete the branch after merge has been added. Also an action that will tag when branch is merged to master See https://github.com/anothrNick/github-tag-action

Bumping

Manual Bumping: Any commit message that includes #major, #minor, or #patch will trigger the respective version bump. If two or more are present, the highest-ranking one will take precedence.

Automatic Bumping: If no #major, #minor or #patch tag is contained in the commit messages, it will bump whichever DEFAULT_BUMP is set to (which is minor by default).

Note: This action will not bump the tag if the HEAD commit has already been tagged.