Skip to main content
IAM Policy Map

AmazonPrometheusScraperServiceRolePolicy

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Provides access to AWS Resources managed or used by Amazon Managed Service for Prometheus Collector

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/AmazonPrometheusScraperServiceRolePolicy
Default version
v3
Created
Last edited
Services
aps, cloudwatch, ec2, eks, iam

Control-plane actions (11)

By access level: 3 List, 1 Read, 1 Tagging, 6 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
AMP1 of 611 Write; 1 restricted, 1 conditionalaps:RemoteWrite
EC27 of 8343 List, 1 Tagging, 3 Write; 4 restricted, 4 conditionalec2:CreateNetworkInterface, ec2:CreateTags, ec2:DeleteNetworkInterface, ec2:DescribeNetworkInterfaces, ec2:DescribeSecurityGroups, ec2:DescribeSubnets, ec2:ModifyNetworkInterfaceAttribute
EKS2 of 741 Read, 1 Write; 2 restricted, 1 conditionaleks:DeleteAccessEntry, eks:DescribeCluster
IAM1 of 1901 Write; 1 restricted, 0 conditionaliam:DeleteRole
AMP: 1 actions
  • aps:RemoteWrite (Write)
EC2: 7 actions
  • ec2:CreateNetworkInterface (Write)
  • ec2:CreateTags (Tagging)
  • ec2:DeleteNetworkInterface (Write)
  • ec2:DescribeNetworkInterfaces (List)
  • ec2:DescribeSecurityGroups (List)
  • ec2:DescribeSubnets (List)
  • ec2:ModifyNetworkInterfaceAttribute (Write)
EKS: 2 actions
  • eks:DeleteAccessEntry (Write)
  • eks:DescribeCluster (Read)
IAM: 1 actions
  • iam:DeleteRole (Write)

Data-plane actions (1)

By access level: 1 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CloudWatch1 of 51 Write; 1 restricted, 1 conditionalcloudwatch:PutMetricData
CloudWatch: 1 actions
  • cloudwatch:PutMetricData (Write)

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: No (service-linked role policy).

Why this tier

  • Grants 8 write, tagging or permissions-management actions, short of full control of any service.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "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}"
        }
      }
    }
  ]
}

Version history

Current version v3, edited by AWS on 2026-07-17. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

This policy cannot be attached to users, groups or roles, so there are no attach snippets.

Sources

Pending editorial review. No editorial sources are listed yet.