![]() ![]() You can use the AWS CLI for ad hoc operations, such as creating a table. The AWS Command Line Interface (AWS CLI) provides support for all of the AWS database services, including Amazon DynamoDB. The following command displays the available Amazon Elastic Compute Cloud (Amazon EC2) specific commands. To do so, simply type help at the end of a command name.įor example, the following command displays help for the general AWS CLI options and the available top-level commands. You can get help with any command when using the AWS Command Line Interface (AWS CLI). Normally AWS CLI commands look like the following format: $ aws + service name + action + other parameters(based on scenario) To list all the dynamodb tables in the default region: $ aws dynamodb list-tables If your aws credentials are misconfigured, you won’t get access to aws services. ~/.aws/config region=us-west-2 output=json ~/.aws/credentials aws_access_key_id=AKIAIOSFODNN7EXAMPLE aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY $ aws configure $ AWS Access Key ID : AKIAIOSFODNN7EXAMPLE AWS $ Secret Access Key : wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY $ Default region name : us-west-2 $ Default output format : jsonįor example, the files generated by the CLI for a default profile configured with aws configure looks similar to the following. By default, the information in this profile is used when you run an AWS CLI command that doesn't explicitly specify a profile to use. The AWS CLI stores this information in a profile (a collection of settings) named default in the credentials file. Access key ID and Secret access key are provided when you create an IAM user. When you enter this command, the AWS CLI prompts you for four pieces of information: Configuring AWS Profileįor general use, the aws configure command is the fastest way to set up your AWS CLI installation. AWS CLI is based on top of boto3- an SDK based on python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |