Skip to content

Commit 77b124a

Browse files
authored
Merge pull request #406 from NHSDigital/feature/eja-eli-413-add-extra-tags
eli-413 adding compulsory tags as per NHS England guidance
2 parents 08a808e + 3376775 commit 77b124a

File tree

4 files changed

+42
-7
lines changed

4 files changed

+42
-7
lines changed

infrastructure/stacks/_shared/locals.tf

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,32 @@ locals {
88

99
# tflint-ignore: terraform_unused_declarations
1010
tags = {
11-
TagVersion = "1"
12-
Programme = "Vaccinations"
13-
Project = "EligibilitySignpostingAPI"
14-
Environment = var.environment
15-
ServiceCategory = var.environment == "prod" ? "Bronze" : "N/A"
16-
Tool = "Terraform"
17-
workspace = lower(terraform.workspace)
11+
# Billing and Identification (FinOps)
12+
FinOpsTagVersion = "1"
13+
Programme = "Vaccinations"
14+
Product = "EligibilitySignpostingAPI"
15+
Owner = "[email protected]" # REQUIRED - distribution list recommended
16+
CostCentre = "129117" # REQUIRED - your cost centre code
17+
Customer = "NHS England" # Optional but recommended
18+
19+
# Environment Information (SecOps)
20+
data_classification = "5" # REQUIRED - 1-5 based on Cloud Risk Model
21+
DataType = "PII" # REQUIRED - adjust based on your data
22+
Environment = var.environment # REQUIRED - Development/Testing/Preproduction/Production
23+
ProjectType = "Production" # REQUIRED - PoC/Pilot/Production
24+
PublicFacing = "Y" # REQUIRED - Y/N for internet-facing
25+
26+
# Technical Operations (TechOps)
27+
ServiceCategory = "Silver" # REQUIRED - Bronze/Silver/Gold/Platinum
28+
OnOffPattern = "AlwaysOn" # REQUIRED - AlwaysOn/OfficeHours/MF86/MF95/MF77
29+
30+
# Application Information (DevOps)
31+
ApplicationRole = "API" # REQUIRED - Web/App/DB/WebServer/Firewall/LoadBalancer
32+
Tool = "Terraform" # Optional - None/Terraform/Packer/CloudFormation/ARM
33+
34+
# Custom/Internal
35+
workspace = lower(terraform.workspace)
36+
Stack = local.stack_name
1837
}
1938

2039
terraform_state_bucket_name = "eligibility-signposting-api-${var.environment}-tfstate"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
provider "aws" {
22
region = "eu-west-2"
3+
4+
default_tags {
5+
tags = local.tags
6+
}
37
}
48

59
# Used by ACM
610
provider "aws" {
711
alias = "eu-west-2"
812
region = "eu-west-2"
13+
14+
default_tags {
15+
tags = local.tags
16+
}
917
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
provider "aws" {
22
region = "eu-west-2"
3+
4+
default_tags {
5+
tags = local.tags
6+
}
37
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
provider "aws" {
22
region = "eu-west-2"
3+
4+
default_tags {
5+
tags = local.tags
6+
}
37
}

0 commit comments

Comments
 (0)