Gets console data for the undocumented APIs that are used by the AWS Management Console
- AWS CLI - Install the AWS CLI
- SAM CLI - Install the SAM CLI
- Python 3 installed
- Docker - Install Docker community edition
Gets console data for the undocumented APIs that are used by the AWS Management Console
import os | |
import boto3 | |
import coto | |
from botocore.exceptions import ClientError | |
import logging | |
from pythonjsonlogger import jsonlogger | |
from datetime import datetime | |
import json |
// Without Repetitions | |
function getPermutations(options) { | |
const permutations = [] | |
console.log("FN START") | |
console.log(options) | |
if (options.length === 1) { | |
return [options] // return statement doesn't seem to break out of function why? | |
} |
gcloud compute scp ~/Desktop/samples.zip --zone "us-central1-a" fugue-automation:~/samples.zip --project "it-cloud-automation-dev-gcp" |
# https://gist.github.com/SheldonWangRJT/8d3f44a35c8d1386a396b9b49b43c385 | |
# https://www.youtube.com/watch?v=QKtRMFvvDL0 | |
# $brew install ffmpeg | |
# $brew install gifsicle | |
# 1. Convert the file to gif using ffmpeg | |
# - input path argument `-i` | |
# - pixel format argument `-pix_fmt` | |
# - removing some frames using framerate argument `-r` | |
# - end `ffmpeg` with new path/to/filename |
gcloud compute ssh --zone [zone] --project [project] [vm-name] --command "cat [file]" | pbcopy |
#!/usr/bin/env zsh | |
## CloudFormation related | |
## Install: | |
## 1. Create folder in $HOME/.oh-my-zsh/custom/plugins aws-shorts | |
## 2. Put this file aws-shorts.plugin.zsh in. | |
## 3. Add aws-shorts to plugins on $HOME/.zshrc and source $HOME/.zshrc | |
function cfnstacks() { | |
aws cloudformation describe-stacks --query 'Stacks[*].[StackName,StackStatus]' --output table | |
} |
LIB_DIR=aioboto3-layer/python | |
mkdir -p $LIB_DIR | |
pip install aioboto3 -t $LIB_DIR | |
cd aioboto3-layer | |
zip -r ~/Desktop/aioboto3-layer.zip . | |
# Upload or | |
aws lambda publish-layer-version --layer-name aioboto3-layer --zip-file fileb:///$HOME/Desktop/aioboto3-layer.zip |