Aws
Aws
com/cli/latest/userguide/awscli-install-
bundle.html
Configure the AWS CLI Tools on Linux/Windows/Mac
aws configure
Cleanup steps:
Note the instance ID from the output of last statement and replace it
respectively in below statement:
#!/bin/bash
#Start executing
while read region; do
echo "Executing " $@ " on " $region ":"
aws --region $region $@
done</tmp/regions.txt
#cleanup
rm /tmp/regions.txt
reference:===========================additional
commands============================
aws ec2 describe-images --filters "Name=tag:Name,Values=AUTO_SCALING-GOLDCOPY2018"
running alone:
aws ec2 describe-instances \
--output text \
--filters Name=instance-state-name,Values=running \
--query 'Reservations[].Instances[?!not_null(Tags[?Key == `Owner`].Value)] | [].
[InstanceId]'
=================================================================================
Locate the AWS Completer
The location can vary depending on the installation method used.
$ which aws_completer
Sample Output: /usr/local/bin/aws_completer
Enable Command Completion
Run a command to enable command completion. The command that you use to enable
completion depends on the shell that you are using. You can add the command to your
shell's RC file to run it each time you open a new shell.
Add the command to ~/.bashrc to run it each time you open a new shell. Your
~/.bash_profile should source ~/.bashrc to ensure that the command is run in login
shells as well.
=================================================================================
Using an HTTP Proxy
If you need to access AWS through proxy servers, you should configure the
HTTP_PROXY and HTTPS_PROXYenvironment variables with the IP addresses for your
proxy servers.
$ export HTTP_PROXY=http://a.b.c.d:n
$ export HTTPS_PROXY=http://w.x.y.z:m
Windows
Authenticating to a Proxy
The AWS CLI supports HTTP Basic authentication. Specify a username and password in
the proxy URL like this:
$ export HTTP_PROXY=http://username:[email protected]:n
$ export HTTPS_PROXY=http://username:[email protected]:m
Windows
Note
The AWS CLI does not support NTLM proxies. If you use an NTLM or Kerberos proxy,
you may be able to connect through an authentication proxy like Cntlm.
Thanks and regards,
Anil Kumar