Troubleshooting EC2 connectivity issues SSH Issues Sometimes, you may have problems in accessing your machine using SSH. The first step to do here is activating the debug on your SSH command using -vvv : ssh -vvv -i “aws-tutorial.pem” ubuntu@ec2-34-253-210-158.eu-west-1.compute.amazonaws.com Your problem may come from the fact that the key file (in our case the aws-tutorial.pem file doesn’t …

Continue reading Troubleshooting EC2 connectivity

GENERAL docker –version docker image ls docker container ls docker run –interactive –tty ubuntu bash docker container ls –all Kill running containers: docker kill $(docker ps -q) Delete all stopped containers: docker rm $(docker ps -a -q) delete all images: docker rmi $(docker images -q) Force delete all containers: docker rm -f $(docker ps -a -q) Force delete all Images: docker rmi -f $(docker images -q) Add/remove …

Continue reading Docker – Useful commands reference

1. Create the following file with name something like aws.tr provider “aws” { access_key = “Your Access Key here” secret_key = “Your Secret key here” region     = “your region preferred” } resource “aws_instance” “terraform” { ami           = “your ami id here” instance_type = “t2.micro” } run a ‘terraform apply’ Done !

Continue reading Terraform – EC2 t2 micro in easy steps

If you have OVF file, instead of OVA format, use any coversion tool. I have downloaded and installed the VMware OVF tool from the VMware Web site. I have saved the VM as Ovf from the VMWare workstation console. Go to the directory in which you have installed the tool and use the following command …

Continue reading Import OVA as EC2 in AWS