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/bash | |
| __terraform_ps1() | |
| { | |
| # get current workspace | |
| WORKSPACE=$(terraform workspace show) | |
| if $(pwd | /bin/grep -q 'terraform'); then | |
| if [ -n "$WORKSPACE" ]; then | |
| echo -ne "${White}(terraform: " |
| FROM golang:alpine | |
| RUN apk update && apk upgrade && \ | |
| apk add --no-cache git zip | |
| ARG TERRAFORM_VERSION | |
| RUN git clone --single-branch --branch v${TERRAFORM_VERSION} https://github.com/hashicorp/terraform.git /go/src/github.com/hashicorp/terraform | |
| RUN cd $GOPATH/src/github.com/hashicorp/terraform && echo $GOPATH && go install ./tools/terraform-bundle |
| // not the most elgant way but it works | |
| // in the console post the function below and call changeSwagger("http","localhost:5050","/my_path/) | |
| function changeSwagger (scheme,host,path) { | |
| var newspec = ui.spec().toJSON().resolved | |
| newspec.scheme = [scheme] || newspec.scheme | |
| newspec.host = host || newspec.host | |
| newspec.basePath = path || newspec.basePath | |
| ui.getStore().dispatch({type:'set_scheme',payload: {scheme: newspec.scheme[0]}}) |
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "net" | |
| "time" | |
| ) | |
| func reader(r io.Reader) { |
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
| #!/bin/bash | |
| ASPELL=$(which aspell) | |
| if [ $? -ne 0 ]; then | |
| echo "Aspell not installed - unable to check spelling" >&2 | |
| exit | |
| else | |
| WORDS=$($ASPELL --mode=email --add-email-quote='#' list < "$1" | sort -u) | |
| fi | |
| if [ -n "$WORDS" ]; then | |
| printf "\e[1;33m Possible spelling errors found in commit message:\n\e[0m\e[0;31m%s\n\e[0m\e[1;33m Use git commit --amend to change the message.\e[0m\n\n" "$WORDS" >&2 |
| {% assign all_hosts = "" | split: "" %} | |
| {% for host in site.data.shared_hosts %} | |
| {% assign all_hosts = all_hosts | push: host %} | |
| {% endfor %} | |
| {% for host in site.data.paas_hosts %} | |
| {% assign all_hosts = all_hosts | push: host %} | |
| {% endfor %} |
| function decode-authorization-failure-message { | |
| if [ $# -ne 1 ] || [ "$1" = -h ] || [ "$1" = --help ]; then | |
| cat <<'EOT' | |
| Usage: decode-authorization-failure-message <message> | |
| Use this when Amazon gives you an "Encoded authorization failure message" and | |
| you need to turn it into something readable. | |
| EOT | |
| return 1 | |
| fi |