Skip to content

Commit

Permalink
updating tags to be more consistet in cafm
Browse files Browse the repository at this point in the history
  • Loading branch information
haitchison committed Mar 4, 2024
1 parent ed4b4cc commit 5427b02
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 38 deletions.
17 changes: 9 additions & 8 deletions terraform/environments/planetfm/locals_preproduction.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ locals {
"/dev/sdg" = { type = "gp3", size = 200 }
}
tags = merge(local.defaults_database_ec2.tags, {
description = "copy of PPFDW0030 SQL Server"
pre-migration = "PPFDW0030"
description = "SQL Server"
app-config-status = "pending"
ami = "pp-cafm-db-a"
})
Expand All @@ -49,9 +50,9 @@ locals {
"/dev/sda1" = { type = "gp3", size = 128 } # root volume
}
tags = merge(local.defaults_app_ec2.tags, {
description = "Migrated server PPFAW0010 PFME Licence Server"
pre-migration = "PPFAW0010"
description = "RDS Session Host and CAFM App Server/PFME Licence Server"
ami = "pp-cafm-a-10-b"
app-config-status = "pending"
})
})

Expand All @@ -71,9 +72,9 @@ locals {
"/dev/sda1" = { type = "gp3", size = 128 } # root volume
}
tags = merge(local.defaults_app_ec2.tags, {
description = "Migrated server PPFAW011 RDS session host app server"
pre-migration = "PPFAW011"
description = "RDS session host & app server"
ami = "pp-cafm-a-11-a"
app-config-status = "pending"
})
})

Expand All @@ -94,9 +95,9 @@ locals {
"/dev/sda1" = { type = "gp3", size = 128 } # root volume
}
tags = merge(local.defaults_web_ec2.tags, {
description = "Migrated server PPFWW0004 Web Portal Server"
pre-migration = "PPFWW0004"
description = "Web Portal Server"
ami = "pp-cafm-w-4-b"
app-config-status = "pending"
})
})

Expand All @@ -116,9 +117,9 @@ locals {
"/dev/sda1" = { type = "gp3", size = 128 } # root volume
}
tags = merge(local.defaults_web_ec2.tags, {
pre-migration = "PPFWW0005"
description = "Migrated server PPFWW0005 Web Portal Server"
ami = "pp-cafm-w-5-a"
app-config-status = "pending"
})
})
}
Expand Down
48 changes: 18 additions & 30 deletions terraform/environments/planetfm/locals_production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ locals {
"/dev/sdi" = { type = "gp3", size = 250 } # U: drive
}
tags = merge(local.defaults_database_ec2.tags, {
description = "Copy of PDFDW0030 SQL Server"
pre-migration = "PDFDW0030"
description = "SQL Server"
app-config-status = "pending"
ami = "pd-cafm-db-a"
})
Expand Down Expand Up @@ -58,7 +59,8 @@ locals {
"/dev/sdi" = { type = "gp3", size = 250 } # U: drive
}
tags = merge(local.defaults_database_ec2.tags, {
description = "copy of PDFDW0031 SQL resilient Server"
pre-migration = "PDFDW0031"
description = "SQL resilient Server"
app-config-status = "pending"
ami = "pd-cafm-db-b"
})
Expand All @@ -82,11 +84,9 @@ locals {
"/dev/sdb" = { type = "gp3", size = 200 }
}
tags = {
description = "RDS Session Host and CAFM App Server/PFME Licence Server copy of PDFAW0010"
app-config-status = "pending"
os-type = "Windows"
pre-migration = "PDFAW0010"
description = "RDS Session Host and CAFM App Server/PFME Licence Server"
ami = "pd-cafm-a-10-b"
component = "app"
}
route53_records = {
create_internal_record = true
Expand All @@ -110,11 +110,9 @@ locals {
"/dev/sdb" = { type = "gp3", size = 200 }
}
tags = {
description = "CAFM App server copy of PDFWA0011"
app-config-status = "pending"
os-type = "Windows"
pre-migration = "PDFWA0011"
description = "RDS session host & app server"
ami = "pd-cafm-a-11-a"
component = "app"
}
route53_records = {
create_internal_record = true
Expand All @@ -138,11 +136,9 @@ locals {
"/dev/sdb" = { type = "gp3", size = 200 }
}
tags = {
description = "RDS Session Host and CAFM App Server. Copy of PDFAW0012"
app-config-status = "pending"
os-type = "Windows"
pre-migration = "PDFAW0012"
description = "RDS session host & app Server"
ami = "pd-cafm-a-12-b"
component = "app"
}
route53_records = {
create_internal_record = true
Expand All @@ -166,11 +162,9 @@ locals {
"/dev/sdb" = { type = "gp3", size = 28 }
}
tags = {
description = "RDS Session Host and CAFM App Server. Copy of PDFAW0013"
app-config-status = "pending"
os-type = "Windows"
pre-migration = "PDFAW0013"
description = "RDS session host & App Server"
ami = "pd-cafm-a-13-a"
component = "app"
}
route53_records = {
create_internal_record = true
Expand All @@ -196,11 +190,9 @@ locals {
"/dev/sdb" = { type = "gp3", size = 28 }
}
tags = {
description = "CAFM Asset Management. Copy of PDFWW00036"
app-config-status = "pending"
os-type = "Windows"
pre-migration = "PDFWW00036"
description = "CAFM Asset Management"
ami = "pd-cafm-w-36-b"
component = "web"
}
route53_records = {
create_internal_record = true
Expand All @@ -224,11 +216,9 @@ locals {
"/dev/sdb" = { type = "gp3", size = 28 }
}
tags = {
description = "CAFM Assessment Management copy of PFWW00037"
app-config-status = "pending"
os-type = "Windows"
pre-migration = "PFWW00037"
description = "CAFM Assessment Management"
ami = "pd-cafm-w-37-a"
component = "web"
}
route53_records = {
create_internal_record = true
Expand All @@ -252,11 +242,9 @@ locals {
"/dev/sdb" = { type = "gp3", size = 100 }
}
tags = {
description = "CAFM Web Training migrated server PDFWW3QCP660001"
app-config-status = "pending"
os-type = "Windows"
pre-migration = "PDFWW3QCP660001"
description = "CAFM Web Training"
ami = "pd-cafm-w-38-b"
component = "web"
}
route53_records = {
create_internal_record = true
Expand Down

0 comments on commit 5427b02

Please sign in to comment.