From the course: Running Jenkins on AWS: Deploying and Managing Jenkins on Cloud Infrastructure

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Create an IAM role

Create an IAM role

- [Instructor] Before we set up the Jenkins server, there are a few things we need to have in place. The first of these is an identity and access management role. IAM roles allow services like EC2 to interact with other AWS services programmatically. Roles are made up of permissions, defined as policies. Policies list the permissions available to the service using the role. We'll be using the managed policy named AmazonSSMManagedInstanceCore. This will allow us to connect to an EC2 instance using AWS Systems Manager. Let's create this role in the AWS console. I'm logged into my AWS account and I'm viewing the IAM dashboard. I'll start by selecting roles and then create roles from the left hand navigation menu. On the create role screen, we're asked to choose a trusted identity. Since this role will be used by an EC2 instance, we'll choose AWS service and then EC2 for the use case, and then EC2 role for AWS Systems manager. Now select next. The policy we need is automatically selected,…

Contents