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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"eks:UpdateClusterVersion", | |
"eks:UpdateClusterConfig", | |
"eks:UntagResource", | |
"eks:TagResource", | |
"eks:ListClusters", | |
"eks:DescribeCluster", |
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
package main | |
import ( | |
"crypto/sha1" | |
"crypto/tls" | |
"crypto/x509" | |
"errors" | |
"flag" | |
"fmt" | |
"log" |
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
resource "kubernetes_manifest" "eks_console_role" { | |
manifest = { | |
apiVersion = "rbac.authorization.k8s.io/v1" | |
kind = "ClusterRole" | |
metadata = { | |
name = "eks-console" | |
} | |
rules = [ | |
{ | |
"apiGroups" = [ |
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
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: eks-console | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- nodes |
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
import os | |
import boto3 | |
BATCH_SIZE = 25 | |
REGION = 'us-west-2' | |
SRC_TABLE = os.environ['SRC'] | |
SNK_TABLE = os.environ['SNK'] | |
client = boto3.client('dynamodb', REGION) | |
tables = client.list_tables()['TableNames'] |
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 fish | |
source ../include/env.fish | |
source ../include/build_and_push.fish |
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
.DEFAULT_GOAL := push | |
DIR = $(shell pwd) | |
MAKEFLAGS += --no-builtin-rules | |
MAKEFLAGS += --no-builtin-variables | |
base_img := debian:buster-slim | |
img := abc | |
build: pull | |
docker build -t ${img} . |
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 | |
set -e | |
REMOTE_CHARTS=( | |
"https://aws.github.io/eks-charts/|eks|aws-load-balancer-controller|1.1.0" | |
"https://kubernetes.github.io/dashboard/|kubernetes-dashboard|kubernetes-dashboard|3.0.0" | |
) | |
S3_BUCKET=$(terraform output s3_bucket_helm_repo) | |
if [[ ! -d "./charts" ]]; then | |
mkdir charts |
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 "aws_iam_policy_document" "helm_repo_bucket_policy" { | |
statement { | |
actions = [ | |
"s3:*", | |
] | |
condition { | |
test = "NotIpAddress" | |
variable = "aws:SourceIp" | |
values = [ | |
var.remote_network, |
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
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
namespace: pypicloud | |
name: pypicloud | |
type: Opaque | |
stringData: | |
config.ini: | | |
[app:main] |
NewerOlder