Browsed by
Tag: AWS

How To Monitor Your Services Hosted On AWS EC2 Instances

How To Monitor Your Services Hosted On AWS EC2 Instances

A secure way to implement a Lambda function that monitors all the services hosted on EC2 instances using Secrets Manager Problem AWS provides many tools to monitor its own services. You can add alarms on various CloudWatch events. As you host more and more services on AWS it becomes difficult and important to make sure these services are running. You can use CloudWatch to find the state of your services by creating new Metrics. This process becomes expensive and difficult…

Read More Read More

Secure AWS EC2 Instances With MFA and SSH Key Rotation

Secure AWS EC2 Instances With MFA and SSH Key Rotation

Idea The primary idea behind this architecture is to securely access EC2 instances over SSH. There are two parts to this: Secure SSH access to Bastion host using MFA. This process is explained in this AWS blog. Public and Private SSH keys to access EC2 instances from the Bastion host are rotated periodically. An AWS Blog (https://aws.amazon.com/blogs/security/how-to-use-aws-secrets-manager-securely-store-rotate-ssh-key-pairs/) was a great help to understand this setup. It has Cloudformation scripts to setup the Bastion Host and other EC2 instances. We made few…

Read More Read More