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” 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 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