The objective of this article is to talk about how to add new users to EC2 instances and copy their SSH Keys to grant them SSH access. Consider yourself managing an AWS Infra with 100+ EC2 instances and you have a new hire in your team who should have his[...]
Read moreCategory: AWS
Copy files from EC2 to S3 Bucket in 4 steps
Introduction to S3 and EC2 file copy In this article, we are going to see how to copy files from ec2 instance to S3 bucket and vice versa, with the help of IAM roles and without having to use the AWS access key and secrets in the server. In AWS[...]
Read moreTerraform import All AWS Security Groups - How to
In this post, we are going to see how to manage existing and already created AWS Security groups with Terraform. The new era of Infrastructure revolution has begun already and we already started provisioning, managing, administrating our Infra as a code with help of Configuration management tools like Ansible, Terraform,[...]
Read moreAWS CLI EC2 Stop and Terminate command Examples
In AWS infrastructure, We create a lot of EC2 instances on demand and we tend to forget about the stopped instances considering that it is stopped and not being billed for. But the fact is that Even the stopped instances would cost you a couple of pennies in various forms[...]
Read moreEnabling Two Factor Authentication for EC2 SSH - AWS MFA Setup
Security is always a big thing. Protecting your data is very crucial when there are lot of people out waiting for a chance to exploit. In Enterprise Infrastructure. We have various levels of security as follows Internet Firewall and Gateway Load balancer Restrictions and Constraints Inbound and OutBound Proxy Servers[...]
Read moreAWS change instance type - From Console or AWS CLI
How to Change AWS Instance Type or EC2 instance type is more interesting and frequently asked question by many AWS Professionals. We create EC2 instances as t2, t3.micro but soon we realize that our requirements just got bigger for good and we need more CPU and RAM on our instance.[...]
Read moreAWS EC2 CLI List Examples - Describe instances | Devops Junction
AWS CLI is a very great help when it comes to efficiently managing your AWS Cloud Infrastructure and your EC2 instances. While we are managing our AWS Infrastructure, we cannot always afford to login to the AWS console all the time and it is not recommended from the security perspective[...]
Read moreAdd SSH Key to EC2 instances with Ansible - Automated
Whether it is On-Prem (or) Cloud-hosted, A Typical Non-Containerized Enterprise infrastructure would have ample of Virtual Machines aka Servers [ Linux ] Let us suppose that you work for the DevOps team of a Big Organization where you manage 100+ ec2 instances. You have a new hire in your team[...]
Read morePacker Build - Create and Build Packer Templates and Images for AWS
Infrastructure as Code is a Brilliant Concept in DevOps and Packer and Terraform are two major technologies/products in this segment. Thanks to HashiCorp Imagine that you need to create an AWS EC2 instance for your company or for learning purpose with your AWS free tier account. How do you do[...]
Read morePacker AWS Example with Terraform
In this article, we are going to see a quick packer aws example setup and provide the steps to create an AWS Image (AMI) using Packer and we are also going to Create Amazon EC2 Instance ( Elastic Bean Stack - EBS) from the same AMI Image we have created,[...]
Read more