ExitAPIs: The AWS service operation contract1 / 9
Explanationassociate9 steps · 4 exercises

Start with the operation contract

How application code uses an SDK to call an IAM API operation with the required inputs and handle the response or service error.

An API operation is a named action a service exposes. Its contract tells you what inputs to send and what success and error responses to expect. IAM’s GetRole operation reads information about an existing IAM role; it does not assume the role or return credentials.

AWS offers SDKs for many programming languages, with examples and documentation for each SDK. Here a Python application uses the Boto3 SDK to call IAM. The SDK client runs inside the application; it is not a separate network service.

get_role(RoleName)Signed GetRole requestRole or errorDictionary or exception
Python application on EC2Amazon EC2
Boto3 IAM client (in the application)AWS Tools and SDKs
IAM GetRole operationAWS Identity and Access Management (IAM)

Stage 1 of 4: The application starts with the name of an IAM role it wants to look up.

Next up: Complete the diagram on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.