Skip to content

Instantly share code, notes, and snippets.

Bruno Bronosky RichardBronosky

Block or report user

Report or block RichardBronosky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View README.md

Assume-Role

AWS Assume-Role requiring only aws-cli and jq

Installation

Basic

git clone https://gist.github.com/80306011bb5da80c765ffd6aa2ecf89b.git arole
@RichardBronosky
RichardBronosky / README.md
Last active Nov 10, 2019
AWS Assume-Role requiring only aws-cli and jq
View README.md

Assume-Role

AWS Assume-Role requiring only aws-cli and jq

Installation

Basic

git clone https://gist.github.com/80306011bb5da80c765ffd6aa2ecf89b.git arole
View pid_lineage.sh
#!/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 Oct 24, 2019
Quick Start Guide for confd using the "file" backend
View confd-quick-start-guide.md
@RichardBronosky
RichardBronosky / approve_pr
Created Sep 26, 2019
This is a WIP. Use at your own risk.
View approve_pr
#!/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 Oct 24, 2019
DevOps/Cloud Engineer Challenge
View cloud_engineer-challenge.md

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 <cmd> and times them in a way you can retrieve for comparison
@RichardBronosky
RichardBronosky / bumpversion.md
Created Sep 20, 2019
How to get started using Bumpversion. [a great tool to simplify git tagging with semantic versioning]
View bumpversion.md
View job_description-cloud_engineer.md

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

@RichardBronosky
RichardBronosky / README.md
Last active Nov 13, 2019
Aliases for Terragrunt/Terraform to simplify using Terraform modules separately from terraform.tfvars
View README.md

Installation

  1. Add aliases file to ~/.terraform.d
mkdir -p ~/.terraform.d

## Either: (a) Use a snapshot/copy of the current aliases
curl -sLo ~/.terraform.d/aliases https://gist.github.com/RichardBronosky/ae0e564f37f97f12586d6c828b8fa8ed/raw/48cfc248e74118a1c155fc321967d81c5fe70772/aliases
You can’t perform that action at this time.