Skip to content

Instantly share code, notes, and snippets.

@anarquias
anarquias / LICENSE.txt
Created January 25, 2021 09:35 — forked from pat/LICENSE.txt
Running Setup SQL scripts on an RDS instance within a VPC, via Terraform
The MIT License (MIT)
Copyright (c) 2018 Pat Allan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@anarquias
anarquias / aws-auth-cm.sh
Created January 4, 2021 09:43 — forked from pmatv/aws-auth-cm.sh
Map IAM group to EKS ConfigMap
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
IAM_GROUP=${1:-admins}
EKS_ROLE_ARN=${2:-arn:aws:iam::111122223333:role/eks-node-role}
RBAC_GROUP=${3:-system:masters}
@anarquias
anarquias / Jenkins
Created January 4, 2021 09:12 — forked from vamsijakkula/Jenkins
Jenkins
pipeline {
agent any
stages {
stage('Checkout Source') {
steps {
git url:'https://github.com/vamsijakkula/hellowhale.git', branch:'master'
}
@anarquias
anarquias / cluster_setup
Created November 14, 2019 21:39 — forked from abtris/cluster_setup
Elastic Container Service
#!/bin/bash
yum install -y aws-cli
aws s3 cp s3://yours-ecs-config/ecs.config /etc/ecs/ecs.config
echo ECS_CLUSTER= cluster-name-demo >> /etc/ecs/ecs.config
@anarquias
anarquias / aws_ecs_setup.MD
Created November 14, 2019 21:34 — forked from techjacker/aws_ecs_setup.MD
Instructions for deploying an ec2 instance based on a docker file using AWS EC2 Container Service using the AWS CLI tool

aws ecs help

echo $AWS_DEFAULT_PROFILE aws configure --profile andrew aws ec2 describe-instance-status --profile andrew --instance-ids i-81c24938

@anarquias
anarquias / Deployment.md
Created November 14, 2019 19:59
Deployment Commands for School Portal

Setting up container deployment to ECS (AWS Fargate) w/ Docker Compose

Ensure to use environment variables as shown in '.envrc.example'

TODO: This stuff below should eventually go into a README as Markdown

Basic Steps:

  1. AWS Account
  2. AWS CLI & configure
@anarquias
anarquias / kubernetes.md
Created November 14, 2019 00:26 — forked from xmlking/kubernetes.md
Kubernetes Cheat Sheet

Kubernetes

Install

Prerequisites

  1. Bash v5+ checkout Upgrading Bash on macOS
  2. bash-completion@2

Install Docker and Kubernetes(k8s)

@anarquias
anarquias / 01_aws_rbd_cli.md
Created July 3, 2019 08:08 — forked from thieryl/01_aws_rbd_cli.md
[AWS] Amazon Web Services #aws

AWS CLI RBD

White list office ip

aws allow-my-ip "Proxy-Cerebro" tcp 22 rbd_sys
@anarquias
anarquias / iam.py
Created July 3, 2019 08:08 — forked from epequeno/iam.py
basic aws config rule example
def evaluate_compliance(event, configuration_item, valid_rule_parameters):
iam = get_client('iam', event)
users = get_all_users(iam)
evaluations = []
for user in users:
e = build_evaluation(user["UserId"], 'COMPLIANT', event, annotation="testing")
evaluations.append(e)
return evaluations