-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform ECR 구현 #13
Labels
Major
Major topic
Comments
module "ecr" {
source = "terraform-aws-modules/ecr/aws"
repository_name = "private-example"
repository_read_write_access_arns = ["arn:aws:iam::012345678901:role/terraform"]
repository_lifecycle_policy = jsonencode({
rules = [
{
rulePriority = 1,
description = "Keep last 30 images",
selection = {
tagStatus = "tagged",
tagPrefixList = ["v"],
countType = "imageCountMoreThan",
countNumber = 30
},
action = {
type = "expire"
}
}
]
})
tags = {
Terraform = "true"
Environment = "dev"
}
} 해석repository_read_write_access_arns
AWS ARN은 "Amazon Resource Name"의 약자로, AWS 리소스를 고유하게 식별하고 명명하는 데 사용되는 형식화된 문자열. ARN은 AWS의 여러 서비스에서 리소스를 식별하는 데 사용되며, 이를 통해 정확한 리소스를 지정하고 권한을 관리할 수 있습니다. IAM 리소스의 ARN은 다음과 같은 형식을 가집니다:
repository_lifecycle_policy
IAM RolePirvate ECR 생성 후
PUSH 권한용 IAM 그룹 생성 후 READ 권한용 IAM 그룹 생성 후 |
Merged
Merged
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
To do
Test Checklist
koboot
repo에서 push 테스트koboot
에 잘못된 IAM USER로 push 테스트EKS에서 배포 가능 확인
IAM pull 권한 설정 없이 EKS에서 pull 가능
The text was updated successfully, but these errors were encountered: