Specify parameter values for the AWS CLI - AWS Command Line Interface

Specify parameter values for the AWS CLI

Many parameters used in the AWS Command Line Interface (AWS CLI) are simple string or numeric values, such as the key-pair name my-key-pair in the following example.

$ aws ec2 create-key-pair --key-name my-key-pair

Formatting between terminals can vary. For example, most terminals are case sensitive but Powershell is case insensitive. This means the two following command examples would yield different results for case sensitive terminals as they view MyFile*.txt and myfile*.txt as different parameters.

However, PowerShell would process these requests as the same as it sees MyFile*.txt and myfile*.txt as the same parameters.

$ aws s3 cp . s3://my-bucket/path --include "MyFile*.txt" $ aws s3 cp . s3://my-bucket/path --include "myfile*.txt"

For more information on PowerShell's case insensitivy, see about_Case-Sensitivity in the PowerShell documentation.

Sometimes you need to use quotation marks or literals around strings that include special or space characters. The rules around this formatting can also vary between terminals. For more information about using quotation marks around complex parameters, see Quotation marks with strings in the AWS CLI.