Jenkins on AWS
-
From the Jenkins Credentials Provider, select AWS Credentials as the Kind.
-
Scroll down and enter in the IAM User programmatic access keys with permissions to launch EC2 instances and select Add.
-
Scroll down to select your region using the drop-down, and select Add for the EC2 Key Pair’s Private Key.
-
From the Jenkins Credentials Provider, select SSH Username with private key as the Kind and set the Username to
ec2-user
. -
Scroll down and select Enter Directly under Private Key, then select Add.
-
Open the private key pair you created in the creating a key pair step and paste in the contents from “—–BEGIN RSA PRIVATE KEY—–” to “—–END RSA PRIVATE KEY—–“.
Select Add when completed. -
Scroll down to “Test Connection” and ensure it states “Success”.
Select Save when done