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"]
}
Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | >= 3.63 |
Name | Version |
---|---|
aws | 3.74.1 |
No modules.
Name | Type |
---|---|
aws_ecr_repository.this | resource |
aws_ecr_repository_policy.allow_access | resource |
aws_iam_policy_document.allow_access | data source |
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 | Description |
---|---|
image_name | Name of the ecr image |
repository_arn | ARN for the ecr repository |
repository_url | URL for the ecr repository |
Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | >= 4.0.0 |
Name | Version |
---|---|
aws | >= 4.0.0 |
Name | Source | Version |
---|---|---|
scan_eventbridge | oozou/eventbridge/aws | 1.1.0 |
Name | Type |
---|---|
aws_ecr_lifecycle_policy.this | resource |
aws_ecr_repository.this | resource |
aws_ecr_repository_policy.allow_access | resource |
aws_iam_policy_document.allow_access | data source |
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({ |
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) |
[ |
no |
tags | Tag for a resource taht create by this component | map(string) |
{} |
no |
Name | Description |
---|---|
aws_cloudwatch_event_rule_arn | The Amazon Resource Name (ARN) of the rule. |
aws_cloudwatch_event_rule_id | The name of the rule |
image_name | Name of the ecr image |
repository_arn | ARN for the ecr repository |
repository_url | URL for the ecr repository |