AWS Ninja
Table of contents
No headings in the article.
PROJECT DESCRIPTION :
As a Cloud Engineering team we take care of the AWS environment and make sure it is in compliance with the organizational policies. We use AWS cloud watch in combination with AWS Lambda to govern the resources according to the policies. For example, we Trigger a Lambda function when an Amazon Elastic Block Store (EBS) volume is created. We use Amazon CloudWatch Events. CloudWatch Events allows us to monitor and respond to EBS volumes that are of type GP2 and convert them to type GP3.
- Create a Lambda Function:
Check the basic Lambda function,ensure that the lambda function is working
- Search for CloudWatch
Configure a rule in cloud watch which will trigger lambda function
3)Create a EBS Volumes
- Check the verification is passed
Use python to convert gp2 to gp3
delete the ebs volumes and create the new volume
this time in logo group you will get full details of the EBS volumes that is created As a cloud engineer u can used these details and you can write the logic in your Python for handling the event and update the ebs volumes to the type gp3.
5)Go to cloudwatch change to python boto3
- Create the IAM role
after created the policy go to the ebs vloumes and delete it and create new ebs volume
Finally EBS volume with GP3 is created
these project is used for convert GP2 to GP3 because gp3 has better performance it's quite fast one of the organization rules is that anyone who create EBS vloume on the AWS accounts it should be are of type GP3.