shaikhsalman commited on
Commit
59d9053
·
verified ·
1 Parent(s): 39789a5

Upload terraform/modules/macie/main.tf with huggingface_hub

Browse files
Files changed (1) hide show
  1. terraform/modules/macie/main.tf +25 -0
terraform/modules/macie/main.tf ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # =============================================================================
2
+ # AWS Macie — Data Discovery & Classification (PII Detection)
3
+ # =============================================================================
4
+
5
+ resource "aws_macie2_account" "this" {
6
+ finding_publishing_frequency = "FIFTEEN_MINUTES"
7
+ status = "ENABLED"
8
+ }
9
+
10
+ resource "aws_macie2_classification_job" "full_scan" {
11
+ job_type = "ONE_TIME"
12
+ name = "${var.name}-full-scan"
13
+ s3_job_definition {
14
+ bucket_definitions {
15
+ account_id = data.aws_caller_identity.current.account_id
16
+ buckets = var.scanned_buckets
17
+ }
18
+ }
19
+ }
20
+
21
+ data "aws_caller_identity" "current" {}
22
+
23
+ variable "name" { type = string }
24
+ variable "scanned_buckets" { type = list(string) }
25
+ variable "tags" { type = map(string); default = {} }