Help needed to create CI/CD pipeline with Jenkins

0

I'm trying to create CI/CD with Jenkins by following this AWS workshop https://third-party-integration-codebuild-codedeploy-plugins.workshop.aws/en/access.html and I am stuck at point 1. When I go to the Jenkins server URL it is not reachable from internet. I've verified my IP range from which I can connect to and it's correct. I've verified that the subnet the server was provisioned to has the IP CIDR range 172.31.32.0/20 and it is associated with a route table that has an entry to route all traffic 0.0.0.0/0 to Internet Gateway. I can SSH to it but can't access it from the browser. What am I missing?

jedrek
gefragt vor 2 Jahren344 Aufrufe
3 Antworten
0

Step 1 looks to be concerned with Cfn that provisions the resources. Have you completed step 2? It looks like Step 2 discusses how to access, unlock, and customize the Jenkins server.

RoB
beantwortet vor 2 Jahren
  • No, I haven't completed step 2. When I try to look what's inside the /var/log/jenkins/jenkins.log file it says that the file doesn't exist.

    sudo su
    cat: /var/log/jenkins/jenkins.log: No such file or directory
    
0

Hi! Good question.

A couple things to verify from step 1:

  • Where are you connecting to the Jenkins server from when you try to SSH?
  • When you say route all traffic 0.0.0.0/0 to the Internet Gateway, are you referring to ingress (inbound) or egress (outbound)?
  • Does the Jenkins server have the proper Security Group allowing ingress for both Web Traffic (from where you are going to access the Jenkins server) and SSH traffic?
  • Is the Jenkins server properly setup in a public subnet as per the values provided here: https://third-party-integration-codebuild-codedeploy-plugins.workshop.aws/en/create.html? 172.31.32.0/20 is part of a Private Address space (RFC 1918).

In Step 2, to configure the Jenkins server, you will need to do the following:

  • Try looking in /var/jenkins_home/secrets/initialAdminPassword as well for the password.
jsonc
beantwortet vor 2 Jahren
  • How do I configure the subnets properly? How would I modify this template to create a completely new VPC and proper subnets? blog-for-codedeploy.s3.eu-central-1.amazonaws.com/CodeDeployTemplate.json I'll try it again from scratch because I think that the subnets are not properly setup.

0

Do you have port 80 for http or port 443 for https open for the user you are using to access the server in your browser?

beantwortet vor 2 Jahren
  • I accidently noticed yesterday while doing something else that Chrome by default tried to open the URL by HTTPS and HTTPS was not enabled in the Security Group so that's probably why it didn't work. I'll give it a try one more time. Appreciate your help.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen