AmazonEc2FullAccess 和 AmazonVPCFullAccess 都是 AWS Identity and Access Management(IAM)策略,它们之间的区别在于授权范围。
AmazonEc2FullAccess 授权操作所有与 Amazon Elastic Compute Cloud(EC2)相关的权限,包括创建、管理、维护 EC2 实例、卷和网关。
AmazonVPCFullAccess 授权操作所有与 Amazon Virtual Private Cloud(VPC)相关的权限,包括创建、管理、维护 VPC、子网、路由表和网络接口。
以下是每个策略的例子:
AmazonEc2FullAccess:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ec2:" ], "Resource": [ "" ] } ] }
AmazonVPCFullAccess:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ec2:AuthorizeSecurityGroupEgress", "ec2:AuthorizeSecurityGroupIngress", "ec2:CreateSecurityGroup", "ec2:CreateSubnet", "ec2:CreateTags", "ec2:CreateVpc", "ec2:ModifySubnetAttribute", "ec2:ModifyVpcAttribute", "ec2:RunInstances", "ec2:TerminateInstances", "ec2:RevokeSecurityGroupEgress", "ec2:RevokeSecurityGroupIngress", "ec2:DeleteSecurityGroup", "ec2:DeleteSubnet", "ec2:DeleteVpc" ], "Resource": [ "*" ] } ] }