You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_policy"></a> [policy](#input\_policy)| (Optional) The policy document for ECR registry. This is a JSON formatted string. |`string`|`null`| no |
47
-
| <aname="input_pull_through_cache_policies"></a> [pull\_through\_cache\_policies](#input\_pull\_through\_cache\_policies)| (Optional) A list of ECR Registry Policies for Pull Through Cache. Each value of `pull_through_cache_policies` as defined below.<br> (Required) `iam_entities` - Specify one or more IAM principals to grant permission. Support the ARN of IAM entities, or AWS account ID.<br> (Required) `allow_create_repository` - Need to create target repositories if `allow_create_repository` is false.<br> (Required) `repositories` - A list of target repositories. Support glob expressions for `repositories` like `*`. | <pre>list(object({<br> iam_entities = list(string)<br> allow_create_repository = bool<br> repositories = list(string)<br> }))</pre> |`[]`| no |
48
-
| <aname="input_pull_through_cache_rules"></a> [pull\_through\_cache\_rules](#input\_pull\_through\_cache\_rules)| (Optional) A list of Pull Through Cache Rules for ECR registry. A `pull_through_cache_rules` block as defined below.<br> (Required) `upstream_url` - The registry URL of the upstream public registry to use as the source.<br> (Optional) `namespace` - The repository name prefix to use when caching images from the source registry. Default value is used if not provided. |`list(any)`|`[]`| no |
49
-
| <aname="input_replication_destinations"></a> [replication\_destinations](#input\_replication\_destinations)| (Optional) A list of destinations for ECR registry replication. `registry_id` is the account ID of the destination registry to replicate to. `region` is required to replicate to. | <pre>list(object({<br> registry_id = string<br> region = string<br> }))</pre> |`[]`| no |
50
-
| <aname="input_replication_policies"></a> [replication\_policies](#input\_replication\_policies)| (Optional) A list of ECR Registry Policies for replication. `account_id` is source AWS account for replication. If `allow_create_repository` is false, you need to create repositories with the same name whithin your registry. `repositories` is a list of target repositories. Support glob expressions for `repositories` like `*`. | <pre>list(object({<br> account_id = string<br> allow_create_repository = bool<br> repositories = list(string)<br> }))</pre> |`[]`| no |
51
-
| <aname="input_scanning_continuous_filters"></a> [scanning\_continuous\_filters](#input\_scanning\_continuous\_filters)| (Optional) A list of repository filter to scan continuous. Wildcard character is allowed. |`list(string)`|`[]`| no |
52
-
| <aname="input_scanning_on_push_filters"></a> [scanning\_on\_push\_filters](#input\_scanning\_on\_push\_filters)| (Optional) A list of repository filter to scan on push. Wildcard character is allowed. |`list(string)`|`[]`| no |
53
-
| <aname="input_scanning_type"></a> [scanning\_type](#input\_scanning\_type)| (Optional) The scanning type to set for the registry. Can be either `ENHANCED` or `BASIC`. |`string`|`"BASIC"`| no |
50
+
| <aname="input_policy_version"></a> [policy\_version](#input\_policy\_version)| (Optional) The policy version of ECR registry. Valid values are `V1` or `V2`. Defaults to `V2`.<br/> `V1` - Only support three actions: `ReplicateImage`, `BatchImportUpstreamImage`, and `CreateRepository`<br/> `V2` - Support all ECR actions in the policy and enforce the registry policy in all ECR requests |`string`|`"V2"`| no |
51
+
| <aname="input_pull_through_cache_policies"></a> [pull\_through\_cache\_policies](#input\_pull\_through\_cache\_policies)| (Optional) A list of ECR Registry Policies for Pull Through Cache. Each block of `pull_through_cache_policies` as defined below.<br/> (Required) `iam_entities` - One or more IAM principals to grant permission. Support the ARN of IAM entities, or AWS account ID.<br/> (Optional) `allow_create_repository` - Whether to auto-create the cached repositories with the same name within the current registry. Defaults to `false`.<br/> (Required) `repositories` - A list of target repositories. Support glob expressions for `repositories` like `*`. | <pre>list(object({<br/> iam_entities = list(string)<br/> allow_create_repository = optional(bool, false)<br/> repositories = list(string)<br/> }))</pre> |`[]`| no |
52
+
| <aname="input_pull_through_cache_rules"></a> [pull\_through\_cache\_rules](#input\_pull\_through\_cache\_rules)| (Optional) A list of Pull Through Cache Rules for ECR registry. A `pull_through_cache_rules` block as defined below.<br/> (Required) `upstream_url` - The registry URL of the upstream public registry to use as the source.<br/> (Optional) `namespace` - The repository name prefix to use when caching images from the source registry. Default value is used if not provided.<br/> (Optional) `credential` - The configuration for credential to use to authenticate against the registry. A `credential` block as defined below.<br/> (Required) `secretsmanager_secret` - The ARN of the Secrets Manager secret to use for authentication. | <pre>list(object({<br/> upstream_url = string<br/> namespace = optional(string)<br/> credential = optional(object({<br/> secretsmanager_secret = string<br/> }))<br/> }))</pre> |`[]`| no |
53
+
| <aname="input_replication_policies"></a> [replication\_policies](#input\_replication\_policies)| (Optional) A list of replication policies for ECR Registry. Each block of `replication_policies` as defined below.<br/> (Required) `account` - The AWS account ID of the source registry owner.<br/> (Optional) `allow_create_repository` - Whether to auto-create the replicated repositories with the same name within the current registry. Defaults to `false`.<br/> (Required) `repositories` - A list of target repositories. Support glob expressions like `*`. | <pre>list(object({<br/> account = string<br/> allow_create_repository = optional(bool, false)<br/> repositories = list(string)<br/> }))</pre> |`[]`| no |
54
+
| <a name="input_replication_rules"></a> [replication\_rules](#input\_replication\_rules) | (Optional) A list of replication rules for ECR Registry. Each rule represents the replication destinations and repository filters for a replication configuration. Each block of `replication_rules` as defined below.<br/> (Required) `destinations` - A list of destinations for replication rule. Each block of `destinations` as defined below.<br/> (Optional) `account` - The AWS account ID of the ECR private registry to replicate to. Only required for cross-account replication.<br/> (Required) `region` - The Region to replicate to.<br/> (Optional) `filters` - The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated. Each block of `filters` as defined below.<br/> (Optional) `type` - The repository filter type. The only supported value is `PREFIX_MATCH`, which is a repository name prefix. Defaults to `PREFIX_MATCH`.<br/> (Required) `value` - The repository filter value. | <pre>list(object({<br/> destinations = list(object({<br/> account = optional(string)<br/> region = string<br/> }))<br/> filters = optional(list(object({<br/> type = optional(string, "PREFIX_MATCH")<br/> value = string<br/> })), [])<br/> }))</pre> | `[]` | no |
55
+
| <aname="input_scanning_basic_version"></a> [scanning\_basic\_version](#input\_scanning\_basic\_version)| (Optional) The version of basic scanning for the registry. Valid values are `AWS_NATIVE` or `CLAIR`. Defaults to `AWS_NATIVE`. `CLAIR` was deprecated. |`string`|`"AWS_NATIVE"`| no |
56
+
| <a name="input_scanning_rules"></a> [scanning\_rules](#input\_scanning\_rules) | (Optional) A list of scanning rules to determine which repository filters are used and at what frequency scanning will occur. Each block of `scanning_rules` as defined below.<br/> (Required) `frequency` - The frequency that scans are performed at for a private registry. Valid values are `SCAN_ON_PUSH`, `CONTINUOUS_SCAN`.<br/> (Optional) `filters` - The configuration of repository filters for image scanning.<br/> (Optional) `type` - The repository filter type. The only supported value is `WILDCARD`. A filter with no wildcard will match all repository names that contain the filter. A filter with a wildcard (*) matches on any repository name where the wildcard replaces zero or more characters in the repository name. Defaults to `WILDCARD`.<br/> (Required) `value` - The repository filter value. | <pre>list(object({<br/> frequency = string<br/> filters = optional(list(object({<br/> type = optional(string, "WILDCARD")<br/> value = string<br/> })), [])<br/> }))</pre> | `[]` | no |
57
+
| <aname="input_scanning_type"></a> [scanning\_type](#input\_scanning\_type)| (Optional) The scanning type to set for the registry. Valid values are `ENHANCED` or `BASIC`. Defaults to `BASIC`. |`string`|`"BASIC"`| no |
54
58
55
59
## Outputs
56
60
@@ -59,9 +63,12 @@ No modules.
59
63
| <aname="output_id"></a> [id](#output\_id)| The ID of the registry. |
60
64
| <aname="output_name"></a> [name](#output\_name)| The name of the registry. |
61
65
| <aname="output_policy"></a> [policy](#output\_policy)| The registry policy. |
66
+
| <aname="output_policy_version"></a> [policy\_version](#output\_policy\_version)| The policy version of ECR registry. |
67
+
| <aname="output_pull_through_cache_policies"></a> [pull\_through\_cache\_policies](#output\_pull\_through\_cache\_policies)| A list of Pull Through Cache policies for ECR Registry. |
62
68
| <aname="output_pull_through_cache_rules"></a> [pull\_through\_cache\_rules](#output\_pull\_through\_cache\_rules)| A list of Pull Through Cache Rules for ECR registry. |
63
-
| <aname="output_replication_destinations"></a> [replication\_destinations](#output\_replication\_destinations)| A list of destinations for ECR registry replication. |
64
-
| <aname="output_scanning_continuous_filters"></a> [scanning\_continuous\_filters](#output\_scanning\_continuous\_filters)| A list of repository filter to scan continuous. |
65
-
| <aname="output_scanning_on_push_filters"></a> [scanning\_on\_push\_filters](#output\_scanning\_on\_push\_filters)| A list of repository filter to scan on push. |
66
-
| <aname="output_scanning_type"></a> [scanning\_type](#output\_scanning\_type)| The scanning type for the registry. |
69
+
| <aname="output_replication_policies"></a> [replication\_policies](#output\_replication\_policies)| A list of replication policies for ECR Registry. |
70
+
| <aname="output_replication_rules"></a> [replication\_rules](#output\_replication\_rules)| A list of replication rules for ECR Registry. |
71
+
| <aname="output_scanning_basic_version"></a> [scanning\_basic\_version](#output\_scanning\_basic\_version)| The version of basic scanning for the registry. |
72
+
| <aname="output_scanning_rules"></a> [scanning\_rules](#output\_scanning\_rules)| A list of scanning rules to determine which repository filters are used and at what frequency scanning will occur. |
73
+
| <aname="output_scanning_type"></a> [scanning\_type](#output\_scanning\_type)| The scanning type to set for the registry. |
error_message="Valid values for `scanning_basic_version` are `AWS_NATIVE`, `CLAIR`."
135
+
}
136
+
}
137
+
108
138
variable"scanning_rules" {
109
139
description=<<EOF
110
140
(Optional) A list of scanning rules to determine which repository filters are used and at what frequency scanning will occur. Each block of `scanning_rules` as defined below.
0 commit comments