在创建自定义运行情况下的政策错误自定义、情况下、错误、政策

2023-09-11 08:26:02 作者:沦陷

我是新来的IAM的AWS。我创建了一个策略

I am new to IAM in AWS. I have created a policy

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "TheseActionsDontSupportResourceLevelPermissions",
      "Effect": "Allow",
      "Action": "ec2:DescribeImages",
      "Resource": "*"
    },
    {
      "Sid": "TheseActionsSupportResourceLevelPermissions",
      "Effect": "Allow",
      "Action": "ec2:RunInstances",
      "Resource": [
         "arn:aws:ec2:us-east-1:109027:instance/*",
         "arn:aws:ec2:us-east-1:10927:image/*",
         "arn:aws:ec2:us-east-1:109027:security-group/Test_hin",
         "arn:aws:ec2:us-east-1:109027:subnet/subnet-b",
         "arn:aws:ec2:us-east-1:109527:key-pair/*",
         "arn:aws:ec2:us-east-1:10903527:network-interface/vpc-e4",
         "arn:aws:ec2:us-east-1:107:volume/*"
       ]
     }
   ]
}

每当我试图启动使用控制台的一个实例,它给了我,我没有被授权执行此操作的错误。

whenever I am trying to launch an instance using console, It gives me an error that i am not authorized to perform this action.

感谢

推荐答案

试着使用