Skip to content

flux-iac/tfc-helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

tfc-helloworld

Encode your Terraform TFRC fle which contains your Terraform Cloud or Terraform Enterprise token.

apiVersion: v1
kind: Secret
metadata:
  name: tfc-cli-config
  namespace: flux-system
data:
  terraform.tfrc: <redacted>

Bootstrap snippet

cat <<EOF | kubectl apply -f -
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
  name: tfc-helloworld
  namespace: flux-system
spec:
  interval: 30s
  url: https://github.com/tf-controller/tfc-helloworld
  ref:
    branch: main
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: tfc-helloworld
  namespace: flux-system
spec:
  prune: true
  interval: 2m
  path: "./infra"
  sourceRef:
    kind: GitRepository
    name: tfc-helloworld
  timeout: 3m
  healthChecks:
  - apiVersion: infra.contrib.fluxcd.io/v1alpha1
    kind: Terraform
    name: tfc-helloworld
    namespace: flux-system
EOF

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages