chmod 400 .ssh/filename.pem
ssh -i .ssh/filename.pem ubuntu@servername
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
export LC_ALL="C"
cd /opt/letsencrypt
./letsencrypt-auto certonly --standalone --email [email protected] -d your.domain.com
sudo ls /etc/letsencrypt/live/your.domain.com
cd ~
git clone https://bitbucket.org/behestee/awssh.git
cd awssh
git checkout <branchname>
chmod +x aws.sh
sudo ./aws.sh
It will create and configure your server, just you need to modify the vhost conf, Jenkins configuration and create your job at there. It also will install the mysql secure installation script and prompt you for give your settings.
sudo vim /etc/nginx/sites-available/nginx_vhost
sudo vim /etc/hosts
sudo service nginx restart
sudo service nginx status
sudo cat /var/lib/jenkins/secrets/initialAdminPassword