hands-on lab

Using IAM Roles Anywhere to Access Resources From Outside AWS

Beginner
Up to 1h 30m
18
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

IAM Roles Anywhere is a feature of the AWS Identity and Access Management (IAM) service that enables you to use AWS roles and policies to manage access to your AWS resources from outside of AWS. Using IAM Roles Anywhere means you don't have to issue and manage long-lived credentials for non-AWS workloads, reducing your access management burden and increasing your security posture.

Learning how to configure and use IAM Roles Anywhere will benefit anyone looking to use AWS resources from other environments, such as on-premise servers or other cloud providers.

In this hands-on lab, you will use a self-signed certificate authority to issue a client certificate, and you will use it to assume a role that you configure for use with IAM Roles Anywhere.

Learning objectives

Upon completion of this beginner-level lab, you will be able to:

  • Use OpenSSL to generate a client certificate and key
  • Create an IAM role for use with IAM Roles Anywhere
  • Create a trust anchor resource
  • Use the trust anchor and client cert to obtain temporary credentials for your role

Intended audience

  • Students preparing to complete the Security pillar of the AWS Well-Architected Framework
  • Cloud Architects
  • Data Engineers
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • AWS Identity and Access Management (IAM)
  • IAM Roles Anywhere
  • The Bash command line

The following content can be used to fulfill the prerequisites:

Environment before
Environment after
About the author
Students
66,553
Labs
164
Courses
2
Learning paths
4

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics
Lab steps
Logging In to the Amazon Web Services Console
Connecting to the Virtual Machine Using EC2 Instance Connect
Touring AWS Private CA
Creating an Anywhere IAM Role
Creating a Trust Anchor
Using the Anywhere IAM Role