Day 52 – As a DevOps engineer, do I need to know Coding, IAC in 2022
📌 As a DevOps engineer, do I need to know Coding, IAC in 2022📌
✅ This question has been asked an infinite ♾ number of times, and the simple answer is YES whether it’s 2022 or any other year 👍. You can stop 🛑 reading here or continue reading so I can give you some tips that will make your life easy.
✅ These are four tools you can use to make your life easy.
1️⃣ AWS CodeWhisper: For me, this AWS equivalent of GitHub copilot(I haven’t used it so far, but please share your experience)generates code recommendations based on their comment. I have tested 35 common scenarios, but please feel free to add if I miss something, video link is below(there is no sound as all are pretty straightforward). If you watched the video 📽 you will see these tools are not perfect, but it’s getting better. I found it much better than doing a random google search and copying/pasting the code. Also, you need a basic programming language to understand the code recommended by the solution.
🎥 https://youtu.be/O6e–AFz5q8
⓵ Create EC2 instance
⓶ Stop/start EC2 instance
⓷ Find outdated ec2 instance type
⓸ Update EC2 tags
⓹ List EBS volume
⓺ Cleanup unused EBS volume
⓻ Create an EBS snapshot
⓼ Delete snapshot
⓽ List AMI
⓵ ⓪ Deregister AMI
⓵ ⓵ List IAM users
⓵⓶ List IAM groups
⓵ ⓷ List IAM policies
⓵⓸ List IAM roles
⓵⓹ Rotate IAM keys
⓵⓺ Create an IAM policy
⓵⓻ Rotate an IAM keys
⓵⓼ Create an S3 bucket
⓵⓽ Upload a file to an S3 bucket
⓶ Download a file from the S3 bucket
⓶⓵ List object in S3 bucket
⓶⓶ Make S3 bucket private
⓶⓷ Enable VPC Flow
⓶⓸ Find unused elastic IP address
⓶⓹ Trigger Lambda function from SQS
⓶⓺ Detect faces using rekognition(pretty basic)
⓶⓻ Import csv file to dynamodb
⓶⓼ Send an email via SES
⓶⓽ Push notification to slack
⓷⓪Push custom cloudwatch metrics
⓷⓵Enable CloudTrail
⓷⓶IAM role with AdministratorAccess policy attached to it
⓷⓷S3 bucket with static website hosting(didn’t work)
⓷⓸ IAM user and add it to the specified group
⓷⓹ Create an EC2 instance and attach an administrator IAM role(didn’t work)
2️⃣ Console Recorder for AWS: If you use Selenium, it’s equivalent to that and records all the actions made in the AWS management console. I used it primarily for AWS cli or terraform, but it’s far from perfect. Check the video for more details.
3️⃣ AWS Application Composer: AWS release this tool during reinvent 2022, and it’s a visual designer(it creates CloudFormation in the background) that you can use to build your serverless applications from multiple AWS services. As it’s a new product, I haven’t tested it. https://aws.amazon.com/blogs/compute/visualize-and-create-your-serverless-workloads-with-aws-application-composer/?sc_icampaign=launch_aws-application-composer-preview_reinvent22&sc_ichannel=ha&sc_icontent=awssm-12026_launch_reinvent22&sc_iplace=hero&trk=ha_awssm-12026_launch_reinvent22
4️⃣ Former2: Former2 is an open-source project that enables you to generate infrastructure as code (IaC) templates from existing AWS resources in your account. The earlier version of CloudFormer was buggy, so this one, too, requires some testing https://aws.amazon.com/blogs/opensource/accelerate-infrastructure-as-code-development-with-open-source-former2/.