Skip to main content

wf search cloud-resource

wf search cloud-resource

Searches for cloud resources to consume

Synopsis

Searches the sources, determined by the configuration file for modules which match the required terms. Once selected the command will generate the Configuration CRD required to use the module as a source.

At present we support using the Terraform registry and GitHub user / organizations as a source for terraform modules.

Write the generated output to a file $ wf search cloud-resource -o filename

For private repositories on Github you will need to export your token to the environment variable GITHUB_TOKEN. $ export GITHUB_TOKEN=TOKEN

This command assumes credentials have already been setup. For the Terraform registry, nothing is required, but for private repositories on Github your environment must already be setup to git clone the repository.

wf search cloud-resource [OPTIONS] [flags]

Options

      --enable-defaults           Indicates any defaults with values from the terraform module are included
-h, --help help for cloud-resource
--name string Is the name of the resource to create
-o, --output string Optional filename to write the generated configuration (defaults: stdout)
-p, --provider string Limit the search only to modules with the given provider
-s, --source string Limit the scope of the search to a specific source
--source-namespace string The namespace within the source registry to scope the search

Options inherited from parent commands

      --debug              Debug / trace logging (default: false)
--force Force operation to happen (default: false)
--no-wait Do not wait for resources to provision
--profile string Use a profile other than your current - to change current: wf use profile NAME
--show-headers Display headers on table out (default true)
--verbose Verbose logging (default: false)
-w, --workspace string Workspace to use

SEE ALSO