0% found this document useful (0 votes)
3 views

install notes

The document outlines the steps to create an EC2 instance of size t2.large in AWS Academy and install several software packages including Python3-pip, Terraform, AWS CLI, Java 17, Jenkins, Ansible, and Boto3. It provides specific commands for installing each software, including setting up repositories and keys for Terraform and Jenkins. Finally, it instructs to configure SSH keys and AWS credentials after the installations are complete.

Uploaded by

whoami.hl.04
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

install notes

The document outlines the steps to create an EC2 instance of size t2.large in AWS Academy and install several software packages including Python3-pip, Terraform, AWS CLI, Java 17, Jenkins, Ansible, and Boto3. It provides specific commands for installing each software, including setting up repositories and keys for Terraform and Jenkins. Finally, it instructs to configure SSH keys and AWS credentials after the installations are complete.

Uploaded by

whoami.hl.04
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Create 1 EC2 from AWS Academy with t2.

large instance size

In the EC2,
.. install python3-pip
.. install terraform
.. install awscli
.. install Java 17
.. install jenkins
.. install ansible
.. install boto3

To install terraform.
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update
sudo apt-get install terraform -y

To install awscli.
apt install awscli

To install Java JRE (avoid version 11).


apt install openjdk-17-jdk openjdk-17-jre

To install jenkins.
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins -y

To install ansible
apt install ansible

After installation complete, configure the SSH keys and AWS credentials
cd .aws
touch credentials
<Copy AWS Academy AWS CLI> into the credentials file

You might also like