Skip to content

Commit

Permalink
rebuilding secondary db in csr pd
Browse files Browse the repository at this point in the history
  • Loading branch information
haitchison committed Mar 5, 2024
1 parent ae203bb commit 6608f93
Showing 1 changed file with 36 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,51 +102,46 @@ locals {
}
})

# removing temporarily due to licensing considerations
# pd-csr-db-b = merge(local.defaults_database_ec2, {
# config = merge(local.defaults_database_ec2.config, {
# ami_name = "hmpps_ol_8_5_oracledb_19c_release_2023-07-14T15-36-30.795Z"
# availability_zone = "${local.region}b"
# instance_profile_policies = concat(local.defaults_database_ec2.config.instance_profile_policies, [
# "Ec2ProdDatabasePolicy",
# ])
# })
# instance = merge(local.defaults_database_ec2.instance, {
# instance_type = "r6i.xlarge"
# disable_api_stop = true
# metadata_options_http_tokens = "optional" # the Oracle installer cannot accommodate a token
# })
pd-csr-db-b = merge(local.defaults_database_ec2, {
config = merge(local.defaults_database_ec2.config, {
ami_name = "hmpps_ol_8_5_oracledb_19c_release_2023-07-14T15-36-30.795Z"
availability_zone = "${local.region}b"
instance_profile_policies = concat(local.defaults_database_ec2.config.instance_profile_policies, [
"Ec2ProdDatabasePolicy",
])
})
instance = merge(local.defaults_database_ec2.instance, {
instance_type = "r6i.xlarge"
disable_api_stop = true
metadata_options_http_tokens = "optional" # the Oracle installer cannot accommodate a token
})

# ebs_volumes = merge(local.defaults_database_ec2.ebs_volumes, {
# "/dev/sda1" = { label = "root", size = 30 }
# "/dev/sdb" = { label = "app", size = 100 } # /u01
# "/dev/sdc" = { label = "app", size = 500 } # /u02
# })
ebs_volumes = merge(local.defaults_database_ec2.ebs_volumes, {
"/dev/sda1" = { label = "root", size = 30 }
"/dev/sdb" = { label = "app", size = 100 } # /u01
"/dev/sdc" = { label = "app", size = 500 } # /u02
})

# ebs_volume_config = merge(local.defaults_database_ec2.ebs_volume_config, {
# data = {
# iops = 3000
# throughput = 125
# total_size = 1000
# }
# flash = {
# iops = 3000
# throughput = 125
# total_size = 100
# }
# })
ebs_volume_config = merge(local.defaults_database_ec2.ebs_volume_config, {
data = {
total_size = 1500
}
flash = {
total_size = 100
}
})

# secretsmanager_secrets = module.baseline_presets.ec2_instance.secretsmanager_secrets.oracle_19c
secretsmanager_secrets = module.baseline_presets.ec2_instance.secretsmanager_secrets.oracle_19c

# tags = {
# description = "PD CSR Oracle secondary DB server"
# ami = "base_ol_8_5"
# os-type = "Linux"
# component = "data"
# server-type = "csr-db"
# backup = "false" # opt out of mod platform default backup plan
# }
# })
tags = {
description = "PD CSR Oracle secondary DB server"
ami = "base_ol_8_5"
os-type = "Linux"
component = "data"
server-type = "csr-db"
backup = "false" # opt out of mod platform default backup plan
}
})

pd-csr-a-7-a = merge(local.defaults_app_ec2, {
config = merge(local.defaults_app_ec2.config, {
Expand Down

0 comments on commit 6608f93

Please sign in to comment.