AWS SDK, IAM Roles & Policies Flashcards
Allows AWS EC2 instances to “learn about themselves” without using an IAM Role for that purpose
Metadata
You can retrieve the IAM Role name from the metadata but what?
You CANNOT retrieve the IAM policy
What is the metadata?
Info about the EC2 instance
What is the userdata?
Launch script of the EC2 instance
What is the internal IP for AWS (URL)?
169.254.169.254
What does “\” mean?
Its more to it
You want to perform actions on AWS directly from your applications code without using the CLI.
What should you use?
AWS SDK
When do you use an SDK?
When coding against AWS Services such as DynamoDB or Amazon S3
If you don’t specify or configure a default region for SDK then what happens?
us-east-1 will be chosen by default
What is the proper way to provide credentials and permissions to an EC2 instance?
IAM Roles
What does API stand for?
Application Programming Interfaces
Software to software interfaces.
They allow different applications to talk to each other and exchange information or functionality
API
Let’s you see how an IAM policy change might impact a principal’s access before you commit to making the change.
This ensures that the changes you’re making won’t cause a principal to lose access that they need.
Policy Simulator