Skip to content

Instantly share code, notes, and snippets.

View agiza's full-sized avatar

Anthony Giza agiza

  • Boston, Massachusetts
View GitHub Profile
variable "dsc_key" {
default = "dsc_registration_key_from_portal"
}
variable "dsc_endpoint" {
default = "dsc_registration_url_from_portal"
}
variable dsc_config {
default = "node_configuration_you_want_applied__can_leave_blank"
@agiza
agiza / azure-create-terraform-backend.sh
Created January 29, 2020 05:36 — forked from jamesrcounts/azure-create-terraform-backend.sh
Snippets to illustrate getting started with Terraform in Azure DevOps
#!/usr/bin/env bash
set -euo pipefail
ID=$(uuidgen)
LOCATION=westus
RG=terraformrg
# Create unique name for storage account
STORAGE_ACCOUNT=$(echo "terraform-${ID}" | tr '[:upper:]' '[:lower:]' | sed 's/-//g' | cut -c1-24)
@agiza
agiza / glue.tf
Created October 8, 2019 09:51 — forked from russellpierce/glue.tf
Basic Terraform Setup for AWS Glue
# Discussion on Medium: https://medium.com/@russell.s.pierce/setting-up-aws-glue-with-terraform-8f601cf36366
resource "aws_iam_role" "glue" {
name = "AWSGlueServiceRoleDefault"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
@agiza
agiza / terraform_bastion.tf
Created April 27, 2019 06:16 — forked from duduribeiro/terraform_bastion.tf
terraform_bastion
data "aws_ami" "ubuntu" {
most_recent = true
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*"]
}
filter {
name = "virtualization-type"
@agiza
agiza / README.md
Created January 20, 2019 22:57 — forked from the-dvlpr/README.md
Setup Jenkins on Mac

Jenkins CI on OSX

Instructions on how to setup a secured Jenkins CI on a Mac.

Download & Install dependencies

All of these operations are done with your admin user.

Developer tools

Install the command line developer tools.

@agiza
agiza / README.md
Created January 20, 2019 22:55 — forked from seantrane/README.md
CI/CD Services & Software Comparison
@agiza
agiza / docker-machine-vmfusion.sh
Created January 3, 2019 18:20 — forked from pearofducks/docker-machine-vmfusion.sh
Basic workflow for docker-machine on Mac with VMWare Fusion
# Get everything ready on a Mac
brew install docker docker-machine docker-compose
# Create a new machine (based on the 1.8.1 boot2docker iso)
docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso osxdock
# Bring the machine up
docker-machine start osxdock
# Configure Shell
@agiza
agiza / docker-machine-vmfusion.sh
Created January 3, 2019 18:20 — forked from pearofducks/docker-machine-vmfusion.sh
Basic workflow for docker-machine on Mac with VMWare Fusion
# Get everything ready on a Mac
brew install docker docker-machine docker-compose
# Create a new machine (based on the 1.8.1 boot2docker iso)
docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso osxdock
# Bring the machine up
docker-machine start osxdock
# Configure Shell
@agiza
agiza / get_image_tags.py
Created August 6, 2018 17:00 — forked from endofcake/get_image_tags.py
An external data source for Terraform that returns the versions of all images in an ECS task definition
''' Return image tags specified in ECS task definition '''
import json
import sys
import boto3
ECR_CLIENT = boto3.client('ecr')
ECS_CLIENT = boto3.client('ecs')
def main(cluster_name, service_name):
@agiza
agiza / stackexchange_tag_extract.py
Created August 6, 2018 16:59 — forked from Mohamedemad4/stackexchange_tag_extract.py
this scripts pulls every tag on stackexchange.com and every site related
import time
import json
import requests
import cPickle as pkl
def get(url):
r=requests.get(url)
if r.status_code!=200:
return False
js=r.content