Terraform module with create ecr and ecr policy resources on AWS.
module "ecr" {
source = "git::ssh://git@github.com:oozou/terraform-aws-ecr.git"
repository_name = "zeus-test-repo"
environment = "dev"
tags = {
"test" : "example-tag"
}
push_pull_access_principal_arns = ["arn:aws:iam::xxx:user/ecr-test-user"]
}
No modules.
Name |
Description |
Type |
Default |
Required |
environment |
To manage a resources with tags |
string |
n/a |
yes |
immutable |
The tag mutability setting for the repository |
bool |
false |
no |
pull_access_principal_arns |
Principals to set to the repository policy to gain Pull access to the repo |
list(string) |
[] |
no |
push_pull_access_principal_arns |
Principals to set to the repository policy to gain Push and Pull access to the repo |
list(string) |
[] |
no |
repository_name |
Name of the repository |
string |
n/a |
yes |
scan_on_push |
Indicates whether images are scanned after being pushed to the repository |
bool |
true |
no |
tags |
Tag for a resource taht create by this component |
map(string) |
{} |
no |
Name |
Version |
aws |
>= 4.0.0 |
Name |
Description |
Type |
Default |
Required |
cloudwatch_event_target_arn |
The Amazon Resource Name (ARN) associated of the target. |
string |
"" |
no |
encryption_configuration |
ECR encryption configuration |
object({ encryption_type = string kms_key = any }) |
null |
no |
environment |
To manage a resources with tags |
string |
n/a |
yes |
immutable |
The tag mutability setting for the repository |
bool |
false |
no |
is_create_lifecycle_policy |
Determines whether a lifecycle policy will be created |
bool |
false |
no |
name |
Name of the repository (pass + micro service name) |
string |
n/a |
yes |
prefix |
The prefix name of customer to be displayed in AWS console and resource |
string |
n/a |
yes |
pull_access_principal_arns |
Principals to set to the repository policy to gain Pull access to the repo |
list(string) |
[] |
no |
push_pull_access_principal_arns |
Principals to set to the repository policy to gain Push and Pull access to the repo |
list(string) |
[] |
no |
repository_lifecycle_policy |
The policy document. This is a JSON formatted string. See more details about Policy Parameters in the official AWS docs |
string |
"" |
no |
scan_on_push |
Indicates whether images are scanned after being pushed to the repository |
bool |
true |
no |
severity_alert_options |
(Optional) Choose alerting options |
list(string) |
[ "critical", "high", "medium" ] |
no |
tags |
Tag for a resource taht create by this component |
map(string) |
{} |
no |