An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Terraform Aws Inspector Module
Terraform module to setup AWS Inspector

[![blackbird-logo](https://raw.githubusercontent.com/blackbird-cloud/terraform-module-template/main/.config/logo_simple.png)](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)