This file contains hidden or 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: fluent-bit-read | |
rules: | |
- apiGroups: [""] | |
resources: | |
- namespaces | |
- pods |
This file contains hidden or 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
# {{cluster_name}} | |
# {{region_name}} = ap-northeast-2 | |
# {{http_server_toggle}} = On | |
# {{http_server_port}} = 2020 | |
# {{read_from_head}} = Off | |
# {{read_from_tail}} = On | |
# create amazon-cloudwatch namespace | |
apiVersion: v1 | |
kind: Namespace | |
metadata: |
This file contains hidden or 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: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
name: IML-Cluster | |
region: ap-northeast-2 | |
version: "1.27" | |
iam: | |
withOIDC: true |
This file contains hidden or 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
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Amazon EKS Sample VPC - Private and Public subnets' | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- | |
Label: | |
default: "Worker Network Configuration" |
This file contains hidden or 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_vpc" "default" { | |
default = true | |
} | |
data "aws_subnets" "all" { | |
filter { | |
name = "vpc-id" | |
values = [data.aws_vpc.default.id] | |
} | |
} |
This file contains hidden or 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
# S3 | |
resource "aws_s3_bucket" "website" { | |
bucket = var.s3_bucket_name | |
force_destroy = true | |
} | |
resource "aws_s3_bucket_website_configuration" "website_configure" { | |
bucket = aws_s3_bucket.website.bucket | |
index_document { |
This file contains hidden or 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 requests | |
import subprocess | |
import hashlib | |
__AUTHOR__ = "IML" | |
# TEST | |
def md5_hex(text): | |
m = hashlib.md5() |
This file contains hidden or 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
from flask import * | |
from flask_jwt_extended import * | |
application = Flask(import_name = __name__) | |
application.config.update( | |
DEBUG = True, | |
JWT_SECRET_KEY = "I'M IML" | |
) | |
jwt = JWTManager(application) |