Erstellen Sie eine benutzerdefinierte Richtlinie mit einem beschreibenden Namen. Geben Sie im Feld für das Richtliniendokument den Code ein, der die APIs enthält, deren Ausführung durch diese Richtlinie erlaubt wird.
Hinweis: Das folgende JSON-Beispiel ist ein Teilbeispiel mit Berechtigungen für Cloud-Discovery. Es handelt sich nicht um eine vollständige Liste aller erforderlichen Berechtigungen.
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"PermissionsNeededForDiscovery",
"Effect":"Allow",
"Action":[
"account:ListRegions",
"apigateway:GET",
"application-autoscaling:Describe*",
"autoscaling-plans:Describe*",
"autoscaling:Describe*",
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeLaunchConfigurations",
"cloudformation:Describe*",
"cloudformation:DescribeStack*",
"cloudformation:List*",
"cloudwatch:Get*",
"cloudwatch:List*",
"config:ListDiscoveredResources",
"dynamodb:Describe*",
"dynamodb:DescribeTable",
"dynamodb:ListGlobalTables",
"dynamodb:ListTables",
"ec2:Describe*",
"ec2:ReportInstanceStatus",
"ecs:Describe*",
"ecs:List*",
"eks:Describe*",
"eks:List*",
"elasticache:Describe*",
"elasticache:List*",
"elasticfilesystem:Describe*",
"elasticloadbalancing:Describe*",
"lambda:Get*",
"lambda:List*",
"organizations:Describe*",
"organizations:DescribeOrganization",
"organizations:List*",
"rds:Describe*",
"redshift:Describe*",
"route53:GetHostedZone",
"route53:List*",
"s3:GetAccountPublicAccessBlock",
"s3:GetBucket*",
"s3:GetBucketLocation",
"s3:List*",
"sdb:GetAttributes",
"sns:GetEndpointAttributes",
"sns:GetSubscriptionAttributes",
"sns:List*",
"sns:ListPlatformApplications",
"sns:ListSubscriptions",
"sns:ListSubscriptionsByTopic",
"sns:ListTopics"
],
"Resource":"*"
}
]
}
Das folgende JSON-Beispiel ist ein Teilbeispiel mit Berechtigungen für Cloud-Discovery Und Cloud Provisioning and Governance. Es handelt sich nicht um eine vollständige Liste aller erforderlichen Berechtigungen.{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PermissionsNeededForCPG",
"Effect": "Allow",
"Action": [
"account:ListRegions",
"apigateway:GET",
"application-autoscaling:Describe*",
"autoscaling-plans:Describe*",
"autoscaling:Describe*",
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeLaunchConfigurations",
"cloudformation:Describe*",
"cloudformation:DescribeStack*",
"cloudwatch:Get*",
"cloudwatch:List*",
"config:ListDiscoveredResources"
"dynamodb:Describe*",
"dynamodb:DescribeTable",
"dynamodb:ListGlobalTables",
"dynamodb:ListTables",
"ec2:Describe*",
"ec2:ReportInstanceStatus",
"ecs:Describe*",
"ecs:List*",
"eks:Describe*",
"eks:List*",
"elasticache:Describe*",
"elasticache:List*",
"elasticfilesystem:Describe*",
"elasticloadbalancing:Describe*",
"lambda:Get*",
"lambda:List*",
"organizations:Describe*",
"organizations:DescribeOrganization",
"organizations:List*",
"rds:Describe*",
"redshift:Describe*",
"route53:GetHostedZone",
"route53:List*",
"s3:GetAccountPublicAccessBlock",
"s3:GetBucket*",
"s3:GetBucketLocation",
"s3:List*",
"sdb:GetAttributes",
"sns:GetEndpointAttributes",
"sns:GetSubscriptionAttributes",
"sns:List*",
"sns:ListPlatformApplications",
"sns:ListSubscriptions",
"sns:ListSubscriptionsByTopic",
"sns:ListTopics"
],
"Resource": "*"
},
{
"Sid": "MinimalPermissionsNeededForEc2ProvisioningThroughCloudFormation",
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",
"cloudformation:DeleteStack",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResources",
"cloudformation:DescribeStacks",
"cloudformation:GetTemplate",
"cloudformation:GetTemplateSummary",
"cloudformation:List*",
"cloudformation:UpdateStack",
"cloudformation:ValidateTemplate"
"ec2:*",
"s3:CreateBucket",
"s3:DeleteBucket",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListBucket",
"s3:PutObject"
],
"Resource": "*"
}
]
}