Skip to content

Create Terraform template for SAP BTP kyma instance #2474

@kwiatekus

Description

@kwiatekus

Description

Implement a command that would template terraform files (see examples). This command should not create any cloud resources, but should only render tf files locally (main.tf, .tfvars).

User should be able to proceed with terraform cli using the generated files to manage kyma instance on SAP BTP platform (terraform init,terraform apply, terraform destroy)

Idea:

kyma alpha terraform template --output-dir foo --env-context {path to env files} --btp-globalaccount {exemplary env passed as commend option}
/foo/main.tf generated
/foo/.tfvars generated

Next steps:
Install required tf modules and providers with terraform init
Apply on SAP BTP Platform via `terraform apply`

Reasons

Kyma team maintains Kyma Terraform module which minimises configuration effort to provision kyma environment on the SAP BTP Platform via the SAP BTP Terraform provider
For developers, who prefer keeping infra as code, simplifying the terraform path is an added value.

SAP BTP Terraform provider and the official

Attachments

https://github.com/kyma-project/terraform-module/tree/main/examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliRelated to all activities around CLI

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions