Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
AmazonEMRServicePolicy_v2
Deskripsi: Kebijakan ini digunakan untuk Peran Layanan EMR Amazon dan TIDAK boleh digunakan untuk pengguna atau peran IAM lainnya di akun Anda. Kebijakan ini memberikan izin untuk membuat dan mengelola sumber daya yang terkait dengan EMR dan layanan terkait yang diperlukan untuk pengoperasian klaster EMR Anda.
AmazonEMRServicePolicy_v2
adalah kebijakan yang AWS dikelola.
Menggunakan kebijakan ini
Anda dapat melampirkan AmazonEMRServicePolicy_v2
ke pengguna, grup, dan peran Anda.
Rincian kebijakan
-
Jenis: Kebijakan peran layanan
-
Waktu pembuatan: 12 Maret 2021, 01:11 UTC
-
Waktu yang telah diedit: 02 Mei 2024, 18:43 UTC
-
ARN:
arn:aws:iam::aws:policy/service-role/AmazonEMRServicePolicy_v2
Versi kebijakan
Versi kebijakan: v3 (default)
Versi default kebijakan adalah versi yang menentukan izin untuk kebijakan tersebut. Saat pengguna atau peran dengan kebijakan membuat permintaan untuk mengakses AWS sumber daya, AWS periksa versi default kebijakan untuk menentukan apakah akan mengizinkan permintaan tersebut.
Dokumen kebijakan JSON
{ "Version" : "2012-10-17", "Statement" : [ { "Sid" : "CreateInTaggedNetwork", "Effect" : "Allow", "Action" : [ "ec2:CreateNetworkInterface", "ec2:RunInstances", "ec2:CreateFleet", "ec2:CreateLaunchTemplate", "ec2:CreateLaunchTemplateVersion" ], "Resource" : [ "arn:aws:ec2:*:*:subnet/*", "arn:aws:ec2:*:*:security-group/*" ], "Condition" : { "StringEquals" : { "aws:ResourceTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "CreateWithEMRTaggedLaunchTemplate", "Effect" : "Allow", "Action" : [ "ec2:CreateFleet", "ec2:RunInstances", "ec2:CreateLaunchTemplateVersion" ], "Resource" : "arn:aws:ec2:*:*:launch-template/*", "Condition" : { "StringEquals" : { "aws:ResourceTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "CreateEMRTaggedLaunchTemplate", "Effect" : "Allow", "Action" : "ec2:CreateLaunchTemplate", "Resource" : "arn:aws:ec2:*:*:launch-template/*", "Condition" : { "StringEquals" : { "aws:RequestTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "CreateEMRTaggedInstancesAndVolumes", "Effect" : "Allow", "Action" : [ "ec2:RunInstances", "ec2:CreateFleet" ], "Resource" : [ "arn:aws:ec2:*:*:instance/*", "arn:aws:ec2:*:*:volume/*" ], "Condition" : { "StringEquals" : { "aws:RequestTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "ResourcesToLaunchEC2", "Effect" : "Allow", "Action" : [ "ec2:RunInstances", "ec2:CreateFleet", "ec2:CreateLaunchTemplate", "ec2:CreateLaunchTemplateVersion" ], "Resource" : [ "arn:aws:ec2:*:*:network-interface/*", "arn:aws:ec2:*::image/ami-*", "arn:aws:ec2:*:*:key-pair/*", "arn:aws:ec2:*:*:capacity-reservation/*", "arn:aws:ec2:*:*:placement-group/EMR_*", "arn:aws:ec2:*:*:fleet/*", "arn:aws:ec2:*:*:dedicated-host/*", "arn:aws:resource-groups:*:*:group/*" ] }, { "Sid" : "ManageEMRTaggedResources", "Effect" : "Allow", "Action" : [ "ec2:CreateLaunchTemplateVersion", "ec2:DeleteLaunchTemplate", "ec2:DeleteNetworkInterface", "ec2:ModifyInstanceAttribute", "ec2:TerminateInstances" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "ManageTagsOnEMRTaggedResources", "Effect" : "Allow", "Action" : [ "ec2:CreateTags", "ec2:DeleteTags" ], "Resource" : [ "arn:aws:ec2:*:*:instance/*", "arn:aws:ec2:*:*:volume/*", "arn:aws:ec2:*:*:network-interface/*", "arn:aws:ec2:*:*:launch-template/*" ], "Condition" : { "StringEquals" : { "aws:ResourceTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "CreateNetworkInterfaceNeededForPrivateSubnet", "Effect" : "Allow", "Action" : [ "ec2:CreateNetworkInterface" ], "Resource" : [ "arn:aws:ec2:*:*:network-interface/*" ], "Condition" : { "StringEquals" : { "aws:RequestTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "TagOnCreateTaggedEMRResources", "Effect" : "Allow", "Action" : [ "ec2:CreateTags" ], "Resource" : [ "arn:aws:ec2:*:*:network-interface/*", "arn:aws:ec2:*:*:instance/*", "arn:aws:ec2:*:*:volume/*", "arn:aws:ec2:*:*:launch-template/*" ], "Condition" : { "StringEquals" : { "ec2:CreateAction" : [ "RunInstances", "CreateFleet", "CreateLaunchTemplate", "CreateNetworkInterface" ] } } }, { "Sid" : "TagPlacementGroups", "Effect" : "Allow", "Action" : [ "ec2:CreateTags", "ec2:DeleteTags" ], "Resource" : [ "arn:aws:ec2:*:*:placement-group/EMR_*" ] }, { "Sid" : "ListActionsForEC2Resources", "Effect" : "Allow", "Action" : [ "ec2:DescribeAccountAttributes", "ec2:DescribeCapacityReservations", "ec2:DescribeDhcpOptions", "ec2:DescribeImages", "ec2:DescribeInstances", "ec2:DescribeInstanceTypeOfferings", "ec2:DescribeLaunchTemplates", "ec2:DescribeNetworkAcls", "ec2:DescribeNetworkInterfaces", "ec2:DescribePlacementGroups", "ec2:DescribeRouteTables", "ec2:DescribeSecurityGroups", "ec2:DescribeSubnets", "ec2:DescribeVolumes", "ec2:DescribeVolumeStatus", "ec2:DescribeVpcAttribute", "ec2:DescribeVpcEndpoints", "ec2:DescribeVpcs" ], "Resource" : "*" }, { "Sid" : "CreateDefaultSecurityGroupWithEMRTags", "Effect" : "Allow", "Action" : [ "ec2:CreateSecurityGroup" ], "Resource" : [ "arn:aws:ec2:*:*:security-group/*" ], "Condition" : { "StringEquals" : { "aws:RequestTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "CreateDefaultSecurityGroupInVPCWithEMRTags", "Effect" : "Allow", "Action" : [ "ec2:CreateSecurityGroup" ], "Resource" : [ "arn:aws:ec2:*:*:vpc/*" ], "Condition" : { "StringEquals" : { "aws:ResourceTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "TagOnCreateDefaultSecurityGroupWithEMRTags", "Effect" : "Allow", "Action" : [ "ec2:CreateTags" ], "Resource" : "arn:aws:ec2:*:*:security-group/*", "Condition" : { "StringEquals" : { "aws:RequestTag/for-use-with-amazon-emr-managed-policies" : "true", "ec2:CreateAction" : "CreateSecurityGroup" } } }, { "Sid" : "ManageSecurityGroups", "Effect" : "Allow", "Action" : [ "ec2:AuthorizeSecurityGroupEgress", "ec2:AuthorizeSecurityGroupIngress", "ec2:RevokeSecurityGroupEgress", "ec2:RevokeSecurityGroupIngress" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceTag/for-use-with-amazon-emr-managed-policies" : "true" } } }, { "Sid" : "CreateEMRPlacementGroups", "Effect" : "Allow", "Action" : [ "ec2:CreatePlacementGroup" ], "Resource" : "arn:aws:ec2:*:*:placement-group/EMR_*" }, { "Sid" : "DeletePlacementGroups", "Effect" : "Allow", "Action" : [ "ec2:DeletePlacementGroup" ], "Resource" : "*" }, { "Sid" : "AutoScaling", "Effect" : "Allow", "Action" : [ "application-autoscaling:DeleteScalingPolicy", "application-autoscaling:DeregisterScalableTarget", "application-autoscaling:DescribeScalableTargets", "application-autoscaling:DescribeScalingPolicies", "application-autoscaling:PutScalingPolicy", "application-autoscaling:RegisterScalableTarget" ], "Resource" : "*" }, { "Sid" : "ResourceGroupsForCapacityReservations", "Effect" : "Allow", "Action" : [ "resource-groups:ListGroupResources" ], "Resource" : "*" }, { "Sid" : "AutoScalingCloudWatch", "Effect" : "Allow", "Action" : [ "cloudwatch:PutMetricAlarm", "cloudwatch:DeleteAlarms", "cloudwatch:DescribeAlarms" ], "Resource" : "arn:aws:cloudwatch:*:*:alarm:*_EMR_Auto_Scaling" }, { "Sid" : "PassRoleForAutoScaling", "Effect" : "Allow", "Action" : "iam:PassRole", "Resource" : "arn:aws:iam::*:role/EMR_AutoScaling_DefaultRole", "Condition" : { "StringLike" : { "iam:PassedToService" : "application-autoscaling.amazonaws.com*" } } }, { "Sid" : "PassRoleForEC2", "Effect" : "Allow", "Action" : "iam:PassRole", "Resource" : "arn:aws:iam::*:role/EMR_EC2_DefaultRole", "Condition" : { "StringLike" : { "iam:PassedToService" : "ec2.amazonaws.com*" } } } ] }