gpt4 book ai didi

docker - 拒绝访问异常 : An error occurred when calling the RegisterTaskDefinition operation

转载 作者:行者123 更新时间:2023-12-02 00:05:20 26 4
gpt4 key购买 nike

我正在注册一个 JSON 文件,配置 ecs

aws ecs register-task-definition --cli-input-json file://task-definition.json --region us-west-2 抛出错误

无法找到凭据。您可以通过运行“aws configure”来配置凭据

然后我执行 aws configure 并使用默认输出格式配置访问权限、 secret 和区域。喜欢

AWS Access Key ID [****************WBCK]: 
AWS Secret Access Key [****************wrt1]:
Default region name [us-west-2]:
Default output format [None]: text
ubuntu@ip-172-31-27-83:~/SampleDocker$ aws ecs register-task-definition --cli-input-json file://task-definition.json --region us-west-2

Still, I am occurring below error -

An error occurred (AccessDeniedException) when calling the RegisterTaskDefinition operation: User: arn:aws:iam::581143930612:user/Nike is not authorized to perform: ecs:RegisterTaskDefinition on resource: *

缺少的角色是什么?有什么建议

最佳答案

我明白了,我没有授予 IAM 用户访问 ecs 的权限。IAM - 用户 - 权限

AmazonECS_FullAccessAmazonECSTaskExecutionRolePolicy

关于docker - 拒绝访问异常 : An error occurred when calling the RegisterTaskDefinition operation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60826757/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com