ec2:AssociateCapacityReservationBillingOwner

Write

ec2:AssociateCapacityReservationBillingOwner is a Write access-level action in the ec2 service. Grants permission to assign billing of the unused capacity of a shared Capacity Reservation to a consumer account

Resource types

ARNs that ec2:AssociateCapacityReservationBillingOwner can be scoped to in an IAM policy.

arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/${CapacityReservationId} required
capacity-reservation

Condition keys

Keys you can use in the Condition block of a policy that grants ec2:AssociateCapacityReservationBillingOwner.

ec2:Region String

Filters access by the name of the AWS Region

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair of a resource

ec2:AvailabilityZone String

Filters access by the name of an Availability Zone in an AWS Region

ec2:CapacityReservationFleet ARN

Filters access by the ARN of the Capacity Reservation Fleet

ec2:CreateDate Date

Filters access by the date and time at which the Capacity Reservation was created

ec2:EbsOptimized Bool

Filters access by whether the instance is enabled for EBS optimization

ec2:EndDate Date

Filters access by the date and time at which the Capacity Reservation ends

ec2:EndDateType String

Filters access by the way in which the Capacity Reservation ends

ec2:InstanceCount Numeric

Filters access by the number of instances

ec2:InstanceMatchCriteria String

Filters access by the type of instance launches that the Capacity Reservation accepts

ec2:InstancePlatform ARN

Filters access by the type of operating system for which the Capacity Reservation reserves capacity

ec2:InstanceType String

Filters access by the type of instance

ec2:OutpostArn ARN

Filters access by the ARN of the Outpost

ec2:PlacementGroup ARN

Filters access by the ARN of the placement group

ec2:ResourceTag/${TagKey} String

Filters access by a tag key and value pair of a resource

ec2:Tenancy String

Filters access by the tenancy of the VPC or instance (default, dedicated, or host)

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEc2AssociateCapacityReservationBillingOwner",
      "Effect": "Allow",
      "Action": "ec2:AssociateCapacityReservationBillingOwner",
      "Resource": "*"
    }
  ]
}

Related actions in ec2

View all ec2 actions →