Open
Description
Found a bug? Maybe our Slack Community can help.
Describe the Bug
Currently CrossAccountPermission
permission also being added to the ECR policy when principle_lambda
variable is added. which will allow members form other account to use image apart from lambda also. and it is also working without adding that CrossAccountPermission
as well
Expected Behavior
- should not allow permission other then lambda functions
- Write only permission feature should be there which will allow user to write image only to the ecr repo. not other features.
{
"Sid": "WriteOnlyAccess",
"Effect": "Allow",
"Principal": {
"AWS": "priniciple_arn"
},
"Action": [
"ecr:BatchCheckLayerAvailability",
"ecr:CompleteLayerUpload",
"ecr:InitiateLayerUpload",
"ecr:PutImage",
"ecr:UploadLayerPart"
]
}