EC2

How to generate a simulated load on an EC2 instance to test Auto Scaling Group / ASG

How to generate a simulated load on an EC2 instance to test Auto Scaling Group / ASG There are an lots of ways to create load, here is one (requires root): dd if=/dev/zero of=/dev/null This command will quickly use a lot of CPU. Use control-c  twice to kill.  WARNING NEVER DO THIS TO AN EXISTING …

How to generate a simulated load on an EC2 instance to test Auto Scaling Group / ASG Read More »

AWS Solutions Architect Associate – quick webserver setup on public ec2 instance

Assuming EC2 already setup and publicly accessible Add rules to Security Group assigned to EC2 – that allows http traffic  inbound  port 80 and ssh port 22- can only allow myIP if testing – now save SSH into public EC2 that you want the webserver on sudo yum install httpd systemctl enable httpd systemctl start …

AWS Solutions Architect Associate – quick webserver setup on public ec2 instance Read More »

Allowing a Pem file to work on Windows 10

Well – two ways 1.) convert the .pem file to a .ppk and use puTTY here is how: https://www.putty.org/ https://aws.amazon.com/premiumsupport/knowledge-center/convert-pem-file-into-ppk/ Of if you want to use ssh on Window with your .pem file, do the following. Do the fix below, to set the permission correctly for the .pem to work, THEN try your SSH command …

Allowing a Pem file to work on Windows 10 Read More »

EC2 instances inside a VPC use their default route to send all traffic to the virtual router provided by VPC itself

The VPC router then forwards the traffic according the the VPC route tables for the instance’s subnet. The routes in the VPC route table do not propagate back into the instances themselves, but they’re used to make forwarding decisions for all the traffic. Forwarding traffic “directly” from one instance to another in VPC isn’t a …

EC2 instances inside a VPC use their default route to send all traffic to the virtual router provided by VPC itself Read More »

Encrypting AWS EC2 Root Volumes (EBS) – and Moving Non-Root Volumes to a New AZ

Encrypting AWS EC2 Root Volumes (EBS) You cannot encrypt the root volume of a standard Amazon provided EC2 / EBS volume. You can take a snapshot of the volume, make an encrypted copy and use that copy to create a custom AMI with it, and encrypt it then. Moving Non-Root Volumes to a New Availability …

Encrypting AWS EC2 Root Volumes (EBS) – and Moving Non-Root Volumes to a New AZ Read More »