https://docs.aws.amazon.com/redshift/latest/mgmt/copy-unload-iam-role.html https://docs.aws.amazon.com/redshift/latest/mgmt/default-iam-role.html https://bobcares.com/blog/copy-or-unload-data-from-amazon-redshift-to-amazon-s3-bucket/
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
controller: | |
name: controller | |
image: | |
registry: registry.k8s.io | |
image: ingress-nginx/controller | |
containerPort: | |
http: 80 | |
https: 443 | |
special: 8000 |
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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: dev-ingress | |
annotations: | |
kubernetes.io/ingress.class: alb | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
alb.ingress.kubernetes.io/target-type: ip | |
alb.ingress.kubernetes.io/group.name: example-dev | |
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP |
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: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
name: private-cluster | |
region: us-west-2 | |
vpc: | |
cidr: "10.0.0.0/16" | |
nat: |
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
regions: | |
- "us-east-1" | |
- "us-west-2" | |
account-blocklist: | |
- 1234567890 | |
resource-types: | |
targets: | |
- EC2Instance |
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
function awsall { | |
export AWS_PAGER="" | |
for i in `aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text|sort -r` | |
do | |
echo "------" | |
echo $i | |
echo "------" | |
echo -e "\n" | |
if [ `echo "$@"|grep -i '\-\-region'|wc -l` -eq 1 ] | |
then |
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
#!/bin/sh | |
git filter-branch -f --env-filter ' | |
OLD_EMAIL="<OLD_EMAIL>" | |
CORRECT_NAME="<NAME>" | |
CORRECT_EMAIL="<EMAIL>" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then |
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
#!/bin/bash | |
echo "[-] Installing webhook.." | |
wget https://github.com/adnanh/webhook/releases/download/2.6.11/webhook-linux-amd64.tar.gz | |
tar -xvf webhook*.tar.gz | |
sudo mv webhook-linux-amd64/webhook /usr/local/bin | |
rm -rf webhook-linux-amd64* | |
echo "[ok] Installing webhook." |
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
#!/bin/bash | |
set -e | |
set -o pipefail | |
# Add user to k8s using service account, RBAC role file needed | |
if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]]; then | |
echo "usage: $0 <service_account_name> <namespace> [rbac-role-yaml]" | |
exit 1 | |
fi |
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
version: '3' | |
services: | |
rabbitmq: | |
image: rabbitmq:3-management | |
container_name: rabbitmq | |
hostname: rabbitmq | |
restart: always | |
ports: | |
- "15672:15672" | |
- "5672:5672" |
NewerOlder