I hereby claim:
- I am kusw3 on github.
- I am mrabell (https://keybase.io/mrabell) on keybase.
- I have a public key ASBXAU3w4wObMjHeXKK6ptMjdSdOiSbDoiJv3zQHZVfrBAo
To claim this, I am signing this object:
# Based on steps for AWS EKS deployment | |
# https://docs.aws.amazon.com/eks/latest/userguide/dashboard-tutorial.html | |
# It needs a kubernetes provider to be available | |
# | |
#### | |
## Metrics | |
#### | |
resource "kubernetes_cluster_role" "aggregated-metrics-reader" { | |
metadata { |
data "aws_vpc" "sandbox" { | |
tags = { | |
Name = "SandboxVPC" | |
} | |
} | |
data "aws_subnet_ids" "private" { | |
vpc_id = data.aws_vpc.sandbox.id | |
filter { |
# Load teamplate for provision script of bastion host | |
data "template_file" "user_data" { | |
template = file("${path.module}/helpers/provision.sh") | |
vars = { | |
TF_tf_zip_url = "https://releases.hashicorp.com/terraform/0.12.23/terraform_0.12.23_linux_amd64.zip" | |
TF_kc_url = "https://amazon-eks.s3-us-west-2.amazonaws.com/1.15.10/2020-02-22/bin/linux/amd64/kubectl" | |
TF_iamauth_url = "https://amazon-eks.s3-us-west-2.amazonaws.com/1.15.10/2020-02-22/bin/linux/amd64/aws-iam-authenticator" | |
TF_eksctl_url = "https://github.com/weaveworks/eksctl/releases/download/latest_release/eksctl_$(uname -s)_amd64.tar.gz" | |
TF_tz = "Europe/Andorra" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Helper program to get a domain ip into terraform | |
# Tested on amzlinux2 OS, macosx | |
# marc@kusw3.com | |
if [[ $# -ne 1 ]]; then | |
echo "ERROR: expected 1 argument as domain name" | |
exit 1; | |
fi |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": "elasticloadbalancing:*", | |
"Resource": "*" | |
}, | |
{ |
# Retrive list of running EC2 instances name and private ip address | |
aws ec2 describe-instances --query 'Reservations[].Instances[?State.Name==`running`].[Tags[?Key==`Name`]|[0].Value,PrivateIpAddress]' --output text |
#!/usr/bin/env python | |
from __future__ import print_function | |
""" | |
Shitty script to parse individual files containing a json type salt-ssh output to a yum -q check-update command. | |
CSV is generated with the id taken from a list and each of packages marked to be udpated | |
""" | |
import os |