NEW: inspector2
This commit is contained in:
parent
e291845a78
commit
5732f4bf75
@ -0,0 +1,2 @@
|
||||
# inspector2 module
|
||||
Via awscli, enable inspector2 scanning of ECR repositories
|
11
modules/security_identity_compliance/inspector2/main.tf
Normal file
11
modules/security_identity_compliance/inspector2/main.tf
Normal file
@ -0,0 +1,11 @@
|
||||
resource "null_resource" "cli-inspector2" {
|
||||
provisioner "local-exec" {
|
||||
when = create
|
||||
command = "/bin/bash -c 'aws inspector2 enable --resource-types \"ECR\"'"
|
||||
}
|
||||
|
||||
provisioner "local-exec" {
|
||||
when = destroy
|
||||
command = "/bin/bash -c 'aws inspector2 disable'"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user