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
#!/usr/bin/env bash | |
# Reference: https://sharats.me/posts/shell-script-best-practices/ | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ "${TRACE-0}" == "1" ]]; then | |
set -o xtrace | |
fi |
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
version: "3.5" | |
networks: | |
nifi: | |
services: | |
nifi: | |
cap_add: | |
- NET_ADMIN # low port bindings | |
image: apache/nifi:1.15.3 |
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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
annotations: | |
kubernetes.io/ingress.class: alb | |
alb.ingress.kubernetes.io/actions.rule-path-1: > | |
{"type": "forward", "forwardConfig": {"targetGroups": [{"serviceName": "nginx-path1", "servicePort": 80, "weight": 100}]}} | |
alb.ingress.kubernetes.io/conditions.rule-path-1: > | |
[{"Field":"query-string","QueryStringConfig":{"Values":[{"Key":"path","Value":"nginx1"}]}}] | |
alb.ingress.kubernetes.io/actions.rule-path-2: > |
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: v1 | |
clusters: | |
- cluster: | |
certificate-authority-data: *** | |
server: https://***.eks.amazonaws.com | |
name: *** | |
... |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::${aws_elb_account_id}:root" | |
}, | |
"Action": "s3:PutObject", | |
"Resource": "arn:aws:s3:::${bucket_name}/prefix/AWSLogs/${your_account_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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AWSLogDeliveryWrite", | |
"Effect": "Allow", | |
"Principal": { | |
"Service": "delivery.logs.amazonaws.com" | |
}, | |
"Action": "s3:PutObject", |
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 alpine:3.11 | |
RUN apk update | |
RUN apk add --no-cache bash python3 | |
RUN apk add --no-cache --virtual=build gcc libffi-dev musl-dev openssl-dev python3-dev make | |
RUN pip3 install azure-cli | |
RUN pip3 install awscli | |
RUN apk del --purge build | |
ENV TZ Asia/Taipei |