KNKaren Ngugiinkarenngugi.hashnode.dev·Mar 5, 2023 · 7 min readUse Packer to create an AMIPacker is a super cool tool by HashiCorp which can be used to create images such as Amazon Machine Images and Docker images. By default, Amazon images, especially the free tier ones, do not come installed with a lot of packages like, say, Jenkins. So...00
KNKaren Ngugiinkarenngugi.hashnode.dev·Feb 7, 2023 · 3 min readTerraform: deploy a website via Nginx in an EC2In your AWS console, create a new key pair. You can use an existing one if you wish, but it’s better to be in the clear. You can find it in the EC2 service, under Network & Security: In the top-right, click the Create key pair button. Provide a nam...00
KNKaren Ngugiinkarenngugi.hashnode.dev·Jan 21, 2023 · 1 min readInstalling Terraform on Ubuntu 22.04First add HashiCorp’s GPG key. curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - Now add HashiCorp’s repository to Ubuntu. sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" ...00
KNKaren Ngugiinkarenngugi.hashnode.dev·Jan 21, 2023 · 2 min readSetting up Nginx on Ubuntu 22.04Install nginx from the apt package manager. sudo apt install nginx -y Enable firewall. sudo ufw enable List the available applications the firewall can allow. sudo ufw app list Allow “Nginx Full” which is a combination of “Nginx HTTP” and “Nginx...00
KNKaren Ngugiinkarenngugi.hashnode.dev·Jan 21, 2023 · 2 min readInstalling Jenkins on Ubuntu 22.04Jenkins cannot run without Java so install the Java JDK. sudo apt-get install openjdk-11-jdk -y Obtain the Jenkins GPG key. curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev...00