Skip to content

Commit

Permalink
Merge pull request #5369 from ministryofjustice/feature/analytical-pl…
Browse files Browse the repository at this point in the history
…atform-ingestion-observability-platform

✨ Add Observability Platform to Analytical Platform Ingestion
  • Loading branch information
Jacob Woffenden authored Mar 14, 2024
2 parents af65dd7 + bb9692d commit e267398
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"accounts": {
"development": {
"vpc_cidr": "10.0.0.0/16"
},
"test": {
"vpc_cidr": "10.0.0.0/16"
},
"preproduction": {
"vpc_cidr": "10.0.0.0/16"
"vpc_cidr": "10.0.0.0/16",
"observability_platform": "development"
},
"production": {
"vpc_cidr": "10.0.0.0/16"
"vpc_cidr": "10.0.0.0/16",
"observability_platform": "production"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module "observability_platform_tenant" {
source = "ministryofjustice/observability-platform-tenant/aws"
version = "1.0.0"

observability_platform_account_id = local.environment_management.account_ids["observability-platform-${local.application_data.accounts[local.environment].observability_platform}"]
enable_xray = true

tags = local.tags
}
8 changes: 4 additions & 4 deletions terraform/environments/analytical-platform-ingestion/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ module "vpc_endpoints" {

endpoints = {
logs = {
service = "logs"
service_type = "Interface"
service = "logs"
service_type = "Interface"
tags = merge(
local.tags,
{ Name = format("%s-logs-api-vpc-endpoint", local.application_name) }
)
},
sts = {
service = "sts"
service_type = "Interface"
service = "sts"
service_type = "Interface"
tags = merge(
local.tags,
{ Name = format("%s-sts-vpc-endpoint", local.application_name) }
Expand Down

0 comments on commit e267398

Please sign in to comment.