Skip to content

Commit

Permalink
DSOS-2721-ips
Browse files Browse the repository at this point in the history
  • Loading branch information
crvgilbertson committed Apr 12, 2024
1 parent bdafcf3 commit ca4b414
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 27 deletions.
11 changes: 6 additions & 5 deletions terraform/environments/nomis-combined-reporting/locals_etl.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ locals {
etl_ec2_default = {

config = merge(module.baseline_presets.ec2_instance.config.default, {
ami_name = "hmpps_windows_server_2019_release_*"
iam_resource_names_prefix = "ec2-etl"
ami_name = "hmpps_windows_server_2019_release_*"
iam_resource_names_prefix = "ec2-etl"
ebs_volumes_copy_all_from_ami = false
user_data_raw = module.baseline_presets.ec2_instance.user_data_raw["user-data-pwsh"]
})
Expand All @@ -35,9 +35,10 @@ locals {
user_data_cloud_init = module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible

ebs_volumes = {
"/dev/sdb" = { type = "gp3", size = 100 }
"/dev/sdc" = { type = "gp3", size = 100 }
"/dev/sds" = { type = "gp3", size = 100 }
"/dev/sda1" = { type = "gp3", size = 100 }
"/dev/sdb" = { type = "gp3", size = 100 }
"/dev/sdc" = { type = "gp3", size = 100 }
"/dev/sds" = { type = "gp3", size = 100 }
}

route53_records = module.baseline_presets.ec2_instance.route53_records.internal_and_external
Expand Down
38 changes: 16 additions & 22 deletions terraform/environments/nomis-combined-reporting/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@ locals {
instance-scheduling = "skip-scheduling"
})
})
# t1-ncr-etl-1-a = merge(local.etl_ec2_default, {
# cloudwatch_metric_alarms = local.etl_cloudwatch_metric_alarms
# config = merge(local.etl_ec2_default.config, {
# instance_profile_policies = concat(local.etl_ec2_default.config.instance_profile_policies, [
# "Ec2T1ReportingPolicy",
# ])
# })
# tags = merge(local.etl_ec2_default.tags, {
# description = "For testing SAP BI Platform ETL installation and configurations"
# nomis-combined-reporting-environment = "t1"
# instance-scheduling = "skip-scheduling"
# })
# })
t1-ncr-etl-1-a = merge(local.etl_ec2_default, {
cloudwatch_metric_alarms = local.etl_cloudwatch_metric_alarms
config = merge(local.etl_ec2_default.config, {
instance_profile_policies = concat(local.etl_ec2_default.config.instance_profile_policies, [
"Ec2T1ReportingPolicy",
])
})
tags = merge(local.etl_ec2_default.tags, {
description = "For testing SAP BI Platform ETL installation and configurations"
nomis-combined-reporting-environment = "t1"
instance-scheduling = "skip-scheduling"
})
})
}
baseline_lbs = {
private = {
Expand Down Expand Up @@ -260,15 +260,9 @@ locals {
baseline_route53_zones = {
"test.reporting.nomis.service.justice.gov.uk" = {
records = [
{ name = "t1-ncr", type = "CNAME", ttl = "300", records = ["t1ncr-a.test.reporting.nomis.service.justice.gov.uk"] },
{ name = "t1-ncr-a", type = "CNAME", ttl = "300", records = ["t1-ncr-db-1-a.nomis-combined-reporting.hmpps-test.modernisation-platform.service.justice.gov.uk"] },
{ name = "t1-ncr-b", type = "CNAME", ttl = "300", records = ["t1-ncr-db-1-b.nomis-combined-reporting.hmpps-test.modernisation-platform.service.justice.gov.uk"] },
{ name = "cmc-t1", type = "CNAME", ttl = "300", records = ["t1-ncr-web-1-a.nomis-combined-reporting.hmpps-test.modernisation-platform.service.justice.gov.uk"] },
]
lb_alias_records = [
# T1
{ name = "t1-ncr-cms", type = "A", lbs_map_key = "private" },
{ name = "t1-ncr-web", type = "A", lbs_map_key = "private" },
{ name = "db", type = "CNAME", ttl = "3600", records = ["t1-ncr-db-1-a.nomis-combined-reporting.hmpps-preproduction.modernisation-platform.service.justice.gov.uk"] }
{ name = "web", type = "CNAME", ttl = "3600", records = ["t1-ncr-web-1-a.nomis-combined-reporting.hmpps-preproduction.modernisation-platform.service.justice.gov.uk"] }
{ name = "etl", type = "CNAME", ttl = "3600", records = ["t1-ncr-etl-1-a.nomis-combined-reporting.hmpps-preproduction.modernisation-platform.service.justice.gov.uk"] }
]
}
}
Expand Down

0 comments on commit ca4b414

Please sign in to comment.