无法创建 fargate 配置文件

Con*_*tch 9 amazon-web-services amazon-iam aws-fargate amazon-eks

尝试使用 amazon eks 创建 fargate 配置文件时(使用命令 eksctl create cluster --name myclustername --version 1.14 --fargate),我得到

[?]  all EKS cluster resources for "myclustername" have been created
[?]  saved kubeconfig as "/home/connor/.kube/config"
[?]  creating Fargate profile "fp-default" on EKS cluster "myclustername"
Error: failed to create Fargate profile "fp-default" on EKS cluster "myclustername": failed     to create Fargate profile "fp-default": AccessDeniedException: Account 339969016160 is not authorized to use this service
status code: 403, request id: 1db7cf38-002e-48b8-8fa6-8a7b7eab324d
Run Code Online (Sandbox Code Playgroud)

关于我需要添加什么权限来解决这个问题的任何想法?我更喜欢尽可能通过 cli 进行所有管理

小智 23

错误是可怕的,因为它表明这是一个权限问题,而真正的问题是截至 2020 年 1 月 12 日,只有四个区域支持带有 EKS(kubernetes)的 fargate:

Region Name             Region
US East (Ohio)          us-east-2
US East (N. Virginia)   us-east-1
Asia Pacific (Tokyo)    ap-northeast-1
EU (Ireland)            eu-west-1
Run Code Online (Sandbox Code Playgroud)

请参阅:https : //docs.aws.amazon.com/eks/latest/userguide/fargate.html

虽然在您的笔记中并不明显,但我怀疑您正在尝试使用不在上述列表中的区域。

请注意,只要不与 EKS 结合使用,fargate 可在更多区域使用。