-
Notifications
You must be signed in to change notification settings - Fork 2
Connect to your environment
Your instructor will upload a file to AWS S3 that has the IP address and unique SSH key for your EC2 server and personal SecureCI instance. To access your environment, first download your assets file:
https://microservicehandson.s3.amazonaws.com/firstlast # change to your first + last name
Make sure you replace "firstlast" with your first and last name.
This will produce a file similar to this:
IP: 3.126.32.98
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAnaGb3JkSxlNqu/YRmiqqYrq7xrzf27tk0dArr0Q1bp+geDus
...
qwA50f2Y2rT2Fj549oWwd+DW+kPseRcy55rK0J1lAwxfYv/LM2j0
-----END RSA PRIVATE KEY-----
Copy the RSA key lines (including the BEGIN and END lines) sections to a SSH key file.
-
Create a file "myname.pem" with the contents
-
Use
chmod 600 myname.pem
to properly set permissions and allow SSH to use it -
SSH to your server:
$ ssh -i myname.pem [email protected] # your IP number
See https://devops.ionos.com/tutorials/use-ssh-keys-with-putty-on-windows for directions with the "Use Existing Public And Private Keys" section and "Connect to Server with Private Key" section.
Basic steps:
- Import the RSA key text using "PuTTYgen" to build a PPK file
- Select the PPK key in "auth" panel when setting up your connection to server
- Hostname: 3.126.32.98
- Username: ubuntu
- Key: the PPK key you created
(might have to run commands as sudo
)
$ sudo bash
# kubectl get pods
NAME READY STATUS RESTARTS AGE
jenkins-demo-b4969bc7-8jcw5 0/1 Init:0/1 0 23s
jenkins-demo-postgresql-0 0/1 Init:0/1 0 2s
jenkins-demo-sonarqube-5c6f66b5c6-d2zxr 0/1 Running 0 23s
jenkins-demo-sonatype-nexus-6d5dd5fc4d-w85pv 0/1 ContainerCreating 0 23s
jenkins-demo-zap-5fc4bdff45-hvsl4 1/1 Running 0 23s
Once everything has 1/1
and Running
status, you can visit your Jenkins server:
http://3.126.32.98:32001 # replace with your IP address
Your instructor will provide you with a login name and password.
That's it! You are ready to start building software with SecureCI.