https://github.com/blackbird-cloud/terraform-aws-inspector
Terraform module to setup AWS Inspector
https://github.com/blackbird-cloud/terraform-aws-inspector
aws inspector terraform
Last synced: 29 days ago
JSON representation
Terraform module to setup AWS Inspector
- Host: GitHub
- URL: https://github.com/blackbird-cloud/terraform-aws-inspector
- Owner: blackbird-cloud
- License: apache-2.0
- Created: 2023-10-09T15:21:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T14:09:00.000Z (over 1 year ago)
- Last Synced: 2025-01-31T14:32:37.849Z (over 1 year ago)
- Topics: aws, inspector, terraform
- Language: HCL
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Aws Inspector Module
Terraform module to setup AWS Inspector
[](https://blackbird.cloud)
## Example
```hcl
data "aws_caller_identity" "current" {}
resource "aws_inspector2_delegated_admin_account" "default" {
account_id = data.aws_caller_identity.current.account_id
}
module "inspector" {
source = "blackbird-cloud/inspector/aws"
version = "~> 2"
account_ids = [data.aws_caller_identity.current.account_id]
resource_types = ["LAMBDA", "LAMBDA_CODE", "EC2", "ECR"]
associate_accounts_ids = ["12345678910", "12345678911"]
depends_on = [aws_inspector2_delegated_admin_account.default]
}
```
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1 |
| [aws](#requirement\_aws) | >= 5 |
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 5 |
## Resources
| Name | Type |
|------|------|
| [aws_inspector2_enabler.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/inspector2_enabler) | resource |
| [aws_inspector2_member_association.accounts](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/inspector2_member_association) | resource |
| [aws_inspector2_organization_configuration.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/inspector2_organization_configuration) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [account\_ids](#input\_account\_ids) | (Required) Set of account IDs. Can contain one of: the Organization's Administrator Account, or one or more Member Accounts. | `list(string)` | n/a | yes |
| [associate\_accounts\_ids](#input\_associate\_accounts\_ids) | (Optional) List of account IDs to associate with the Inspector. | `list(string)` | `[]` | no |
| [auto\_enable](#input\_auto\_enable) | (Optional) Enable Inspector for accounts that newly join the AWS Organization. | `bool` | `true` | no |
| [resource\_types](#input\_resource\_types) | (Required) Type of resources to scan. Valid values are EC2, ECR, and LAMBDA. At least one item is required. | `list(string)` |
[
"LAMBDA",
"LAMBDA_CODE",
"EC2",
"ECR"
]
| no |
## Outputs
| Name | Description |
|------|-------------|
| [aws\_inspector2\_enabler](#output\_aws\_inspector2\_enabler) | Terraform resource for enabling Amazon Inspector resource scans. |
| [aws\_inspector2\_organization\_configuration](#output\_aws\_inspector2\_organization\_configuration) | erraform resource for managing an Amazon Inspector Organization Configuration. |
## About
We are [Blackbird Cloud](https://blackbird.cloud), Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.
Checkout our other :point\_right: [terraform modules](https://registry.terraform.io/namespaces/blackbird-cloud)
## Copyright
Copyright © 2017-2024 [Blackbird Cloud](https://blackbird.cloud)