SlideShare a Scribd company logo
$ aws help$ aws help
@benbridts
pip install awsclipip install awscli
$ pip3 install awscli --upgrade --user
$ aws --version
aws-cli/1.16.253 Python/3.7.3 Darwin/18.7.0 botocore/1.12.243
cat ~/.aws/configcat ~/.aws/config
[default]
output = json
region = eu-west-1
[profile source]
# this is 123456789012
output = json
region = eu-west-1
[profile account1]
source_profile = source
role_arn = arn:aws:iam::111111111111:role/user
mfa_serial = arn:aws:iam::123456789012:mfa/benbridts
cat ~/.aws/configcat ~/.aws/config
[profile source]
# this is 123456789012
output = json
region = eu-west-1
[profile account1]
source_profile = source
role_arn = arn:aws:iam::111111111111:role/user
mfa_serial = arn:aws:iam::123456789012:mfa/benbridts
[profile account2]
source_profile = account1
role_arn = arn:aws:iam::2222222222222:role/user
cat ~/.aws/configcat ~/.aws/config
[profile from-env-source]
# Environment, Ec2InstanceMetadata or EcsContainer
credential_source = Ec2InstanceMetadata
role_arn = arn:aws:iam::2222222222222:role/user
external_id = foobar123
--debug--debug
$ aws iam list-users --debug
[...] Arguments entered to CLI: ['iam', 'list-users', '--debug']
[...] Making request for OperationModel(name=ListUsers) (verify_ssl=True) w
[...] CanonicalRequest:
POST
/
[...]
[...] Response headers: {'x-amzn-requestid': 'ef717a10-c75c-11e8-bd73-cb79e
[...] Response body:
b'<ListUsersResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">n'
[...]
{"Users": [ [...] ]}
--debug--debug
historyhistory
$ aws configure set cli_history enabled
$ aws history list
f95b837e-3040-403c-9f24-7e9524c95f83 2019-10-06 10:06:24 PM iam list-user
094ab0ff-e941-4f3d-b3d3-9d7b2d1a3eab 2019-10-06 10:06:15 PM configure set
[...]
historyhistory
$ aws history show f4692e20-873c-4aa2-9a84-39048132d2f2
AWS CLI command entered
at time: 2019-10-06 22:06:24.166
with AWS CLI version: aws-cli/1.16.253 Python/3.7.3 Darwin/18.7.0 botocore/
with arguments: ['iam', 'list-users']
historyhistory
[0] API call made
at time: 2019-10-06 22:06:24.267
to service: iam
using operation: ListUsers
with parameters: {}
historyhistory
[0] HTTP request sent
at time: 2019-10-06 22:06:24.270
to URL: https://iam.amazonaws.com/
with method: POST
with headers: {
"Authorization": "...",
"Content-Length": "35",
"Content-Type": "application/x-www-form-urlencoded; charset=utf-8",
"User-Agent": "aws-cli/1.16.253 Python/3.7.3 Darwin/18.7.0 botocore
"X-Amz-Date": "20191006T200624Z",
"X-Amz-Security-Token": "..."
}
with body: Action=ListUsers&Version=2010-05-08
historyhistory
[0] HTTP response received
at time: 2019-10-06 22:06:24.767
with status code: 200
with headers: {...}
with body: <!--?xml version="1.0" ?-->
<listusersresponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<listusersresult>
<istruncated>false</istruncated>
<users>
</users></listusersresult>
<responsemetadata>
<requestid>c5fe79e4-e874-11e9-9f4a-d591847819f7</requestid>
</responsemetadata>
</listusersresponse>
historyhistory
[0] HTTP response parsed
at time: 2019-10-06 22:06:24.767
parsed to: {
"IsTruncated": false,
"ResponseMetadata": {
"HTTPHeaders": {
"content-length": "289",
"content-type": "text/xml",
"date": "Sun, 06 Oct 2019 20:06:24 GMT",
"x-amzn-requestid": "c5fe79e4-e874-11e9-9f4a-d59184
},
"HTTPStatusCode": 200,
"RequestId": "c5fe79e4-e874-11e9-9f4a-d591847819f7"
},
"Users": []
historyhistory
AWS CLI command exited
at time: 2019-10-06 22:06:24.770
with return code: 0
cli_follow_urlparamcli_follow_urlparam
$ aws ssm put-parameter 
--name search --value https://google.com --type String
An error occurred (ValidationException) when calling the PutParameter
operation: 1 validation error detected: Value '[...]' at 'value' failed
to satisfy constraint: Member must have length less than or equal to 32768
$ aws configure set cli_follow_urlparam false
$ aws ssm put-parameter 
--name search --value https://google.com --type String
{
"Version": 1
}
s3 --make-it-go-fasts3 --make-it-go-fast
# ~/.aws/config
# https://docs.aws.amazon.com/cli/latest/topic/s3-config.html
[profile example]
s3 =
max_concurrent_requests = 20
max_queue_size = 10000
multipart_threshold = 64MB
multipart_chunksize = 16MB
# this one can make it go slow
max_bandwidth = 50MB/s
# mutualy exclusive
use_accelerate_endpoint = true
use_dualstack_endpoint = false
# ...
aliasalias
# ~/.aws/cli/alias
# https://github.com/awslabs/awscli-aliases
[toplevel]
whoami = sts get-caller-identity
$ aws whoami
{
"UserId": "AIDAIXXXXXXXXXXXXXXXX",
"Account": "123456789012",
"Arn": "arn:aws:iam::123456789012:user/benbridts"
}
--query--query
$ aws s3api list-buckets | jq -r '.Buckets[].Name'
example-bucket
foobar
bucket3
$ aws s3api list-buckets --query 'Buckets[].Name'
[
"example-bucket",
"foobar",
"bucket3"
]
$ aws s3api list-buckets --query 'Buckets[].Name' --output text
example-bucket foobar bucket3
moremore
bash/zsh/tcsh/fish completion
aws cloudformation wait stack-create-complete
cfn-lint
aws-encryption-cli
aws-shell
aws-vault
git branch -rgit branch -r
whoamiwhoami
$ whoami
Ben Bridts
$ jobs
Principal AWS Technologist at Cloudar
AWS APN Ambassador
$ sendmail ben@cloudar.be
$ curl https://twitter.com/benbridts
$ curl https://cloudar.be

More Related Content

PDF
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
John Ford
 
PDF
ZendFramework2 & Symfony2
Wesley Victhor Mendes
 
PDF
OWASP TOP 10 for PHP Programmers
rjsmelo
 
PDF
OWASP Top 10 at International PHP Conference 2014 in Berlin
Tobias Zander
 
PDF
Blog Hacks 2011
Yusuke Wada
 
PPT
SQL Injection in PHP
Dave Ross
 
PPTX
21. CodeIgniter search
Razvan Raducanu, PhD
 
PDF
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
 
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
John Ford
 
ZendFramework2 & Symfony2
Wesley Victhor Mendes
 
OWASP TOP 10 for PHP Programmers
rjsmelo
 
OWASP Top 10 at International PHP Conference 2014 in Berlin
Tobias Zander
 
Blog Hacks 2011
Yusuke Wada
 
SQL Injection in PHP
Dave Ross
 
21. CodeIgniter search
Razvan Raducanu, PhD
 
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
 

What's hot (19)

PPTX
Things Your Mother Didnt Tell You About Bundle Configurations - Symfony Live…
D
 
PPTX
Things Your Mother Didn't Tell You About Bundle Configurations - Symfony Live...
D
 
PDF
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
 
RTF
Document
viwviw
 
PDF
Codeigniter : Two Step View - Concept Implementation
Abdul Malik Ikhsan
 
PPTX
Tax management-system
Fahim Faysal Kabir
 
PPTX
Secure PHP Coding - Part 2
Vinoth Kumar
 
PDF
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
Yusuke Wada
 
PPTX
Sql inyection
Alonso Cerdas
 
PPTX
So cal0365productivitygroup feb2019
RonRohlfs1
 
PPTX
Secure PHP Coding - Part 1
Vinoth Kumar
 
PDF
Twib in Yokoahma.pm 2010/3/5
Yusuke Wada
 
PPTX
Prepared Statement 올바르게 사용하기
Kangjun Heo
 
PDF
Check username availability with vue.js and PHP
Yogesh singh
 
PDF
Танки_в_Лунапарке: нагрузочное_тестирование_в_Яндексе
Yandex
 
PDF
Defeating Cross-Site Scripting with Content Security Policy
Francois Marier
 
PDF
Google drive on linux
維泰 蔡
 
PDF
nodum.io MongoDB Meetup (Dutch)
Wietse Wind
 
Things Your Mother Didnt Tell You About Bundle Configurations - Symfony Live…
D
 
Things Your Mother Didn't Tell You About Bundle Configurations - Symfony Live...
D
 
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
 
Document
viwviw
 
Codeigniter : Two Step View - Concept Implementation
Abdul Malik Ikhsan
 
Tax management-system
Fahim Faysal Kabir
 
Secure PHP Coding - Part 2
Vinoth Kumar
 
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
Yusuke Wada
 
Sql inyection
Alonso Cerdas
 
So cal0365productivitygroup feb2019
RonRohlfs1
 
Secure PHP Coding - Part 1
Vinoth Kumar
 
Twib in Yokoahma.pm 2010/3/5
Yusuke Wada
 
Prepared Statement 올바르게 사용하기
Kangjun Heo
 
Check username availability with vue.js and PHP
Yogesh singh
 
Танки_в_Лунапарке: нагрузочное_тестирование_в_Яндексе
Yandex
 
Defeating Cross-Site Scripting with Content Security Policy
Francois Marier
 
Google drive on linux
維泰 蔡
 
nodum.io MongoDB Meetup (Dutch)
Wietse Wind
 
Ad

Similar to Ben Bridts - $ aws help (20)

PDF
Bag Of Tricks From Iusethis
Marcus Ramberg
 
PDF
Rails 3: Dashing to the Finish
Yehuda Katz
 
PDF
Rails 3 overview
Yehuda Katz
 
PDF
Using Apache Solr
pittaya
 
PPT
Mobile Patrons: Better Services on the Go (For Techie)
Vincci Kwong
 
PDF
Zendcon 2007 Api Design
unodelostrece
 
KEY
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
 
PDF
JSON and the APInauts
Wynn Netherland
 
PDF
FamilySearch Reference Client
Dallan Quass
 
PDF
PhpBB meets Symfony2
Fabien Potencier
 
PDF
The Zen of Lithium
Nate Abele
 
PDF
Mojolicious
Marcos Rebelo
 
PDF
Bootstrat REST APIs with Laravel 5
Elena Kolevska
 
PDF
WSO2Con USA 2015: Securing your APIs: Patterns and More
WSO2
 
PDF
Survey of Front End Topics in Rails
Benjamin Vandgrift
 
PDF
Beyond full-text searches with Lucene and Solr
Bertrand Delacretaz
 
PDF
анатолий шарифулин Mojolicious
rit2010
 
PDF
анатолий шарифулин Mojolicious финальная версия
rit2010
 
PDF
Seguranca em APP Rails
Daniel Lopes
 
PDF
MuleSoft ESB Payload Encrypt Decrypt using anypoint enterprise security
akashdprajapati
 
Bag Of Tricks From Iusethis
Marcus Ramberg
 
Rails 3: Dashing to the Finish
Yehuda Katz
 
Rails 3 overview
Yehuda Katz
 
Using Apache Solr
pittaya
 
Mobile Patrons: Better Services on the Go (For Techie)
Vincci Kwong
 
Zendcon 2007 Api Design
unodelostrece
 
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
 
JSON and the APInauts
Wynn Netherland
 
FamilySearch Reference Client
Dallan Quass
 
PhpBB meets Symfony2
Fabien Potencier
 
The Zen of Lithium
Nate Abele
 
Mojolicious
Marcos Rebelo
 
Bootstrat REST APIs with Laravel 5
Elena Kolevska
 
WSO2Con USA 2015: Securing your APIs: Patterns and More
WSO2
 
Survey of Front End Topics in Rails
Benjamin Vandgrift
 
Beyond full-text searches with Lucene and Solr
Bertrand Delacretaz
 
анатолий шарифулин Mojolicious
rit2010
 
анатолий шарифулин Mojolicious финальная версия
rit2010
 
Seguranca em APP Rails
Daniel Lopes
 
MuleSoft ESB Payload Encrypt Decrypt using anypoint enterprise security
akashdprajapati
 
Ad

More from AWSCOMSUM (20)

PDF
Introducing AWS DeepRacer: David Smith
AWSCOMSUM
 
PDF
Beyond serverless.pptx
AWSCOMSUM
 
PPTX
Will hall - Accelerating Infrastructure as Code and Configuration Management ...
AWSCOMSUM
 
PDF
Onur Salk & Onur Gurdamar - Everything as Code: Creating an application stack...
AWSCOMSUM
 
PDF
Nils Mohr & Jake Pearce - 100 years of flight data at British Airways. Past, ...
AWSCOMSUM
 
PDF
Phil Basford - machine learning at scale with aws sage maker
AWSCOMSUM
 
PDF
Dan pudwell - AWS community summit-oct-2019
AWSCOMSUM
 
PDF
Mike fowler - Getting started with machine learning (london 2019)
AWSCOMSUM
 
PPTX
Efi Merdler Kravitz - 7 things you should know before going serverless
AWSCOMSUM
 
PDF
Michelle Chismon - Anything is possible!* Learning with AWS DeepLens *But not...
AWSCOMSUM
 
PDF
Bernd Rücker - Lost in transaction? Strategies to manage consistency in serve...
AWSCOMSUM
 
PDF
Richard pablo - IoT Provisioning Solving the nightmare
AWSCOMSUM
 
PDF
Matt Houghton - AWS Comsum - October 2019
AWSCOMSUM
 
PDF
Bruno Amaro Almeida - What can aws tell us about fake and credible news medi...
AWSCOMSUM
 
PDF
Serhat Can- 4 keytakeaways from running serverless on production for 4 years
AWSCOMSUM
 
PDF
Stuart jones - Deconstructing the monolith. Migrating complex systems simply ...
AWSCOMSUM
 
PPTX
Dwp achieving cloud adoption at enterprise scale | Diptesh Patel
AWSCOMSUM
 
PDF
RUNNING AWS LOCALLY
AWSCOMSUM
 
PDF
Multi accountstrategy | david lewthwaite
AWSCOMSUM
 
PDF
Serverless for Visual Journalism at the BBC | Doug Winter
AWSCOMSUM
 
Introducing AWS DeepRacer: David Smith
AWSCOMSUM
 
Beyond serverless.pptx
AWSCOMSUM
 
Will hall - Accelerating Infrastructure as Code and Configuration Management ...
AWSCOMSUM
 
Onur Salk & Onur Gurdamar - Everything as Code: Creating an application stack...
AWSCOMSUM
 
Nils Mohr & Jake Pearce - 100 years of flight data at British Airways. Past, ...
AWSCOMSUM
 
Phil Basford - machine learning at scale with aws sage maker
AWSCOMSUM
 
Dan pudwell - AWS community summit-oct-2019
AWSCOMSUM
 
Mike fowler - Getting started with machine learning (london 2019)
AWSCOMSUM
 
Efi Merdler Kravitz - 7 things you should know before going serverless
AWSCOMSUM
 
Michelle Chismon - Anything is possible!* Learning with AWS DeepLens *But not...
AWSCOMSUM
 
Bernd Rücker - Lost in transaction? Strategies to manage consistency in serve...
AWSCOMSUM
 
Richard pablo - IoT Provisioning Solving the nightmare
AWSCOMSUM
 
Matt Houghton - AWS Comsum - October 2019
AWSCOMSUM
 
Bruno Amaro Almeida - What can aws tell us about fake and credible news medi...
AWSCOMSUM
 
Serhat Can- 4 keytakeaways from running serverless on production for 4 years
AWSCOMSUM
 
Stuart jones - Deconstructing the monolith. Migrating complex systems simply ...
AWSCOMSUM
 
Dwp achieving cloud adoption at enterprise scale | Diptesh Patel
AWSCOMSUM
 
RUNNING AWS LOCALLY
AWSCOMSUM
 
Multi accountstrategy | david lewthwaite
AWSCOMSUM
 
Serverless for Visual Journalism at the BBC | Doug Winter
AWSCOMSUM
 

Recently uploaded (20)

PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
The Future of Artificial Intelligence (AI)
Mukul
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Doc9.....................................
SofiaCollazos
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 

Ben Bridts - $ aws help

  • 1. $ aws help$ aws help @benbridts
  • 2. pip install awsclipip install awscli $ pip3 install awscli --upgrade --user $ aws --version aws-cli/1.16.253 Python/3.7.3 Darwin/18.7.0 botocore/1.12.243
  • 3. cat ~/.aws/configcat ~/.aws/config [default] output = json region = eu-west-1 [profile source] # this is 123456789012 output = json region = eu-west-1 [profile account1] source_profile = source role_arn = arn:aws:iam::111111111111:role/user mfa_serial = arn:aws:iam::123456789012:mfa/benbridts
  • 4. cat ~/.aws/configcat ~/.aws/config [profile source] # this is 123456789012 output = json region = eu-west-1 [profile account1] source_profile = source role_arn = arn:aws:iam::111111111111:role/user mfa_serial = arn:aws:iam::123456789012:mfa/benbridts [profile account2] source_profile = account1 role_arn = arn:aws:iam::2222222222222:role/user
  • 5. cat ~/.aws/configcat ~/.aws/config [profile from-env-source] # Environment, Ec2InstanceMetadata or EcsContainer credential_source = Ec2InstanceMetadata role_arn = arn:aws:iam::2222222222222:role/user external_id = foobar123
  • 6. --debug--debug $ aws iam list-users --debug [...] Arguments entered to CLI: ['iam', 'list-users', '--debug'] [...] Making request for OperationModel(name=ListUsers) (verify_ssl=True) w [...] CanonicalRequest: POST / [...] [...] Response headers: {'x-amzn-requestid': 'ef717a10-c75c-11e8-bd73-cb79e [...] Response body: b'<ListUsersResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">n' [...] {"Users": [ [...] ]}
  • 8. historyhistory $ aws configure set cli_history enabled $ aws history list f95b837e-3040-403c-9f24-7e9524c95f83 2019-10-06 10:06:24 PM iam list-user 094ab0ff-e941-4f3d-b3d3-9d7b2d1a3eab 2019-10-06 10:06:15 PM configure set [...]
  • 9. historyhistory $ aws history show f4692e20-873c-4aa2-9a84-39048132d2f2 AWS CLI command entered at time: 2019-10-06 22:06:24.166 with AWS CLI version: aws-cli/1.16.253 Python/3.7.3 Darwin/18.7.0 botocore/ with arguments: ['iam', 'list-users']
  • 10. historyhistory [0] API call made at time: 2019-10-06 22:06:24.267 to service: iam using operation: ListUsers with parameters: {}
  • 11. historyhistory [0] HTTP request sent at time: 2019-10-06 22:06:24.270 to URL: https://iam.amazonaws.com/ with method: POST with headers: { "Authorization": "...", "Content-Length": "35", "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", "User-Agent": "aws-cli/1.16.253 Python/3.7.3 Darwin/18.7.0 botocore "X-Amz-Date": "20191006T200624Z", "X-Amz-Security-Token": "..." } with body: Action=ListUsers&Version=2010-05-08
  • 12. historyhistory [0] HTTP response received at time: 2019-10-06 22:06:24.767 with status code: 200 with headers: {...} with body: <!--?xml version="1.0" ?--> <listusersresponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <listusersresult> <istruncated>false</istruncated> <users> </users></listusersresult> <responsemetadata> <requestid>c5fe79e4-e874-11e9-9f4a-d591847819f7</requestid> </responsemetadata> </listusersresponse>
  • 13. historyhistory [0] HTTP response parsed at time: 2019-10-06 22:06:24.767 parsed to: { "IsTruncated": false, "ResponseMetadata": { "HTTPHeaders": { "content-length": "289", "content-type": "text/xml", "date": "Sun, 06 Oct 2019 20:06:24 GMT", "x-amzn-requestid": "c5fe79e4-e874-11e9-9f4a-d59184 }, "HTTPStatusCode": 200, "RequestId": "c5fe79e4-e874-11e9-9f4a-d591847819f7" }, "Users": []
  • 14. historyhistory AWS CLI command exited at time: 2019-10-06 22:06:24.770 with return code: 0
  • 15. cli_follow_urlparamcli_follow_urlparam $ aws ssm put-parameter --name search --value https://google.com --type String An error occurred (ValidationException) when calling the PutParameter operation: 1 validation error detected: Value '[...]' at 'value' failed to satisfy constraint: Member must have length less than or equal to 32768 $ aws configure set cli_follow_urlparam false $ aws ssm put-parameter --name search --value https://google.com --type String { "Version": 1 }
  • 16. s3 --make-it-go-fasts3 --make-it-go-fast # ~/.aws/config # https://docs.aws.amazon.com/cli/latest/topic/s3-config.html [profile example] s3 = max_concurrent_requests = 20 max_queue_size = 10000 multipart_threshold = 64MB multipart_chunksize = 16MB # this one can make it go slow max_bandwidth = 50MB/s # mutualy exclusive use_accelerate_endpoint = true use_dualstack_endpoint = false # ...
  • 17. aliasalias # ~/.aws/cli/alias # https://github.com/awslabs/awscli-aliases [toplevel] whoami = sts get-caller-identity $ aws whoami { "UserId": "AIDAIXXXXXXXXXXXXXXXX", "Account": "123456789012", "Arn": "arn:aws:iam::123456789012:user/benbridts" }
  • 18. --query--query $ aws s3api list-buckets | jq -r '.Buckets[].Name' example-bucket foobar bucket3 $ aws s3api list-buckets --query 'Buckets[].Name' [ "example-bucket", "foobar", "bucket3" ] $ aws s3api list-buckets --query 'Buckets[].Name' --output text example-bucket foobar bucket3
  • 19. moremore bash/zsh/tcsh/fish completion aws cloudformation wait stack-create-complete cfn-lint aws-encryption-cli aws-shell aws-vault
  • 20. git branch -rgit branch -r
  • 21. whoamiwhoami $ whoami Ben Bridts $ jobs Principal AWS Technologist at Cloudar AWS APN Ambassador $ sendmail [email protected] $ curl https://twitter.com/benbridts $ curl https://cloudar.be