मैं प्रबंधन कंसोल में आईएएम-भूमिका के साथ ec2-instance लॉन्च कर सकता हूं। लेकिन मैं पता नहीं है एडब्ल्यूएस-माणिक-sdkमैं आईएएम-रोल के साथ ec2-instance कैसे लॉन्च करूं?
iam-role " test"'s Policy is here
"Effect": "Allow",
"Action": "*",
"Resource": "*"
यहाँ से iam-भूमिका के साथ EC2-उदाहरण के लांच करने के लिए कैसे परिणाम है:
/var/lib/gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:318:in `return_or_raise':
You are not authorized to perform iam:PassRole with arn:aws:iam::xxxxxxxxxxx:role/test
(AWS::EC2::Errors::UnauthorizedOperation)