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 a security group and key pair for the build server

Create a security group and key pair for the build server

- [Instructor] Let's continue creating the resources we need for the build server by creating a security group and a key pair. Let's start with the security group. From the EC2 dashboard, I'll select into security groups and then select create security group. For the name, let's use build-server, and for the description, let's enter SSH from Jenkins server. Now let's add a rule. For the traffic type, we need to select SSH, which automatically fills in the port range for us. We'll leave the source as custom and search for the security group attached to the Jenkins server. For the description, let's enter the same description we used before, SSH from Jenkins server. We don't need to make any changes to the outbound rules since we want our instance to be able to reach any address on the internet. However, I will add a tag with the name build-server. When we attach this group to the EC2 instance running our build server, the server will only be accessible from the Jenkins server and only…

Contents