Skip to content

CLI to export TerraformConfiguration #12

Description

@kron4eg

kubeterra export command to read from cluster when given TerraformConfiguration object name.

Dump contents of TerraformConfiguration:

  • spec.configuration -> main.tf
  • spec.values -> terraform.tfvars
  • if case when volumes reference secrets and/or configMaps and not references in env/envFrom, fetch their contents as files

Dump contents of TerraformState:

  • spec.state -> terraform.tfstate

Once created, print instructions on how to proceed next.

  • tell about ENV credentials that might be needed
  • tell about possible need to adjust paths to file if any

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions