Use 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...7 min read·karenngugi.hashnode.devMar 5, 2023
Terraform: 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...3 min read·karenngugi.hashnode.devFeb 7, 2023
Installing 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" ...1 min read·karenngugi.hashnode.devJan 21, 2023
Setting 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...2 min read·karenngugi.hashnode.devJan 21, 2023
Installing 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...2 min read·karenngugi.hashnode.devJan 21, 2023