NEW: inspector2

This commit is contained in:
xpk 2022-08-29 10:58:50 +08:00
parent e291845a78
commit 5732f4bf75
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# inspector2 module
Via awscli, enable inspector2 scanning of ECR repositories

View 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'"
}
}