View a markdown version of this page

Actions, resources, and condition keys for AWS CloudShell - Service Authorization Reference

Actions, resources, and condition keys for AWS CloudShell

AWS CloudShell (service prefix: cloudshell) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

Actions defined by AWS CloudShell

AWS CloudShell has no API operations that can be used in the Actions element of an IAM policy statement.

Permission-only actions for AWS CloudShell

The following actions are defined by AWS CloudShell but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.

Actions Description Resource types (*required) Condition keys Access level

ApproveCommand

Grants permission to approve a command sent by another AWS service

Environment*

Read

CreateEnvironment

Grants permissions to create a CloudShell environment

cloudshell:SecurityGroupIds

cloudshell:SubnetIds

cloudshell:VpcIds

Write

CreateSession

Grants permissions to connect to a CloudShell environment from the AWS Management Console

Environment*

Write

DeleteEnvironment

Grants permission to delete a CloudShell environment

Environment*

Write

DescribeEnvironments

Grants permission to return descriptions of existing user's environments

List

GetEnvironmentStatus

Grants permission to read a CloudShell environment status

Environment*

Read

GetFileDownloadUrls

Grants permissions to download files from a CloudShell environment

Environment*

Write

GetFileUploadUrls

Grants permissions to upload files to a CloudShell environment

Environment*

Write

PutCredentials

Grants permissions to forward console credentials to the environment

Environment*

Write

StartEnvironment

Grants permission to start a stopped CloudShell environment

Environment*

Write

StopEnvironment

Grants permission to stop a running CloudShell environment

Environment*

Write

Resource types defined by AWS CloudShell

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

Environment

arn:${Partition}:cloudshell:${Region}:${Account}:environment/${EnvironmentId}

Condition keys for AWS CloudShell

AWS CloudShell defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

cloudshell:SecurityGroupIds

Filters access by security group ids. Available during CreateEnvironment operation

ArrayOfString

cloudshell:SubnetIds

Filters access by subnet ids. Available during CreateEnvironment operation

ArrayOfString

cloudshell:VpcIds

Filters access by vpc ids. Available during CreateEnvironment operation

ArrayOfString