Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created October 10, 2023 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chanwit/776efeb80b917c8eb642a440d0cb9a4d to your computer and use it in GitHub Desktop.
Save chanwit/776efeb80b917c8eb642a440d0cb9a4d to your computer and use it in GitHub Desktop.
---
apiVersion: infra.contrib.fluxcd.io/v1alpha1
kind: Terraform
metadata:
name: foo
namespace: default
spec:
interval: 5m
approvePlan: auto
sourceRef:
kind: GitRepository
name: helloworld
namespace: bar
backendConfig:
customConfiguration: |
backend "gcs" {
}
backendConfigsFrom:
- kind: Secret
name: gcs-configs
---
apiVersion: v1
kind: Secret
metadata:
name: gcs-configs
namespace: default
data:
bucket: base64(bucket-name)
credentials: base64(GCP-SA-JSON-private-key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment