首页 > 解决方案 > 当我输入 aws-acess-id 和 aws-secret-key /:“错误:NotAuthorizedError - 操作被拒绝。请求中包含的安全令牌无效:”

问题描述

当我输入 aws-acess-id 和 aws-secret-key 时,我尝试了从“labs.vocareum.com”生成的不同 aws 密钥它抛出错误:“错误:NotAuthorizedError - 操作被拒绝。请求中包含的安全令牌无效:"

错误

C:\Users>eb init -p python port-aws
You have not yet set up your credentials or your credentials are incorrect
You must provide your credentials.
(aws-access-id): ------(enter key from aws account)-------
(aws-secret-key): --------(enter key from aws account)----
ERROR: NotAuthorizedError - Operation Denied. The security token included in the request is       
invalid.

重新输入

C:\Users>eb init -p python port-aws
ERROR: The current user does not have the correct permissions. Reason: Operation Denied. The    
security token included in the request is invalid.
ERROR: The current user does not have the correct permissions. Reason: Operation Denied. The  
security token included in the request is invalid.  
You have not yet set up your credentials or your credentials are incorrect
You must provide your credentials.
(aws-access-id): ------(enter key from aws account)-------
(aws-secret-key): ------(enter key from aws account)-------
ERROR: NotAuthorizedError - Operation Denied. The security token included in the request is
invalid.    

标签: djangoamazon-web-servicesweb-deploymentweb-hosting

解决方案


AWS Educate 似乎确实允许 Beanstalk:

AWS Academy 也将使用vocareum,因此可能适用类似的限制。

但是,您从中获得的所有凭据vocareum都是临时的。在我看来,它们对你来说已经过期了。因此,您可能需要通过创建新的沙箱环境并获取新密钥来刷新它们。


推荐阅读