from __future__ import print_function import boto3 import logging import os # SNS Topic Definition for EC2, EBS ec2_sns = os.environ #'<SNS_TOPIC_ARN>' ...
RESOURCES
BLOG
Create Metric – CPU Utilization Greater than 85% for 15+ Minutes – using lambda python
severity = "Information" alarm_title = "High_CPUUtilization" response = cw.put_metric_alarm( AlarmName = "%s_%s_%s_(Lambda)" % (severity, namei ...
Create Network Alarms which are platform specific – using lambda python
#Create Network Alarms which are platform specific print (instance.platform) if (instance.platform != 'windows'): #ImageId, InstanceId, Ins ...
Create Linux Memory Usage Alarms – using lambda python
severity = "Warning" alarm_title = "Linux_memory_usage" response = cw.put_metric_alarm( AlarmName = "%s_%s_%s_(Lambda)" % ...
Create Windows Memory Usage Alarms – lambda python
severity = "Warning" alarm_title = "Windows_memory_usage" response = cw.put_metric_alarm( AlarmName = "%s_%s_%s_(Lambda)" % (severity, ...
EBS Volumes Metric alarm in aws lambda python
########################################################################### ######### ######### EBS Volumes ######### ##################### ...
IAM Policy to allow and deny aws services for devops user
{ "Version": "2012-10-17", "Statement": , "Resource": "*" }, { "Sid": "ServerMigrationFullAccess", ...
Program to delete tags for ec2 linux and windows instances using lambda python
from __future__ import print_function import boto3 import logging import os # SNS Topic Definition for EC2, EBS ec2_sns = os.environ #'<SNS_TOPIC_ARN>' ...
Centralized Linux Instances of Multiple Accounts and Cross-Platform EC2 Instances Using AWS Systems Manager
Centralized EC2 Linux Instances Step 1 - Activation Id and Activation Code Creation Open Console AWS Sign In Screen Login to Parent Account i.e. Sha ...
Centralized Windows Instances of Multiple Accounts and Cross-Platform EC2 Instances Using AWS Systems Manager
STEP 1 - Connect to your windows instance open Powerhell ISE window and use below code- which is divided into 3 sections Uninstalling of SSM Agent Regi ...
Powershell script to find invalid tags of ec2 instances of aws.
Get-EC2Tag -Filter @{ Name='resource-type';Value='instance'} | ForEach-Object {if($_.Value -notmatch "^(*)$") { Write-Output "The instance $($_.ResourceId) ha ...