Skip to content

Instantly share code, notes, and snippets.

View RichardBronosky's full-sized avatar

Bruno Bronosky RichardBronosky

View GitHub Profile
@RichardBronosky
RichardBronosky / Fork your own Gist.md
Last active November 14, 2019 17:12 — forked from antichris/about.md
Fork your own Gist

Fork your own Gist

It used to be possible to fork your own gists via the browser using a little JS magic. This is no longer the case. As an alternative, you can use Chris Wanstrath's https://github.com/defunkt/gist cli tool to do the next best thing.

Usage

gist-fork git@gist.github.com:fcc543f7f1cfba404caf5ce276cc0951.git

Assume-Role

AWS Assume-Role requiring only aws-cli and jq

Installation

Basic

git clone https://gist.github.com/80306011bb5da80c765ffd6aa2ecf89b.git arole

rebase demo

@RichardBronosky
RichardBronosky / README.md
Last active June 24, 2020 17:02
AWS Assume-Role requiring only aws-cli and jq

Assume-Role

AWS Assume-Role requiring only aws-cli and jq

Installation

Basic

git clone https://gist.github.com/80306011bb5da80c765ffd6aa2ecf89b.git arole
#!/bin/bash -eu
pid_lineage(){
ps -p ${1:-$$} -o pid,ppid,args | tail -n1 | \
(
read pid ppid args
echo -e "$pid\t$args"
[[ $pid -gt 1 ]] && pid_lineage $ppid -
) | (
[[ ${2:-} != '-' ]] && \
@RichardBronosky
RichardBronosky / confd-quick-start-guide.md
Last active October 24, 2019 16:50
Quick Start Guide for confd using the "file" backend
@RichardBronosky
RichardBronosky / approve_pr
Created September 26, 2019 15:54
This is a WIP. Use at your own risk.
#!/bin/bash
usage(){
echo -e "\n""${FUNCNAME[1]} <github_pull_url> <oauth_token>""\n"
return 1
}
_prepare_vars(){
local IFS=$'\n'
regex=''
@RichardBronosky
RichardBronosky / cloud_engineer-challenge.md
Last active October 24, 2019 17:21
DevOps/Cloud Engineer Challenge

DevOps/Cloud Engineer Challenge

  • Read this answer to my question. https://serverfault.com/a/977813/4131
  • Create a [Packer Template] that defines a builder of type amazon-ebs
    • Based it on a source_ami_filter that selects the most_recent image of CentOS Linux 7*
    • Add a provisioner that updates all the installed packages so that you have a Centos AMI that has the latest everything at startup
    • Add any other commands to the provisioner that is needed to fix the issue "sudo commands in cloud-init are SLOW"
  • Create a [Terraform Config] that defines 2 resources of type aws_instance
    • One should use your new AMI. One instance should use the original CentOS 7 AMI by owner aws-marketplace
  • Include (the same in each) user_data that performs several sudo -Hu centos and times them in a way you can retrieve for comparison
@RichardBronosky
RichardBronosky / bumpversion.md
Created September 20, 2019 20:45
How to get started using Bumpversion. [a great tool to simplify git tagging with semantic versioning]

DevOps/CloudOps Engineer

Overview

The DevOps/CloudOps Engineer is primarily responsible for ensuring that cloud based Infrastructure is designed and deployed in a secure manner. These responsibilities include delivering solutions that satisfy functional and user requirements; developing, maintaining and troubleshooting cloud based services and network security systems; preventing misuse and malicious behavior; outlining constraints and restrictions within security policy; scripting and documenting processes.

This engineering group at Rooms To Go uses "serverless" infrastructure where possible. Their primary responsibility is architecting, implementing, maintaining, and monitoring AWS services. Where possible we use (pay for) existing services instead of re-solving "solved problems".

Responsibilities