在datadog指南中,希望集成aws:
创建了一个名为DatadogAWSIntegrationPolicy的新策略
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucketByTags",
"s3:GetLifecycleConfiguration",
"s3:GetBucketTagging",
"s3:GetInventoryConfiguration",
"s3:GetObjectVersionTagging",
"s3:ListBucketVersions",
"s3:GetBucketLogging",
"ec2:GetHostReservationPurchasePreview",
"ec2:DescribeVolumesModifications",
"s3:GetAccelerateConfiguration",
"ec2:GetConsoleScreenshot",
"s3:GetBucketPolicy",
"ec2:GetConsoleOutput",
"s3:GetObjectVersionTorrent",
"s3:GetObjectAcl",
"s3:GetEncryptionConfiguration",
"ec2:GetLaunchTemplateData",
"s3:GetBucketRequestPayment",
"ec2:DescribeScheduledInstanceAvailability",
"s3:GetObjectVersionAcl",
"s3:GetObjectTagging",
"s3:GetMetricsConfiguration",
"s3:GetIpConfiguration",
"s3:ListBucketMultipartUploads",
"s3:GetBucketWebsite",
"ec2:DescribeTags",
"ec2:DescribeVpnConnections",
"s3:GetBucketVersioning",
"s3:GetBucketAcl",
"s3:GetBucketNotification",
"ec2:GetReservedInstancesExchangeQuote",
"s3:GetReplicationConfiguration",
"s3:ListMultipartUploadParts",
"s3:GetObject",
"ec2:GetPasswordData",
"s3:GetObjectTorrent",
"ec2:DescribeScheduledInstances",
"s3:GetBucketCORS",
"s3:GetAnalyticsConfiguration",
"ec2:DescribeElasticGpus",
"s3:GetObjectVersionForReplication",
"s3:GetBucketLocation",
"s3:GetObjectVersion"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::464622532012:root"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
]
}但是,当单击Review policy按钮时,它会说:
This policy contains the following error: Has prohibited field Principal For more information about the IAM policy grammar, see AWS IAM Policies语法遵循datadog服务:
发布于 2018-06-11 08:09:13
看起来您创建了一些策略,但没有创建所需类型的策略。在为Datadog创建角色时,必须选择非常特定的角色类型:
为角色类型选择另一个AWS帐户。
然后为这个角色创建一个策略。还有,别忘了
注销要求外部ID
只要您一步一步地遵循指南:services/,您就不会有任何问题。
发布于 2020-04-05 14:51:15
我遇到了这个问题,当我尝试使用角色假设角色作为assume_role_policy上的一个假设角色时,以及试图附加它。
一旦我摆脱了我用角色假设策略文档以及角色策略附件创建的aws_iam_policy,它就起作用了。
希望这能有所帮助。
https://stackoverflow.com/questions/50792558
复制相似问题