-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(resource): New lacework_integration_aws_org_agentless_scanning r…
…esource (#385) Signed-off-by: Darren Murray <darren.murray@lacework.net> Co-authored-by: Darren <75614232+dmurray-lacework@users.noreply.github.com>
- Loading branch information
1 parent
9f48afe
commit bf19236
Showing
301 changed files
with
65,116 additions
and
16,270 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
examples/resource_lacework_integration_aws_org_agentless_scanning/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
terraform { | ||
required_providers { | ||
lacework = { | ||
source = "lacework/lacework" | ||
} | ||
} | ||
} | ||
|
||
resource "lacework_integration_aws_org_agentless_scanning" "example" { | ||
name = var.name | ||
query_text = var.query_text | ||
scan_frequency = 24 | ||
scan_containers = true | ||
scan_host_vulnerabilities = true | ||
account_id = var.account_id | ||
bucket_arn = var.bucket_arn | ||
scanning_account = var.scanning_account | ||
management_account = var.management_account | ||
monitored_accounts = var.monitored_accounts | ||
|
||
credentials { | ||
role_arn = var.role_arn | ||
external_id = var.external_id | ||
} | ||
} | ||
|
||
variable "account_id" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "bucket_arn" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "role_arn" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "external_id" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "name" { | ||
type = string | ||
default = "AWS Organizations Agentless Scanning Example" | ||
} | ||
|
||
variable "query_text" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "scanning_account" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "management_account" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "monitored_accounts" { | ||
type = list(string) | ||
default = [] | ||
} | ||
|
||
output "name" { | ||
value = lacework_integration_aws_org_agentless_scanning.example.name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.