我有一个小型 jenkins 实例,它使用 terraform 部署一些东西,例如 ECR 尝试应用更改时出现此错误
error creating ECR Public repository: AccessDeniedException:
User: arn:aws:sts::1234567890:assumed-role/jenkins_role/i-1234567890 is not authorized to perform: ecr-public:CreateRepository on resource: arn:aws:ecr-public::1234567890:repository/test-repo
我本以为AmazonEC2ContainerRegistryFullAccess
就足够了,但事实并非如此。当我添加AdministratorAccess
时,它起作用了。那么为什么会这样呢?