AWS Identity and Access Management
User Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Actions, Resources, and Condition Keys for Amazon Lightsail

Amazon Lightsail (service prefix: lightsail) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.


Actions Defined by Amazon Lightsail

Amazon Lightsail has no API operations that can be used in the Actions element of an IAM policy statement. To allow access to Amazon Lightsail, specify “Action”: “lightsail:*” in your policy.

Resources Defined by Amazon Lightsail

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the table. For details about the columns in the following table, see The Resource Types Table.

Resource Types ARN Condition Keys
Domain arn:${Partition}:lightsail:${Region}:${Account}:Domain/${Id}
Instance arn:${Partition}:lightsail:${Region}:${Account}:Instance/${Id}
InstanceSnapshot arn:${Partition}:lightsail:${Region}:${Account}:InstanceSnapshot/${Id}
KeyPair arn:${Partition}:lightsail:${Region}:${Account}:KeyPair/${Id}
StaticIp arn:${Partition}:lightsail:${Region}:${Account}:StaticIp/${Id}
Disk arn:${Partition}:lightsail:${Region}:${Account}:Disk/${Id}
DiskSnapshot arn:${Partition}:lightsail:${Region}:${Account}:DiskSnapshot/${Id}
LoadBalancer arn:${Partition}:lightsail:${Region}:${Account}:LoadBalancer/${Id}
ExportSnapshotRecord arn:${Partition}:lightsail:${Region}:${Account}:ExportSnapshotRecord/${Id}
CloudFormationStackRecord arn:${Partition}:lightsail:${Region}:${Account}:CloudFormationStackRecord/${Id}
RelationalDatabase arn:${Partition}:lightsail:${Region}:${Account}:RelationalDatabase/${Id}
RelationalDatabaseSnapshot arn:${Partition}:lightsail:${Region}:${Account}:RelationalDatabaseSnapshot/${Id}

Condition Keys for Amazon Lightsail

Lightsail has no service-specific context keys that can be used in the Condition element of policy statements. For the list of the global context keys that are available to all services, see Available Keys for Conditions in the IAM Policy Reference.