- Turn on versioning for the source bucket.
- Turn on cross-region replication and point it to a newly created backup.
- Copy existing s3 contents using the following command:
aws s3 sync s3://source s3://source-backup
.cpcache/ | |
.shadow-cljs/ | |
dev/ | |
node_modules/ | |
test/ |
alias cfversion="curl -s https://d1uauaxba7bl26.cloudfront.net/latest/CloudFormationResourceSpecification.json | jq '.ResourceSpecificationVersion' -r" |
#!/usr/bin/env node | |
const { USER_POOL_ID } = process.env; | |
if (!USER_POOL_ID) throw new Error("Missing USER_POOL_ID"); | |
const AWS = require("aws-sdk"); | |
const cognito = new AWS.CognitoIdentityServiceProvider(); | |
const attribute => ({ Attributes }, name) => | |
Attributes.filter(a => a.Name === name)[0].Value; |
#!/usr/bin/env bash | |
echo "Which log groups would you like to remove?" | |
read LOG_GROUP | |
echo | |
LOG_GROUPS=$(aws logs describe-log-groups --query "logGroups[*].logGroupName" --output text) | |
LOG_GROUPS=($LOG_GROUPS) | |
for i in "${LOG_GROUPS[@]}" |
{ | |
"Working Directory" : "\/Users\/dehli", | |
"Prompt Before Closing 2" : 2, | |
"Selected Text Color" : { | |
"Green Component" : 0, | |
"Blue Component" : 0, | |
"Red Component" : 0 | |
}, | |
"Rows" : 25, | |
"Ansi 11 Color" : { |
aws s3 sync s3://source s3://source-backup
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Check if xcode command line tools are installed | |
if ! [ "$(xcode-select -p)" ]; then | |
xcode-select --install | |
exit 1 | |
fi | |
# Install brew | |
if ! [ -x "$(command -v brew)" ]; then |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
{:user {:plugins [[cider/cider-nrepl "0.13.0"]] | |
:dependencies [[org.clojure/tools.nrepl "0.2.12"]]}} |