View gcp-global-lb-multi-region-cr-ce.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/run/docs/multiple-regions | |
# - https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups | |
# - https://cloud.google.com/load-balancing/docs/https/setup-global-ext-https-compute | |
# - https://cloud.google.com/load-balancing/docs/backend-service#named_ports | |
##################################################################### |
View gcp-gae-global-lb.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/vpc/docs/provisioning-shared-vpc | |
# - https://cloud.google.com/appengine/docs/flexible/go/create-app | |
# - https://cloud.google.com/appengine/docs/flexible/using-shared-vpc | |
# - https://gist.github.com/campoy/7b44f6ec2d9e82d956d34b4989b33192 | |
# - https://cloud.google.com/appengine/docs/standard/ingress-settings#view_ingress_settings | |
# - https://cloud.google.com/sdk/gcloud/reference/app/services/update |
View gcp-alb-url-rewrite.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/run/docs/deploying#command-line | |
# - https://hub.docker.com/r/ealen/echo-server | |
# - https://cloud.google.com/load-balancing/docs/https/setup-global-ext-https-serverless | |
# - https://cloud.google.com/load-balancing/docs/url-map-concepts#wildcards-regx-dynamic-route | |
# - https://cloud.google.com/load-balancing/docs/url-map-concepts#example_url_map_workflow_with_an | |
##################################################################### |
View gcp-datastream-mysql-gcs.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/vpc/docs/create-modify-vpc-networks | |
# - https://cloud.google.com/sql/docs/mysql/configure-private-services-access | |
# - https://cloud.google.com/sql/docs/mysql/configure-private-ip | |
# - https://cloud.google.com/iam/docs/service-accounts-create | |
# - https://cloud.google.com/compute/docs/instances/startup-scripts/linux | |
# - https://cloud.google.com/storage/docs/discover-object-storage-gcloud |
View gke-internal-ingress-path-routing.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balance-ingress | |
# - https://cloud.google.com/compute/docs/containers/deploying-containers | |
# - https://cloud.google.com/compute/docs/containers/configuring-options-to-run-containers | |
# - https://cloud.google.com/sdk/gcloud/reference/compute/instance-templates/create-with-container | |
# - https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-docker | |
# - https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/ |
View gcp-cloud-build-cloud-sql.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/sql/docs/postgres/configure-private-ip | |
# - https://cloud.google.com/build/docs/private-pools/create-manage-private-pools#gcloud | |
# - https://cloud.google.com/build/docs/private-pools/set-up-private-pool-to-use-in-vpc-network#setup-private-connection | |
##################################################################### | |
export PROJECT_ID=$(gcloud config get-value project) |
View gcp-vpn-vpc-to-vpc.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/sql/docs/postgres/configure-private-ip | |
# - https://cloud.google.com/build/docs/private-pools/set-up-private-pool-to-use-in-vpc-network#setup-private-connection | |
# - https://cloud.google.com/network-connectivity/docs/vpn/how-to/creating-ha-vpn2#gcloud | |
# - https://cloud.google.com/network-connectivity/docs/vpn/how-to/creating-ha-vpn (optional with peering) | |
##################################################################### |
View org-policies-gcloud-gcp.sh
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
##################################################################### | |
# ORG POLICIES (SET ON DEMO PARENT FOLDER FOR DEMO [SHOULD SET ON ORG]) | |
# REF: https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints#how-to_guides | |
# REF: https://cloud.google.com/storage/docs/org-policy-constraints | |
##################################################################### | |
# disable external IPs for VMs | |
export IP_POLICY_FILE=policy-extip.json | |
cat > $IP_POLICY_FILE << EOF | |
{ | |
"constraint": "constraints/compute.vmExternalIpAccess", |
View cert-manager-autopilot.yaml
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
# Copyright 2022 The cert-manager Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
View kong-proxy-to-cloud-run.sh
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 | |
##################################################################### | |
# REFERENCES | |
# - https://github.com/mikesparr/webhook-events | |
# - https://github.com/uber-go/zap | |
# - https://github.com/spf13/viper | |
# - https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md | |
# - https://github.com/cloudevents/sdk-go | |
# - https://docs.gofiber.io/guide/error-handling/ |
NewerOlder