ministryofjustice / cloud-platform

Documentation on the MoJ cloud platform
MIT License
87 stars 44 forks source link

RDS Module: Custom Security Group rule #4618

Closed sj-williams closed 1 year ago

sj-williams commented 1 year ago

Background

Modernisation Platform hosted service requires access to Cloud Platform RDS instance. Traffic is routed via PTTP Transit Gateway, but additionally requires an inbound security rule to allow the MP source CIDR range.

See Slack thread: https://mojdt.slack.com/archives/C57UPMZLY/p1687855340821199

This ticket is to add the ability for CP users to define custom security group rules for their RDS instance in addition to the default CP node subnet ranges.

Proposed user journey

Approach

Which part of the user docs does this impact

Communicate changes

Questions / Assumptions

Definition of done

Reference

How to write good user stories

sj-williams commented 1 year ago

After some work on updating the module - found out (thanks jake!) that the RDS module as it exists supports additional security group configs:

https://github.com/ministryofjustice/cloud-platform-terraform-rds-instance#input_vpc_security_group_ids

This means that CP users can add an SG group resource at the root tf level, and reference this in the variable.

Advised user that this method works without disruption to RDS service, awaiting their decision.

sj-williams commented 1 year ago

Awaiting PR from user