Loading...
 
The AWS CLI supports named profiles stored in the config and credentials files.

AWS Creating Profiles

The AWS CLI supports named profiles stored in the config and credentials files. You can configure additional profiles by using aws configure with the --profile option or by adding entries to the config and credentials files.1

Resources

Setup a User

AWS Identity and Access Management (IAM) enables you to securely control access to AWS services and resources for your users. Using IAM, you can create and manage AWS users and groups and use permissions to allow and deny their access to AWS resources.2

Provide the user with the proper permissions required to complete command line task(s) as needed, see Controlling Access Using Policies

Store a User's Credentials

When creating profiles having both the AWS Access Key ID and AWS Secret Access Key are required.

Create Profiles
$ aws configure --profile myprofile1
$ aws configure --profile myprofile2

Usage Examples

Specifying Parameter Values for the AWS Command Line Interface

Specifying Parameter Values
$ aws --profile myprofile1 --region us-east-1 ec2 describe-volume


Filter Name is always lower case, see Supported Filters ec2-describe-instances

Supported Filters
$ aws --profile myprofile1 --region us-west-1 ec2 describe-instances --filters "Name=instance-type,Values=m1.small,m1.medium"


Controlling Command Output from the AWS Command Line Interface

Controlling Command Output
$ aws --profile myprofile1 --region us-west-1 ec2 describe-instances --query "Reservations[*].Instances[*].[Placement.AvailabilityZone, State.Name, InstanceId]"


Creates an Amazon EBS-backed AMI

Create Instance Image
$ aws --profile myprofile1 --region us-west-1 ec2 create-image --instance-id i-123456 --name "MyAMIName" --description "Some Description"

Last edited by MichaelAlber .
Page last modified on Saturday May 9, 2020 00:50:34 UTC.

Books

Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible - Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your computer, saving time and expanding capability.


Linux Bible Linux Bible - Linux continues to be an excellent, low-cost alternative to expensive operating systems. Whether you're new to Linux or need a reliable update and reference, this is an excellent resource. Veteran bestselling author Christopher Negus provides a complete tutorial packed with major updates, revisions, and hands-on exercises so that you can confidently start using Linux today.


Learning Python Learning Python - Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications.


Modern PHP: New Features and Good Practices Modern PHP: New Features and Good Practices - PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you'll learn how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries.