Skip to main content
Version: 0.28.0

gitops_create_terraform

gitops create terraform

Create a Terraform object

Synopsis

Create a Terraform object

gitops create terraform [flags]

Examples


# Create a Terraform resource in the default namespace
gitops create terraform -n default my-resource --source GitRepository/my-project --path ./terraform --interval 15m

# Create and export a Terraform resource manifest to the standard output
gitops create terraform -n default my-resource --source GitRepository/my-project --path ./terraform --interval 15m --export

Options

      --context string        The name of the kubeconfig context to use
--disable-compression If true, opt-out of response compression for all requests to the server
-h, --help help for terraform
--interval string Interval at which the Terraform configuration should be applied
--path string Path to the Terraform configuration
--source string Source of the Terraform configuration

Options inherited from parent commands

  -e, --endpoint WEAVE_GITOPS_ENTERPRISE_API_URL   The Weave GitOps Enterprise HTTP API endpoint can be set with WEAVE_GITOPS_ENTERPRISE_API_URL environment variable
--export Export in YAML format to stdout.
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kubeconfig string Paths to a kubeconfig. Only required if out-of-cluster.
-n, --namespace string The namespace scope for this operation (default "flux-system")
-p, --password WEAVE_GITOPS_PASSWORD The Weave GitOps Enterprise password for authentication can be set with WEAVE_GITOPS_PASSWORD environment variable
--timeout duration The timeout for operations during resource creation. (default 3m0s)
-u, --username WEAVE_GITOPS_USERNAME The Weave GitOps Enterprise username for authentication can be set with WEAVE_GITOPS_USERNAME environment variable

SEE ALSO

Auto generated by spf13/cobra on 19-Jul-2023