Skip to main content
IAM Policy Map

AWSMediaLiveAnywhereServiceRolePolicy

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Allows MediaLive Anywhere to create and manage AWS resources on your behalf.

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

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/AWSMediaLiveAnywhereServiceRolePolicy
Default version
v1
Created
Last edited
Services
cloudwatch, ecs

Control-plane actions (9)

By access level: 2 List, 1 Tagging, 6 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Elastic Container Service9 of 922 List, 1 Tagging, 6 Write; 7 restricted, 4 conditionalecs:DeleteService, ecs:DeleteTaskDefinitions, ecs:DeregisterContainerInstance, ecs:DeregisterTaskDefinition, ecs:ListContainerInstances, ecs:ListTaskDefinitions, ecs:RegisterTaskDefinition, ecs:TagResource, ecs:UpdateService
Elastic Container Service: 9 actions
  • ecs:DeleteService (Write)
  • ecs:DeleteTaskDefinitions (Write)
  • ecs:DeregisterContainerInstance (Write)
  • ecs:DeregisterTaskDefinition (Write)
  • ecs:ListContainerInstances (List)
  • ecs:ListTaskDefinitions (List)
  • ecs:RegisterTaskDefinition (Write)
  • ecs:TagResource (Tagging)
  • ecs:UpdateService (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": "PutMediaLiveMetricData",
      "Effect": "Allow",
      "Action": "cloudwatch:PutMetricData",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "cloudwatch:namespace": "AWS/MediaLive"
        }
      }
    },
    {
      "Sid": "RegisterAnywhereAgentTaskDefinition",
      "Effect": "Allow",
      "Action": [
        "ecs:RegisterTaskDefinition"
      ],
      "Resource": [
        "arn:aws:ecs:*:*:task-definition/MediaLiveAnywhereAgent*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/created_by": "MediaLiveAnywhere"
        }
      }
    },
    {
      "Sid": "ECSTagResource",
      "Effect": "Allow",
      "Action": [
        "ecs:TagResource"
      ],
      "Resource": [
        "arn:aws:ecs:*:*:task-definition/*"
      ],
      "Condition": {
        "StringEquals": {
          "ecs:CreateAction": "RegisterTaskDefinition",
          "aws:RequestTag/created_by": "MediaLiveAnywhere"
        },
        "ForAllValues:StringEquals": {
          "aws:TagKeys": "created_by"
        }
      }
    },
    {
      "Sid": "UpdateAnywhereAgentService",
      "Effect": "Allow",
      "Action": [
        "ecs:UpdateService"
      ],
      "Resource": [
        "arn:aws:ecs:*:*:*"
      ],
      "Condition": {
        "ArnLike": {
          "ecs:Cluster": "arn:aws:ecs:*:*:cluster/MediaLiveAnywhere*",
          "ecs:Task-Definition": "arn:aws:ecs:*:*:task-definition/MediaLiveAnywhereAgent*"
        }
      }
    },
    {
      "Sid": "ECSListTaskDefinitions",
      "Effect": "Allow",
      "Action": [
        "ecs:ListTaskDefinitions"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "DeregisterAnywhereAgentTaskDefinitionOnCleanup",
      "Effect": "Allow",
      "Action": [
        "ecs:DeregisterTaskDefinition"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "DeleteAnywhereAgentTaskDefinitionsOnCleanup",
      "Effect": "Allow",
      "Action": [
        "ecs:DeleteTaskDefinitions"
      ],
      "Resource": [
        "arn:aws:ecs:*:*:task-definition/MediaLiveAnywhereAgent*"
      ]
    },
    {
      "Sid": "DeleteAnywhereAgentServiceOnCleanup",
      "Effect": "Allow",
      "Action": [
        "ecs:DeleteService"
      ],
      "Resource": [
        "arn:aws:ecs:*:*:service/MediaLiveAnywhere*/MediaLiveAnywhereAgent*"
      ],
      "Condition": {
        "ArnLike": {
          "ecs:Cluster": "arn:aws:ecs:*:*:cluster/MediaLiveAnywhere*"
        }
      }
    },
    {
      "Sid": "DeregisterContainerInstanceOnCleanup",
      "Effect": "Allow",
      "Action": [
        "ecs:ListContainerInstances",
        "ecs:DeregisterContainerInstance"
      ],
      "Resource": [
        "arn:aws:ecs:*:*:cluster/MediaLiveAnywhere*"
      ]
    }
  ]
}

Version history

Current version v1, edited by AWS on 2025-04-14. 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.