ecs:CreateCluster

Write

ecs:CreateCluster is a Write access-level action in the ecs service. Grants permission to create a new Amazon ECS cluster

Resource types

ARNs that ecs:CreateCluster can be scoped to in an IAM policy.

arn:${Partition}:ecs:${Region}:${Account}:cluster/${ClusterName} required
cluster

Condition keys

Keys you can use in the Condition block of a policy that grants ecs:CreateCluster.

aws:RequestTag/${TagKey} String

Filters access by the tags that are passed in the request

aws:TagKeys ArrayOfString

Filters access by the tag keys that are passed in the request

ecs:capacity-provider ArrayOfARN

Filters access by the ARN of an Amazon ECS capacity provider

ecs:fargate-ephemeral-storage-kms-key String

Filters access by the AWS KMS key id provided in the request

aws:ResourceTag/${TagKey} String

Filters access by the tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows ecs:CreateCluster. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEcsCreateCluster",
      "Effect": "Allow",
      "Action": "ecs:CreateCluster",
      "Resource": "*"
    }
  ]
}

Related actions in ecs

View all ecs actions →