Both things have been introduced recently, and let you access even private ec2 instances
- Without VPN
- No open SSH port
- Authentication / Authorization is fully delegated to IAM
# Assumes valid AWS Credentials in ENV
Both things have been introduced recently, and let you access even private ec2 instances
# Assumes valid AWS Credentials in ENV
#!/usr/bin/env python3 | |
import os | |
import sys | |
import boto3 | |
from botocore.exceptions import ClientError | |
# -------------------------------------------------------------------- main --- | |
#!/bin/bash | |
version="$1" | |
major=0 | |
minor=0 | |
build=0 | |
# break down the version number into it's components | |
regex="([0-9]+).([0-9]+).([0-9]+)" | |
if [[ $version =~ $regex ]]; then |
# Copyright (C) 2016 Martina Pugliese | |
from boto3 import resource | |
from boto3.dynamodb.conditions import Key | |
# The boto3 dynamoDB resource | |
dynamodb_resource = resource('dynamodb') | |
def get_table_metadata(table_name): |
#!/bin/bash | |
# GIST_URL: https://gist.github.com/natemccurdy/d1abe94f9688de9d7ea38bfd3b2e8d43 | |
# Dumps the Node Classifier groups to a file. This file can be used to restore classification. | |
# | |
SCRIPTNAME="$(basename "$0")" | |
PATH="/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin:/opt/puppet/bin:$PATH" | |
PE_CERT=$(puppet agent --configprint hostcert) | |
PE_KEY=$(puppet agent --configprint hostprivkey) | |
PE_CA=$(puppet agent --configprint localcacert) |
# checkDuplicates.py | |
# Python 2.7.6 | |
""" | |
Given a folder, walk through all files within the folder and subfolders | |
and get list of all files that are duplicates | |
The md5 checcksum for each file will determine the duplicates | |
""" | |
import os |
tar -cvf ~/media-`date +%Y%m%d`.tar --exclude-vcs --exclude='*.htaccess' --exclude='*/cache/*' --exclude='*/cache' --exclude='*/.thumbs/*' --exclude='*/.thumbs' --exclude='*/tmp/*' --exclude='*/tmp' --exclude='*/js/*' --exclude='*/js' --exclude='*/css/*' --exclude='*/css' --exclude='*/captcha/*' --exclude='*/captcha' --exclude='*/css_secure/*' --exclude='*/css_secure' --exclude='*/customer/*' --exclude='*/customer' --exclude='*/dhl/*' --exclude='*/dhl' --exclude='*/downloadable/*' --exclude='*/downloadable' --exclude='*/xmlconnect/*' --exclude='*/xmlconnect' media |