aws

The error looks as follows PS C:\Program Files\Amazon\AWSCLI> docker push 148488018616.dkr.ecr.ap-south-1.amazonaws.com/strapi The push refers to repository [148488018616.dkr.ecr.ap-south-1.amazonaws.com/strapi] e79f2bc7044f: Preparing d202f303fbc3: Preparing ae61a0f678a1: Preparing 9c8e6df5544b: Preparing 8b4e5778e254: Preparing 924adc920a8e: Preparing b718290f679e: Preparing 8258ac963d2f: Preparing df64d3292fd6: Waiting no basic auth credentials PS C:\Program Files\Amazon\AWSCLI> The error can be resolved as follows: Connect your AWS account using CLI …

Continue reading “no basic auth credentials” when you try to export docker image from local repository to ECR using AWS CLI

Setup EC2 instance I suggest you to select latest Amazon Linux AMI and use default settings to create a new Linux EC2 instance Note: Please remember to allow port 80 in security groups settings while creating the instance so that we can access the ‘nginx’ website we install at the end of this article Install …

Continue reading Running Docker on AWS EC2

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

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