Skip to main content

tnctl create configuration

tnctl create configuration

Can be used to package up the terraform module for consumption

Synopsis

Used to automatically generate a compatible terraform configuration from a given terraform module. The source for the module can be a local directory, a git repository, s3 bucket or so forth. As long as you have the credentials and required CLI binaries installed.

Generate a terraform configuration a Github repository $ tnctl create configuration github.com/terraform-aws-modules/terraform-aws-vpc

Generate a terraform configuration from a local directory $ tnctl create configuration /path/to/terraform-aws-vpc

tnctl create configuration SOURCE [OPTIONS] [flags]

Options

      --enable-auto-approval     Automatically approve the configuration
--enable-defaults Indicates any defaults with values from the terraform module are included (default true)
--enable-drift-detection Detect drift in the configuration (default true)
--enable-sensitive Indicates any sensitive variables from the module should be placed into secrets (default true)
-h, --help help for configuration
--name string The name of the configuration resource (default "test")
--namespace string The namespace for the configuration (default "default")
--provider string Name of the credentials provider to use
--secret string Name of the secret any outputs from the resource are kept
--source string The path to the terraform module (default ".")

Options inherited from parent commands

      --config string   Path to the configuration file (default "HOME/.tnctl.yaml")
--verbose Enable verbose logging

SEE ALSO