AWS cli cheatsheet
Section 1: General
Turn on debug logging.
Override command's default URL with the given URL.
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
Output format
A JMESPath query to use in filtering the response data.
Use a specific profile from your credential file.
The region to use. Overrides config/env settings.
Display the version of this tool.
Section 2: Configure
Section 3: IAM
Lists all the iam users.
Lists all the iam groups.
Lists all the iam roles.
Lists all the iam policies.
Creates an IAM user in the current account.
Creates an IAM group in the current account.
Creates an IAM role in the current account.
Creates an IAM policy in the current account.
Lists policies attached to the group.
Lists policies attached to the role.
Lists policies attached to the user.
Lists managed policies attached to the group.
Lists managed policies attached to the user.
Lists managed policies attached to the role.
Lists groups attached to the user.
Lists signing certificates for the user.
Lists public ssh keys for the user.
Lists all virtual-mfa devices present.
Retrieves information about the specified managed policy
Retrieves information about the specified version of the specified managed policy, including the policy document.
Retrieves information about the specified IAM user.
Retrieves information about the specified role.
Retrieves information about the specified group.
Retrieves the specified inline policy document that is embedded in the specified IAM user.
Retrieves the specified inline policy document that is embedded with the specified IAM role.
Retrieves the specified inline policy document that is embedded with the specified IAM group.
Attaches the specified managed policy to the specified IAM group.
Attaches the specified managed policy to the specified IAM role.
Attaches the specified managed policy to the specified user.
Creates a password for the specified IAM user.
Retrieves the username and password creation date for the specified IAM user.
Lists the instance profiles that have the specified path prefix.
Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role.
Adds or updates an inline policy document that is embedded in the specified IAM group.
Adds or updates an inline policy document that is embedded in the specified IAM role.
Adds or updates an inline policy document that is embedded in the specified IAM user.
Removes the specified user from the specified group.
Updates the name and/or the path of the specified IAM group.
Section 4: API Gateway
Gets information about the current Account resource.
Lists the RestApis resources for your collection.
Lists the RestApi resource in the collection.
Gets information about the current ApiKeys resource.
Gets information about the current ApiKey resource.
Describe an existing Method resource.
Describes a MethodResponse resource.
Describe an existing Authorizers resource.
Describe an existing Authorizer resource.
Gets a collection of ClientCertificate resources.
Lists information about a collection of Resource resources.
Lists information about a resource.
Gets a collection of ClientCertificate resources.
Gets information about the current ClientCertificate resource.
Get the integration settings.
Represents a get integration response.
Gets all the usage plans of the caller's account.
Gets a usage plan of a given plan identifier.
Gets all the usage plan keys representing the API keys added to a specified usage plan.
Gets a usage plan key of a given key identifier.
Add a method to an existing Resource resource.
updates an existing API with an input of external API definitions.
Create an ApiKey resource.
Creates a new RestApi resource.
Changes information about an ApiKey resource.
Changes information about the specified API.
Section 5: Lambda
Returns a list of aliases for a Lambda function.
Returns details about a Lambda function alias.
Returns a list of Lambda functions, with the version-specific configuration of each.
Returns information about the function or function version.
Returns the resource-based IAM policy for a function, version, or alias.
Lists AWS Lambda layers and shows information about the latest version of each.
Returns information about a version of an AWS Lambda layer.
Returns information about a version of an AWS Lambda layer
Returns the permission policy for a version of an AWS Lambda layer.
Lists event source mappings.
Invokes a Lambda function.
Retrieves details about your account's limits and usage in an AWS Region.
Returns a list of code signing configurations.
Returns information about the specified code signing configuration.
Returns a list of versions , with the version-specific configuration of each.
Creates a Lambda function.
Creates an alias for a Lambda function version.
Creates an AWS Lambda layer from a ZIP archive.
Creates a version from the current code and configuration of a function.
Updates the configuration of a Lambda function alias.
Updates an event source mapping.
Deletes a Lambda function alias.
Deletes a Lambda function.
Deletes a version of an AWS Lambda layer.
Deletes an event source mapping.
Section 6: Databases
RDS:
Returns a list of the available DB engines.
Lists all of the attributes for a customer account.
Returns information about provisioned Aurora DB clusters.
Returns a list of DBClusterParameterGroup descriptions.
Returns the detailed parameter list for a particular DB cluster parameter group.
Returns information about DB cluster snapshots.
Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot.
Returns information about provisioned RDS instances.
Returns a list of DBSecurityGroup descriptions.
Returns a list of DBSubnetGroup descriptions.
Lists the set of CA certificates provided by Amazon RDS for this AWS account.
Returns information about endpoints for an Amazon Aurora DB cluster.
Returns events related to DB instances, DB clusters, DB parameter groups, DB security groups, DB snapshots, and DB cluster snapshots
Returns a list of the source AWS Regions where the current AWS Region can create a read replica, copy a DB snapshot from, or replicate automated backups from.
Returns a list of DB log files for the DB instance.
Modifies an existing option group.
Associates an Identity and Access Management (IAM) role from an Amazon Aurora DB cluster.
Creates a new Amazon Aurora DB cluster.
Creates a new DB instance.
Creates a snapshot of a DB instance.
Creates a new DB subnet group.
Override the system-default Secure Sockets Layer/Transport Layer Security (SSL/TLS) certificate for Amazon RDS for new DB instances temporarily.
Modify a setting for an Amazon Aurora DB cluster.
Modifies settings for a DB instance.
Updates a manual DB snapshot with a new engine version.
Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
Stops an Amazon RDS DB instance.
Document DB:
Creates a new Amazon DocumentDB cluster.
Creates a new DB instance.
Returns information about provisioned DocumentDB instances.
Returns information about provisioned Amazon DocumentDB clusters.
Returns a list of DBClusterParameterGroup descriptions.
Returns the detailed parameter list for a particular DB cluster parameter group.
Returns information about DB cluster snapshots.
Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot.
Returns a list of the available engines.
Returns a list of DBSubnetGroup descriptions.
Returns events related to DB instances, DB clusters, DB parameter groups, DB security groups, DB snapshots, and DB cluster snapshots.
DynamoDB:
To perform batch reads and writes on data stored in DynamoDB.
The BatchGetItem operation returns the attributes of one or more items from one or more tables.
Puts or deletes multiple items in one or more tables.
Adds a new table to your account. In an AWS account.
Describes an existing backup of a table.
Returns information about the table, including the current status of the table.
Returns the current provisioned-capacity quotas for your AWS account in a Region.
This operation allows you to perform reads and singleton writes on data stored in DynamoDB.
This operation allows you to perform transactional reads or writes on data stored in DynamoDB.
The GetItem operation returns a set of attributes for the item with the given primary key.
List backups associated with an AWS account.
Lists completed exports within the past 90 days.
Returns an array of table names associated with the current account and endpoint.
Creates a new item, or replaces an old item with a new item.
Creates a new table from an existing backup.
Returns one or more items and item attributes by accessing every item in a table
Edits an existing item's attributes, or adds a new item to the table if it does not already exist.
Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.
Section 6: S3
Copies a local file or S3 object to another location locally or in S3.
List S3 objects and common prefixes under a prefix or all S3 buckets.
Creates an S3 bucket.
Moves a local file or S3 object to another location locally or in S3.
Generate a pre-signed URL for an Amazon S3 object.
Deletes an empty S3 bucket.
Deletes an S3 object.
Syncs directories and S3 prefixes.
Set the website configuration for a bucket.
List buckets.
List bucket objects.
Retrieves bucket location.
Returns some or all (up to 1,000) of the objects in a bucket.
List object versions.
Return the ACL of the bucket.
Returns the cors configuration information set for the bucket.
Returns the logging status of a bucket and the permissions users have to view and modify that status.
Retrieves the policy status for an Amazon S3 bucket.
Returns the policy of a specified bucket.
Retrieves OwnershipControls for an Amazon S3 bucket.
Retrieves objects from Amazon S3.
Returns the access control list (ACL) of an object.
Returns the tag-set of an object.
Retrieves the PublicAccessBlock configuration for an Amazon S3 bucket.
Sets the permissions on an existing bucket using access control lists (ACL).
Sets the cors configuration for the bucket.
Applies an Amazon S3 bucket policy to an Amazon S3 bucket.
Use tags to organize your AWS bill to reflect your own cost structure.
Adds an object to a bucket.
Uses the acl subresource to set the access control list (ACL) permissions for a new or existing object for s3 bucket.
Sets the supplied tag-set to an object that already exists in a bucket.
Creates or modifies OwnershipControls for an Amazon S3 bucket.
Creates a copy of an object that is already stored in Amazon S3.
Creates a new S3 bucket.
Deletes the S3 bucket.
Deletes the S3 bucket cors configuration information set.
Delete the policy of a specified bucket.
Deletes the tags from the bucket.
Removes the null version (if there is one) of an object and inserts a delete marker.
Delete multiple objects from a bucket using a single HTTP request.
Removes OwnershipControls for an Amazon S3 bucket.
Last updated