python - A client error (UnauthorizedOperation) occurred when calling the StartInstances operation -


i add new instnace id instance i-b2117a3c. , run commands below.

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

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

but result picture below:

enter image description here

a client error (unauthorizedoperation) occurred when calling startinstances operation: not authorized perform 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 

may have add policy i-b2117a3c. how it?

your iam user not have privileges start instances. can check iam policy user?

you can decode error message calling:

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

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -