Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ A Terraform Module to integrate Amazon Container Registries (ECR) with Lacework.
| `limit_by_tags` |A list of image tags to limit the assessment of images with matching tags. If you specify limit_by_tags and limit_by_labels limits, they function as an AND. Supported field input can be ["mytext\*mytext", "mytext", "mytext\*", "mytext". Only one * wildcard is supported.| `list(string)` | no |
| `limit_by_labels` |A list of image labels to limit the assessment of images with matching labels. If you specify limit_by_tags and limit_by_labels limits, they function as an AND. Supported field input can be ["mytext\*mytext", "mytext", "mytext*", "mytext"].Only one * wildcard is supported.| `list(string)` | no |
| `limit_by_repositories` |A list of repositories to assess.| `list(string)` | no |
| `limit_num_imgs` |The maximum number of newest container images to assess per repository. Must be one of 5, 10, or 15. Defaults to 5.| `number` | 5 | no |

## Outputs

Expand Down
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ resource "lacework_integration_ecr" "iam_role" {
role_arn = local.iam_role_arn
external_id = local.iam_role_external_id
}
limit_by_tags = var.limit_by_tags
limit_by_labels = var.limit_by_labels
limit_by_tags = var.limit_by_tags
limit_by_labels = var.limit_by_labels
limit_by_repositories = var.limit_by_repositories
limit_num_imgs = var.limit_num_imgs
depends_on = [time_sleep.wait_time]
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ variable "limit_by_repositories" {
description = "A list of repositories to assess"
}

variable "limit_num_imgs" {
type = number
default = 5
description = "The maximum number of newest container images to assess per repository. Must be one of 5, 10, or 15. Defaults to 5."
}

variable "external_id_length" {
type = number
default = 16
Expand Down