This is a list of controls that can be placed into an IAM policy document. All content comes from AWS documentation.
Something wrong? Try looking here.
Table of Contents generated with DocToc
#!/bin/sh | |
# Install the AWS CLI, set up an IAM user for the instance(s) you want to control. | |
# Pull the AWS keys for the IAM user and run aws configure to add them. | |
# I run this on Sophos UTM and have Sophos run a reverse proxy from the \ | |
# $ROUTERIP:32400 to $PLEXHOST:32400 | |
# set -x | |
# started with screen -Sdm a '/root/bin/awscheck.sh'een -Sdm a '/root/bin/awscheck.sh'screen -Sdm a '/root/bin/awscheck.sh'screen -Sdm a '/root/bin/awscheck.sh'n -Sdm a '/root/bin/awscheck.sh' | |
PLEXHOST=dokie.duckdns.org | |
WANIF=eth2 |
#!/bin/bash | |
#set -x | |
#DEBUG=echo | |
# Runs via cron to shut down the instance if it's not in use for 5 minutes | |
# Starts checks after it's been up more than 500secs | |
# Won't kick you out if you're ssh'ed in and it's idle. | |
# crontab -l|grep idle | |
# */6 * * * * /root/bin/idle.sh >/dev/null 2>&1 | |
until $(awk '$1>500{exit 1}' /proc/uptime) |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
# -*- coding: utf-8 -*- | |
# /var/runtime/awslambda/bootstrap.py | |
""" | |
aws_lambda.bootstrap.py | |
Amazon Lambda | |
Copyright (c) 2013 Amazon. All rights reserved. | |
Lambda runtime implemention | |
""" |