Skip to content

Instantly share code, notes, and snippets.

alemazz

Block or report user

Report or block alemazz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alemazz
alemazz / mapping.json
Created Nov 6, 2015
mapping for delete on termination volume
View mapping.json
[
{
"DeviceName": "/dev/xvda",
"Ebs": {
"DeleteOnTermination": true,
"SnapshotId": "snap-***",
"VolumeSize": 80,
"VolumeType": "gp2"
}
}
@alemazz
alemazz / jenkins_off.sh
Last active Nov 6, 2015
jenkins EC2 instance switchoff
View jenkins_off.sh
#!/bin/bash
BACKUPLOG="/var/tmp/backuplogaws"
SENDTO="webmaster@example.com"
echo "start setup jenkinsCI" > ${BACKUPLOG} 2>&1
AMI_ID_OLD=$(aws ec2 describe-images --owner 184559516538 --query 'Images[?starts_with(Name, `jenkinsAMI`) == `true`]|[0:5].[CreationDate,ImageId,Name]' --profile **** --output text | sort -k1 | tail -n1 | awk '{print $2}')
sleep 20
@alemazz
alemazz / jenkins_on.sh
Last active Nov 6, 2015
jenkins EC2 instance switchon cronjob
View jenkins_on.sh
#!/bin/bash
BACKUPLOG="/var/tmp/backuplogaws"
SENDTO="webmaster@example.com"
echo "start setup jenkinsCI" > ${BACKUPLOG} 2>&1
AMI_ID_OLD=$(aws ec2 describe-images --owner ***** --query 'Images[?starts_with(Name, `jenkinsAMI`) == `true`]|[0:5].[CreationDate,ImageId,Name]' --profile **** --output text | sort -k1 | tail -n1 | awk '{print $2}')
You can’t perform that action at this time.