2016-01-21 77 views
1

我只是添加一個新的instnace與ID實例i-b2117a3c。我在下面運行這些命令。當調用StartInstances操作時發生客戶端錯誤(UnauthorizedOperation)

aws ec2 start-instances --instance-ids i-b2117a3c

aws ec2 start-instances --instance-ids i-1721b699

但結果如下圖:

enter image description here

A client error (UnauthorizedOperation) occurred when calling the 
StartInstances operation: You are not authorized to perform this 
operation. Encoded authorization failure message: 
GJgQdcdGg4iYettPm2itv1SsHjBnkbssuu7re1vk6wcdh-5k1RHmsF09AlI8onB5TYvKZ4qJQ-Bt_-sXMXc5VUmKMAMXHy6DxyAXXkSRkamyOHrrBoat8hJNRUdyzXpWevtAukktDhg-K4uVDfDFtBJRc9PNA-9tg9ei5JUA_-uUMfmcphk3f72g94irJawvW4VJyWx6w-U-_wWUKJHUNL8eVWvq_3VYxWBdr4QhEZcpVAsFBObTglxheCoQGVGZ1UNw-B9B4nbldgD_rp-QUttAMQJFAwowZR5DEYXbhanV__Adjk1r_R5ZiBRSoe-MzZyjJlsHKM5NeJGl1SrgROltuiXy1fYL10feo3fd-WReGPp_GffEUqbUTaZmb4YvwX7xo6kkvreqMLNjO_7P63Bl8b1_MsneOVorlmER7E76qj0UBWcH7iiJa4e6DCQWzWZ1LUCMzHgqpiW_6s2v64_tvcrVF1U4pTWLUAvXd4NPEUjfDWFILqrhrh1Sp1ljrRGb8hD4E8U3HpGVeHXNiVJ2R60vsO0WJZiRiUoKzvTofQp1o-Ne4_MdburZJxhdb6lWpdPD63m6MFd5LeR8azbfWTOAXx2 

我可能要增加政策的i-b2117a3c。怎麼做?

+0

可以通過調用解碼錯誤信息?外殼腳本上的 – helloV

+0

。 –

回答

1

您的IAM用戶沒有啓動實例的權限。你可以檢查用戶的IAM策略嗎?你在哪裏運行命令

aws sts decode-authorization-message --encoded-message <encoded-message> 
+0

調用DecodeAuthorizationMessage操作時發生客戶端錯誤(AccessDenied):用戶:arn:aws:iam :: 973121498392:user/daas.svc未被授權執行:sts:DecodeAuthorizationMessage –

+0

錯誤消息已清除。讓您的IAM管理員爲用戶添加必要的權限daas.svc – helloV

+0

我現在是IAM管理員。怎麼做? –

相關問題