Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Support remote backend block in definition.json for spk infra scaffold #727

Closed
2 tasks done
yradsmikham opened this issue Oct 24, 2019 · 0 comments
Closed
2 tasks done
Assignees
Labels
effort - M less than one week effort enhancement New feature or request

Comments

@yradsmikham
Copy link
Contributor

yradsmikham commented Oct 24, 2019

As a:
Developer

I want:
to add backend variables to definition.json if they exists in Terraform templates

So that:
spk can support remote backend configuration

Describe the solution you'd like:

  • spk infra scaffold should scan for the existence of a backend.tf or backend.tfvars
  • Parse and generate backend variables to be part of definition.json

Describe alternatives you've considered:

Additional context:

{
    name: "discovery-cluster",
    source: "https://github.com/fabrikam/bedrock",
    template: "cluster/environments/fabrikam-single-keyvault",
    version: "v1.0",

    variables: {
        backend_storage_account_name: "tfstate"
        backend_container_name: "discoveryservice",
        agent_vm_count: 16,
        gitops_ssh_url: "[email protected]:fabrikam/discovery-cluster-manifests.git"
    }
}

or

{
    name: "discovery-cluster",
    source: "https://github.com/fabrikam/bedrock",
    template: "cluster/environments/fabrikam-single-keyvault",
    version: "v1.0",
    backend: {
        backend_storage_account_name: "tfstate"
        backend_container_name: "discoveryservice",
    }
    variables: {
        agent_vm_count: 16,
        gitops_ssh_url: "[email protected]:fabrikam/discovery-cluster-manifests.git"
    }
}

Does this require updates to documentation?:
Yes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort - M less than one week effort enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant