未经授权使用kops在AWS上创建Kubernetes cluser

我是AWS的新手,我正尝试使用kops出于某种教程目的部署Kubernetes。
为此,我使用了一个试用的AWS帐户,并且开始按照this practical guide进行操作,但是此命令存在问题:

kops create cluster --node-count=2 --node-size=t2.medium --zones=us-east-1a

这给了我以下错误:

I0119 16:14:49.647701   13949 create_cluster.go:517] Inferred --cloud=aws from zone "eu-west-3a"

error populating configuration: error querying for valid AZs in "eu-west-3" - verify your AWS credentials.  Error: UnauthorizedOperation: You are not authorized to perform this operation.
    status code: 403,request id: a1f6e99f-76d6-4c3f-95bb-416cc2d67f2e

我想知道这与我的试用AWS帐户是否与某些受限访问无关!

chunbaise0601 回答:未经授权使用kops在AWS上创建Kubernetes cluser

好像没有正确设置AWS凭证,请使用以下方法进行验证:

$ aws sts get-caller-identity 
{
    "Account": "<number>","UserId": "AI...","Arn": "arn:aws:iam::<number>:user/<user>"
}
,

问题是我没有足够的权限来执行此操作,因为我的用户只有AmazonS3FullAccess
现在我添加了:

AmazonEC2FullAccess
AmazonRoute53FullAccess
IAMFullAccess
AmazonVPCFullAccess
本文链接:https://www.f2er.com/2744298.html

大家都在问