Skip to content

Commit

Permalink
This PR creates a resource data sync in the bootstrap which will send…
Browse files Browse the repository at this point in the history
… all the gathered inventory data into a central bucket in the organisation-security account.
  • Loading branch information
richgreen-moj committed Nov 26, 2024
1 parent 75ad7c6 commit 03008dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions terraform/environments/bootstrap/member-bootstrap/ssm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,14 @@ resource "aws_ssm_resource_data_sync" "security_account" {
kms_key_arn = local.environment_management.ssm_resource_sync_kms_arn
}
}

# Mod Platform SSM Inventory Resource Data Sync
# This will gather inventory data from all MP accounts and deliver to a central S3 bucket hosted in the organisation-security account
resource "aws_ssm_resource_data_sync" "mod_platform_inventory_sync" {
name = "mod-platform-inventory-resource-data-sync"
s3_destination {
bucket_name = local.environment_management.mp_ssm_inventory_resource_data_sync_bucket_name
region = data.aws_region.current.name
sync_format = "JsonSerDe"
}
}

0 comments on commit 03008dd

Please sign in to comment.