AWS Management and Development Tools Flashcards
What is AWS API?
It is a software interface that allows two applications to communicate with each other. Most commonly, it uses HTTP/S requests as the medium for interaction. Each AWS service exposes its functionality via its own Service Endpoint, which you can use to send those requests.
How to interact with AWS APIs:
1. Directly via HTTPS Requests: You can send requests to AWS APIs using tools like Postman or custom-built applications.
- When you send a request to an AWS API, you need to specify the action you want the service to perform. This is done using an ACTION parameter in the request payload.
- Authorization: A signed request is required for authentication. You generate this by using your AWS credentials to create a secure signature. Often, you will first request a token using these credentials, which is then included in subsequent API calls.
- Using AWS Developer Tools:
Instead of making raw HTTP requests, most users interact with AWS APIs via:
- AWS Management Console: a user-friendly web-based interface
- AWS SDK: Programming language-specific libraries that simplify API interactions.
- AWS CLI: Command-line interface for scripting and automation.
AWS Management Console
It is a web-based user friendly unified console that builds, manages, and monitors everything from simple web apps to complex cloud deployments.
Service Console
AWS services each have their own customized console. You can access these consoles by searching the service name. Some AWS Services Consoles will act as an umbrella containing many other AWS Services.
AWS Account ID
It can be easily found by dropping down the current user in the Global Navigation. It consists of 12 digits and it is used when logging into a non root user account, for support cases, and cross-account roles. Keep it private for security reasons.
PowerShell
It is a task automation and configuration management framework. A command-line shell and a scripting language is built on top of the .NET Common Language Runtime (CLR), and accepts and returns .NET objects. (unlike most shells that accept and return text). AWS Tools for PowerShell lets you interact with the AWS API via PowerShell Cmdlets
Cmdlets
Special type of command in PowerShell in the form of capitalized verb-noun Ex: New-S3Bucket
ARNs - Amazon Resource Names
Uniquely identifies AWS resources. They are required to specify a resource unambiguously across all of AWS.
These are the ARN format variations:
partition:service:region:account-id:resource-id
partition:service:region:account-id:resource-type/resource-id
partition:service:region:account-id:resource-type:resource-id
Partition
the segment in ARN that specifies the group of AWS regions or the environment in which the AWS service operates. It helps identify which “partition” of AWS the resource belongs to, such as standard AWS regions, AWS GovCloud, or the China-specific AWS regions.
Examples:
aws
aws-us-gov
aws-cn
Service
Identifies the Service that the resource belongs to.
Examples:
s3 (AWS S3 Simple Storage Service)
ec2 (AWS EC2 Elastic Compute Cloud)
iam (Identity and Access Management)
lambda (AWS Lambda)
Region
AWS Region where the resource resides
Examples:
us-east-1
ap-southeast-1
Account ID
12 digit unique identifier of the AWS account that owns the resource.
Resource ID
The portion of the ARN that identifies the specific resource within the service.
Path in ARNS
Allows you to create and organize resources into directories or groups. They often include wildcard characters (*) to represent a group of resources in IAM policies or access controls.
Wildcard Character (*)
Represents any value in the specific segment of the ARN. It is used in IAM policies to grant permissions to a range of resources, rather than specifying each one explicitly.
AWS CLI
a tool that allows you to manage and interact with AWS services through your terminal or command prompt. It provides a unified way to automate tasks, run scripts, and manage AWS resources without using the AWS Management Console.