File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ resource "aws_ecr_repository" "default" {
28
28
count = var. enabled_ecr ? 1 : 0
29
29
name = module. labels . id
30
30
tags = module. labels . tags
31
+ image_tag_mutability = var. image_tag_mutability
32
+
33
+ image_scanning_configuration {
34
+ scan_on_push = var. scan_on_push
35
+ }
31
36
}
32
37
33
38
resource "aws_ecr_lifecycle_policy" "default" {
Original file line number Diff line number Diff line change @@ -76,4 +76,15 @@ variable "principals_full_access" {
76
76
type = list
77
77
description = " Principal ARN to provide with full access to the ECR."
78
78
default = []
79
+ }
80
+
81
+ variable "image_tag_mutability" {
82
+ type = string
83
+ default = " MUTABLE"
84
+ description = " The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE."
85
+ }
86
+ variable "scan_on_push" {
87
+ type = bool
88
+ description = " Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false)."
89
+ default = true
79
90
}
You can’t perform that action at this time.
0 commit comments