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 * as pulumi from "@pulumi/pulumi"; | |
import * as aws from "@pulumi/aws"; | |
// Create an AWS S3 bucket | |
const bucket = new aws.s3.Bucket("my-bucket", { | |
website: { | |
indexDocument: "index.html", | |
}, | |
}); |
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: vault | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
cert-manager.io/cluster-issuer: letsencrypt-issuer | |
spec: | |
rules: |
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
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket | |
resource "google_storage_bucket" "my-vault-bucket" { | |
name = "my-vault-bucket" | |
location = "US-CENTRAL1" | |
storage_class = "STANDARD" | |
uniform_bucket_level_access = false | |
lifecycle_rule { | |
condition { |
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
server: | |
extraEnvironmentVars: | |
GOOGLE_REGION: US-CENTRAL1 | |
GOOGLE_PROJECT: my-project | |
GOOGLE_APPLICATION_CREDENTIALS: /vault/userconfig/vault-config/vault-sa.json | |
extraVolumes: | |
- type: secret | |
name: vault-config | |
path: null |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: atlantis | |
labels: | |
app: atlantis | |
spec: | |
selector: | |
matchLabels: |
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
--- | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: atlantis-kubeconf-pvc | |
spec: | |
accessModes: | |
- ReadWriteMany | |
storageClassName: "" | |
resources: |
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
# in order to be able to run Atlantis: https://www.runatlantis.io/ | |
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account | |
resource "google_service_account" "atlantis-sa" { | |
account_id = "atlantis-sa" | |
project = "my-project" | |
} | |
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_project_iam | |
resource "google_project_iam_member" "atlantis-im" { | |
project = "my-project" |
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
let | |
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11"; | |
pkgs = import nixpkgs { config = { allowUnfree = true; }; overlays = []; }; | |
git = pkgs.git.overrideAttrs (oldAttrs: rec { | |
version = "2.42.0"; | |
}); | |
podman = pkgs.podman.overrideAttrs (oldAttrs: rec { | |
version = "4.7.2"; |
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
let | |
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11"; | |
pkgs = import nixpkgs { config = { allowUnfree = true; }; overlays = []; }; | |
kubectl = pkgs.kubectl.overrideAttrs (oldAttrs: rec { | |
version = "1.28.4"; | |
}); | |
terraform = pkgs.terraform.overrideAttrs (oldAttrs: rec { | |
version = "1.6.4"; |
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
~$ gcloud container clusters describe my-k8s --format='value(privateClusterConfig.masterIpv4CidrBlock)' --region=asia-southeast2-a | |
# 172.18.0.0/28 |
NewerOlder