AmazonPrometheusScraperServiceRolePolicy
Last Modified
Jul 17, 2026
July 17, 2026 at 09:05 AM UTC
Version
v3
Total Versions
2
Created
Jul 17, 2026
Actions
12
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DeleteSLR",
"Effect": "Allow",
"Action": [
"iam:DeleteRole"
],
"Resource": "arn:aws:iam::*:role/aws-service-role/scraper.aps.amazonaws.com/AWSServiceRoleForAmazonPrometheusScraper*"
},
{
"Sid": "NetworkDiscovery",
"Effect": "Allow",
"Action": [
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeSubnets",
"ec2:DescribeSecurityGroups"
],
"Resource": "*"
},
{
"Sid": "ENIManagement",
"Effect": "Allow",
"Action": "ec2:CreateNetworkInterface",
"Resource": "*",
"Condition": {
"ForAllValues:StringEquals": {
"aws:TagKeys": [
"AMPAgentlessScraper"
]
}
}
},
{
"Sid": "TagManagement",
"Effect": "Allow",
"Action": "ec2:CreateTags",
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"StringEquals": {
"ec2:CreateAction": "CreateNetworkInterface"
},
"Null": {
"aws:RequestTag/AMPAgentlessScraper": "false"
}
}
},
{
"Sid": "ENIUpdating",
"Effect": "Allow",
"Action": [
"ec2:DeleteNetworkInterface",
"ec2:ModifyNetworkInterfaceAttribute"
],
"Resource": "*",
"Condition": {
"Null": {
"ec2:ResourceTag/AMPAgentlessScraper": "false"
}
}
},
{
"Sid": "EKSAccess",
"Effect": "Allow",
"Action": "eks:DescribeCluster",
"Resource": "arn:aws:eks:*:*:cluster/*"
},
{
"Sid": "DeleteEKSAccessEntry",
"Effect": "Allow",
"Action": "eks:DeleteAccessEntry",
"Resource": "arn:aws:eks:*:*:access-entry/*/role/*",
"Condition": {
"StringEquals": {
"aws:PrincipalAccount": "${aws:ResourceAccount}"
},
"ArnLike": {
"eks:principalArn": "arn:aws:iam::*:role/aws-service-role/scraper.aps.amazonaws.com/AWSServiceRoleForAmazonPrometheusScraper*"
}
}
},
{
"Sid": "APSWriting",
"Effect": "Allow",
"Action": "aps:RemoteWrite",
"Resource": "arn:aws:aps:*:*:workspace/*",
"Condition": {
"StringEquals": {
"aws:PrincipalAccount": "${aws:ResourceAccount}"
}
}
},
{
"Sid": "CloudWatchMetricsWriting",
"Effect": "Allow",
"Action": "cloudwatch:PutMetricData",
"Resource": "arn:aws:cloudwatch:*:*:dataset/*",
"Condition": {
"StringEquals": {
"aws:PrincipalAccount": "${aws:ResourceAccount}"
}
}
}
]
},
"VersionId": "v3",
"IsDefaultVersion": true,
"CreateDate": "2026-07-17T08:27:27+00:00"
}
}Version History (5 recorded)
Raw historyv3updated
1 action added
AmazonPrometheusScraperServiceRolePolicy - Policy Version v2
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
1fb36f0Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 26, 2023
2915ce2