This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prepare cluster | |
# helm install --name cert-manager --namespace=cert-manager jetstack/cert-manager --version v0.10.1 | |
# kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true | |
# kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.10.1/cert-manager.yaml | |
# helm install istio.io/istio-init --name istio-init --namespace istio-system | |
# helm install istio.io/istio --name istio --namespace istio-system --set-string gateways.istio-ingressgateway.sds.enabled=true | |
# kubectl label ns default istio-injection=enabled | |
apiVersion: v1 | |
kind: Service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "region" {default = "us-west-2"} | |
variable "website_dns" {default = "swagger-ui.webblab.info"} | |
variable "r53_zone_id" {default = "Z1S59LUERGUH56"} | |
variable "swagger_ui_version" {default = "v2.2.5"} | |
provider "aws" { | |
region = "${var.region}" | |
} | |
resource "aws_s3_bucket" "main" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
token=$1 | |
aws_account=132456 | |
base_profile=work | |
mfa_profile=workmfa | |
username=denniswebb | |
creds=$(aws --profile ${base_profile} sts get-session-token --serial-number arn:aws:iam::${aws_account}:mfa/${username} --duration 129600 --token $token --query "Credentials.[AccessKeyId, SecretAccessKey, SessionToken]" --output text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Dennis Webb", | |
"label": "Staff Software Engineer at Panther", | |
"image": "", | |
"email": "dhwebb@gmail.com", | |
"phone": "901-209-9322", | |
"url": "", | |
"summary": "I am a DevOps Engineer currently helping businesses deploy and manage their infrastructure and applications with Amazon Web Services. 20 years of IT experience has allowed me to continuously increase my knowledge and improve my skills. I am also a member of the AWS \"All 9 Club\" by holding all 9 of the AWS Certifcations.\n\nI believe that DevOps should provide solutions that allow deployments to be almost \"self-service\" to the developer. A good DevOps department provides tools so a developer can simply add a few deployment parameters in their repo, and the system built by DevOps handles the rest for them. My job is to allow developers to do what they do best, and that's to keep coding.\n\nI am convinced in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "template_file" "main" { | |
template = <<EOF | |
set -e | |
WORKDIR=/tmp/${uuid()} | |
mkdir -p "$WORKDIR" | |
cd "$WORKDIR" | |
curl -f "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" | |
unzip awscli-bundle.zip | |
./awscli-bundle/install -i "$WORKDIR"/aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
usage () { | |
echo "Usage: $(basename "$0") <cronjob_name>" | |
exit 1 | |
} | |
if [ -z "$1" ]; then usage; fi | |
kubectl get cronjob "$1" -ojson | jq '{ "apiVersion": "batch/v1", "kind": "Job", "metadata": {"name": .metadata.name }, "spec": .spec.jobTemplate.spec }' | kubectl apply -f - |
OlderNewer