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 base64 | |
import os | |
from hashlib import pbkdf2_hmac | |
# package pycryptodome = "*" | |
from Crypto.Cipher import AES | |
from Crypto.Cipher import PKCS1_v1_5 | |
from Crypto.PublicKey import RSA | |
def unpad(s): |
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
{{ range $i := until (int $.brokers) }} | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: kafka-gateway-{{ $i }}-0 | |
namespace: kafka-gateway | |
spec: | |
ports: | |
- name: plain |
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
provider "aws" { | |
region = "us-east-1" | |
} | |
data "aws_caller_identity" "current" {} | |
data "aws_vpc" "vpc" { | |
filter { | |
name = "tag:Name" | |
values = [ |