{"id":14984703,"url":"https://github.com/davidmoten/jenkins-ec2-https","last_synced_at":"2025-09-12T03:20:56.157Z","repository":{"id":139309387,"uuid":"73980998","full_name":"davidmoten/jenkins-ec2-https","owner":"davidmoten","description":"How to setup Jenkins CI on EC2 with https access","archived":false,"fork":false,"pushed_at":"2023-06-10T01:55:44.000Z","size":44,"stargazers_count":56,"open_issues_count":2,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T18:49:39.106Z","etag":null,"topics":["aws","ec2","https","jenkins","jenkins-ci","jenkins-ec2-https","scripted-deployment","ssl"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidmoten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-17T02:14:27.000Z","updated_at":"2024-03-13T03:35:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"75fa8f5c-6a0e-4700-95cb-cc05fe658acb","html_url":"https://github.com/davidmoten/jenkins-ec2-https","commit_stats":{"total_commits":74,"total_committers":2,"mean_commits":37.0,"dds":"0.013513513513513487","last_synced_commit":"245853a22ba0696ade1489ed70965d0fb8e4f239"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmoten%2Fjenkins-ec2-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmoten%2Fjenkins-ec2-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmoten%2Fjenkins-ec2-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmoten%2Fjenkins-ec2-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidmoten","download_url":"https://codeload.github.com/davidmoten/jenkins-ec2-https/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298924,"owners_count":21080434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","ec2","https","jenkins","jenkins-ci","jenkins-ec2-https","scripted-deployment","ssl"],"created_at":"2024-09-24T14:09:32.764Z","updated_at":"2025-04-10T21:20:59.944Z","avatar_url":"https://github.com/davidmoten.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jenkins-ec2-https\nHow to setup [Jenkins CI](https://jenkins.io/) on EC2 (Ubuntu 22.04 LTS) with https access and self-signed certificates.\n\nThis task took me three hours ages ago with Ubuntu 16.04 (and probably still painful with 22.04) by reading a lot of web pages and lots of trial and error. To make your life easier this is what you need to do to setup a Jenkins CI instance using your AWS account.\n\nI've tested this process and it took exactly *5 minutes* to get to the https login screen of the new jenkins instance. Most of that time is waiting for the scripted installation of components on the AWS instance.\n\n## Create an EC2 instance\n* open AWS Console in browser\n* go to EC2\n* select **Launch Instance**\n* select **Ubuntu Server 22.04 LTS**\n* select **t2.micro** (I use **t2.small** to get more memory for my greedy build)\n* choose or create a **Key Pair**\n* go to **Network settings - Firewall**\n* allow SSH Traffic\n* allow HTTPS traffic from the internet\n* go to **Storage**\n* change size to preferred (I use 100GB for our large enterprise builds)\n* go to **Advanced Details**\n* enable **Termination Protection** (because you will have useful job configuration on that instance that you probably don't want to lose by accident)\n* select **Launch**\n* In EC2 go to instances, once instance running then select instance and click **Connect**\n* copy ssh command in the example to terminal and run (you'll need your referenced key file present in that directory)\n\n## Deploy jenkins\nLogin to the instance using the ssh command mentioned above. Then run:\n```bash\nwget --no-cache https://raw.githubusercontent.com/davidmoten/jenkins-ec2-https/master/setup.sh \u0026\u0026 chmod +x setup.sh\n```\nNow edit the file `setup.sh` and edit the top block of parameters with the values you want to see in the generated certificate for jenkins website.\n```bash\n# I use vi, you might use nano or anything else you're comfortable with\nvi setup.sh\n```\nNow run setup:\n```bash\n./setup.sh\n```\nNow go to https://your_instance in the browser and paste in the last line output by the `setup.sh` script into the administration password in the browser. If the browser times out go to the same url again (make sure it's https). That's it!\n\n## Sources\n* https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu\n* https://github.com/hughperkins/howto-jenkins-ssl\n* https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Apache\n* https://www.cherryservers.com/blog/how-to-install-jenkins-on-ubuntu-22-04\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidmoten%2Fjenkins-ec2-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidmoten%2Fjenkins-ec2-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidmoten%2Fjenkins-ec2-https/lists"}