Skip to content

Commit 3777015

Browse files
Merge pull request #719 from NHSDigital/features/made14-NRL-987-fix-mgmt-infra
[NRL-987] Remove unused RDS cluster networking from mgmt account
2 parents 6d56aeb + 4706151 commit 3777015

File tree

3 files changed

+24
-98
lines changed

3 files changed

+24
-98
lines changed

terraform/account-wide-infrastructure/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,29 @@ Before deploying the NRLF account-wide infrastructure, you will need:
2020
- AWS accounts that have already been bootstrapped, as described in [bootstrap/README.md](../bootstrap/README.md). This is a one-time account setup step.
2121
- The required packages to build NRLF, see [the Setup section in README.md](../../README.md#setup).
2222

23+
## Deploy mgmt resources
24+
25+
To deploy resources into the mgmt account, first login to the AWS mgmt account on the CLI.
26+
27+
Then, initialise your terraform workspace with:
28+
29+
```shell
30+
cd mgmt
31+
terraform init && terraform workspace select mgmt
32+
```
33+
34+
Once you have your workspace, you can plan your change with:
35+
36+
```shell
37+
terraform plan
38+
```
39+
40+
Once you're happy with your planned changes, you can apply them with:
41+
42+
```shell
43+
terraform apply
44+
```
45+
2346
## Deploy account wide resources
2447
2548
To deploy the account wide resources, first login to the AWS mgmt account on the CLI.

terraform/account-wide-infrastructure/mgmt/rds-cluster-vpc.tf

Lines changed: 0 additions & 88 deletions
This file was deleted.

terraform/account-wide-infrastructure/mgmt/route53.tf

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,7 @@ resource "aws_route53_record" "NEW_dev_zone_delegation" {
124124
type = "NS"
125125
}
126126

127-
// TODO-NOW - Get these QA zone changes reflected in mgmt account (w/ Tom or Kate)
128-
resource "aws_route53_zone" "qa_zone" {
129-
name = "qa.record-locator.national.nhs.uk"
130-
131-
tags = {
132-
Environment = terraform.workspace
133-
}
134-
}
135-
136-
resource "aws_route53_record" "qa_zone_delegation" {
127+
resource "aws_route53_record" "NEW_qa_zone_delegation" {
137128
zone_id = aws_route53_zone.prod_zone.zone_id
138129
name = "qa.record-locator.national.nhs.uk"
139130
records = [

0 commit comments

Comments
 (0)