Posts

Lab Activity 1

Image
 Lab Activity 1: Installing AWS CLI: For the latest version of the AWS CLI, use the following command block: $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install mohan:~$ /usr/local/bin/aws --version aws-cli/2.2.44 Python/3.8.8 Linux/4.18.0-305.17.1.el8_4.x86_64 exe/x86_64.rhel.8 prompt/off Configure the AWS CLI: mohan:~$ aws configure AWS Access Key ID [None]: Supply Access Key ID AWS Secret Access Key [None]: Supply your Secret Access Key Default region name [None]:  Default output format [None]:  mohan:~$ ls -al ~/.aws/credentials -rw-------. 1 mohan mohan 116 Oct  8 20:52 /home/mohan/.aws/credentials Build Infrastructure: mohan:~$ mkdir learn-terraform-aws-instance mohan:~$ cd learn-terraform-aws-instance/ mohan:learn-terraform-aws-instance$ touch main.tf mohan:learn-terraform-aws-instance$ vi main.tf  terraform {   required_providers {     aws = {       source  = "hashicorp/aws"