Skip to content

Commit

Permalink
Code to add macie. Also includes new data content
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLinden committed May 10, 2024
1 parent c7a831e commit 5bf1a2b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/environments/cooker/macie.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ resource "aws_macie2_classification_job" "test" {
bucket_definitions {
account_id = "default_migration_source_account_id"
buckets = [
"aws-sam-cli-managed-default-samclisourcebucket-1leowh6voenwy",
"config-20220407082146408700000002",
"macie-test-results-cooker"
data.aws_s3_bucket.bucket1.id,
data.aws_s3_bucket.bucket2.id,
data.aws_s3_bucket.bucket3.id,
]
}
}
Expand Down
13 changes: 13 additions & 0 deletions terraform/environments/cooker/platform_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,16 @@ data "aws_iam_session_context" "whoami" {
data "http" "environments_file" {
url = "https://raw.githubusercontent.com/ministryofjustice/modernisation-platform/main/environments/${local.application_name}.json"
}

# For macie code
data "aws_s3_bucket" "bucket1" {
bucket = "config-20220407082146408700000002"
}

data "aws_s3_bucket" "bucket2" {
bucket = "aws-sam-cli-managed-default-samclisourcebucket-1leowh6voenwy"
}

data "aws_s3_bucket" "bucket3" {
bucket = "macie-test-results-cooker"
}

0 comments on commit 5bf1a2b

Please sign in to comment.