| Title | Description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import division | |
import time | |
import os | |
import hashlib | |
import tempfile | |
from math import ceil | |
from cStringIO import StringIO | |
from concurrent.futures import ThreadPoolExecutor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.services.s3.AmazonS3; | |
import com.amazonaws.services.s3.AmazonS3Client; | |
import com.amazonaws.services.s3.model.Bucket; | |
import com.amazonaws.services.s3.model.BucketTaggingConfiguration; | |
import com.amazonaws.services.s3.model.TagSet; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; filepath: /var/named/fwd.euca.example.net | |
$ORIGIN . | |
$TTL 86400 ; 1 day | |
euca.example.net IN SOA aoe-08-5.euca.example.net. root.euca.example.net. ( | |
2011071306 ; serial | |
3600 ; refresh (1 hour) | |
1800 ; retry (30 minutes) | |
604800 ; expire (1 week) | |
86400 ; minimum (1 day) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "zone euca.example.net" > /tmp/dnsupdate | |
echo "server 10.17.198.5" >> /tmp/dnsupdate | |
echo "update delete `hostname`" >> /tmp/dnsupdate | |
echo "update add `hostname` 86400 A `hostname -I`" >> /tmp/dnsupdate | |
echo "debug yes" >> /tmp/dnsupdate | |
echo "send" >> /tmp/dnsupdate | |
/usr/bin/nsupdate -v /tmp/dnsupdate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is an updated version of the aws-install-ssm-agent | |
# script that supports SUSE. | |
function die() { | |
echo "$@, exiting." >&2 | |
exit 1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function get_contents() { | |
if [ -x "$(which curl)" ]; then | |
curl -s -f "$1" | |
elif [ -x "$(which wget)" ]; then | |
wget "$1" -O - | |
else | |
die "No download utility (curl, wget)" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is an updated version of the aws-update-linux-instance | |
# script that supports SUSE. | |
PRE_UPDATE_SCRIPT_URL='' | |
POST_UPDATE_SCRIPT_URL='' | |
INCLUDE_PACKAGES='' | |
EXCLUDE_PACKAGES='' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schemaVersion":"0.3", | |
"description":"Updates AMI with Linux distribution packages and Amazon software. For details,see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sysman-ami-walkthrough.html", | |
"assumeRole":"{{AutomationAssumeRole}}", | |
"parameters":{ | |
"SourceAmiId":{ | |
"type":"String", | |
"description":"(Required) The source Amazon Machine Image ID." | |
}, | |
"InstanceIamRole":{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is an updated version of the aws-install-ssm-agent | |
# script that supports SUSE. | |
function die() { | |
echo "$@, exiting." >&2 | |
exit 1 | |
} |