django - 当我输入 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.
解决方案
AWS Educate 似乎确实允许 Beanstalk:
AWS Academy 也将使用vocareum
,因此可能适用类似的限制。
但是,您从中获得的所有凭据vocareum
都是临时的。在我看来,它们对你来说已经过期了。因此,您可能需要通过创建新的沙箱环境并获取新密钥来刷新它们。
推荐阅读
- python - 使用 scapy 欺骗 dns 中的循环请求
- angular - 更改 Angular 项目中的配置文件后字体未加载
- url - 通过 URL 而不是 HTML 提交 Paypal 打开新标签
- sql - 输出子句 VS 触发器
- laravel-5.4 - 从 url laravel 5.4 中删除公共
- javascript - Botkit - 异步拉取用户数据
- graphql - graphql 查询或突变能否返回标量值
- ios - 密码字段的键盘仅在 iOS 12 上从 azerty 切换到 qwerty(有时)
- javascript - 未调用 Mongoose 无点样式函数
- javascript - JS为点击事件未接来电创建了带有参数的按钮