Из руководства по работе с данными хочу интегрировать aws:
https://docs.datadoghq.com/integrations/amazon_web_services/
Создана новая политика с именем 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
:
https://help.datadoghq.com/hc/en-us/articles/360002042531-Error-Datadog-is-not-authorized-to-peform-sts-AssumeRole