Interacting with AWS Cloud Services Flashcards
1
Q
CLI
A
- Command Line Interface
2
Q
Various methods for interacting with AWS services/resources?
A
- CLI
- SDK
- API
- all must be configured with specific information (credentials, configuration details)
3
Q
SDK
A
- Software Development Kit
4
Q
API
A
- Application Program Interface
5
Q
Credential Providers
A
- Methods to provide the necessary credential information
- Some are specific, some are common (shared by most tools)
- ex: of a Shared = config/credential files; these two files store profiles that can be saved and then invoked.
6
Q
Profiles
A
- Groups of settings
- can be saved and invoked
7
Q
Environmental variables
A
- Only one active at a time, but easily configurable
8
Q
Per-operation parameters
A
- parameters may be changed as required based on the operation being invoked.
9
Q
General Credential order.
A
- Per-operation parameter
- Environmental variable
- Shared Credentials File
- Shared Configuration File
- but this can be different depending, need to understand when setting up an environment which to use
10
Q
CLI default encryption
A
HTTPS TLS
11
Q
How to disable HTTPS TLS
A
- no verify SSL Flag
- this is the default CLI encryption
12
Q
CLI - all interactions are remote?
A
- Yes
13
Q
RESTful API
A
- Optimized to work with serverless workloads
2. HTTP backends use HTTP APIs
14
Q
2 types of AWS APIs
A
- RESTful
2. WebSocket
15
Q
Websocket
A
- Allows user to build real time 2 way communication applications
- ex: texting, streaming, 2 way dashboards
16
Q
API Gateway
A
- API gateway = best choice if API needs API proxy functionality and API Management
- maintains a persistent connection to handle the message transfers b/n backend services and client
17
Q
Cli Version 1 cut off date
A
- January 2020, any builds released after that require python 2.7 / 3.5 or later
- Versions 1 and 2 use the same command name, so it will create conflicts unless you uninstall client version 1
18
Q
Command: unistall Cli version 1
A
- cd into downloads
- .\aws. –version (to see if you have version 1)
- pip uninstall awscli
- Can download new executable
19
Q
How to install cli 2 on a Linux Ubuntu machine
A
- sudo app update
- install pip
- sudo apt -y install python3 -pip
- note: -y suppresses confirmations - (see what version of pip you have installed) pip3 –version
- pip3 uninstall awscli
- sudo app install -y curl (installs curl utility)
- curl “https://awscli.amazonnews.com/awsclie-exe-linux-86_64.zip”
- now can use unzip utlitiy to unzip awscli into archive - unizip awscliev2.zip (don’t need sudo b/c accessing my directory that I own)
- sudo ./aws/install (install file has all of the commands to install awscli.)
- aws –version (will now show awscliv2 and python 3.7 and botcore 2.0 (SDK with python)
20
Q
Install AWS Cli V2 on a Mac
A
- open terminal prompt
- curl “https://awscli.amazon.aws.com/AWSCLIEV2.pkg” -o “AWSCLIV2.pkg” (the second one is the target name) note the caps.
- sudo installer -pkg ./AWSCLIV2.pkg -target
- files are actually installed to user local AWS-CLI
- installer creates a SIM link to user local AWS-CLI - password prompt install
- aws –version
21
Q
AWS CLI
A
- Command Line Interface - how you securely interact with your AWS account
22
Q
How to configure your CLI
A
- Powershell will prompt you with 4 questions
a) AWS Access Key ID (Sign in as admin IAM role -> security crendentials tab -> Access Keys )
b) Secret Access key: you can only show this when you first create a key (but there is no limit on how many or when you can create these keys)
c) default region: us-east-1
d) default output format: json, jaml, text, table
- CLI will store this information in a program called “default”
- this is used anytime want to run an aws cli command that doesn’t specify which profile to use
- saved in folder out of home directory - > .aws