STS предположить не могу назвать себя - PullRequest
0 голосов
/ 20 февраля 2020

Я попытался запустить команду kubectl get svc и попал в эту ошибку

An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:iam::0123456789:user/temp is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::0123456789:user/temp

Следующий json - это IAM пользователя temp

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "sts:AssumeRole",
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": "eks:DescribeCluster",
            "Resource": "arn:aws:eks:ap-southeast-1:0123456789:cluster/cluster1"
        }
    ]
}
...