Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract kyma-on-btp terraform resources into its own reusable module #1

Closed
4 of 5 tasks
Cortey opened this issue Aug 29, 2024 · 0 comments
Closed
4 of 5 tasks
Assignees

Comments

@Cortey
Copy link
Contributor

Cortey commented Aug 29, 2024

Description
Extract "kyma-on-btp" terraform resources into its own reusable module so that it could be sourced from github whenever its needed in CI pipelines (here or here)

AC

  • module should be hosted on new dedicated github.com publicly
  • module should define its input parameters (see hint below)
  • module should include all necessary providers
  • module should be used in sample kyma-automation-demo pipeline
  • module should be used in integration tests of docker registry kyma module

Reason
Terraform resources for kyma-on-btp should be extracted into its own reusable discrete unit so that it could be reused and sourced from a single source on github.
This way it would become a maintainable tool that helps customers managing lifecycle of kyma resources during continuous integration of their applications.
kyma-project/kyma#18198

Attachments
https://github.tools.sap/otters/kyma-automation-demo/tree/main/tf
https://developer.hashicorp.com/terraform/language/modules
https://dev.to/lechnerc77/-mind-the-terraform-modules-3p11

Hint
Parameters should allo passing:

  • global account id(required)
  • subaccount id (mutually exclusive with new subaccount name; one of them must be defined)
  • new subaccount name (mutually exclusive with subaccount id; one of them must be defined)
  • new subaccount region (only required when new subaccount name is not empty )
  • technical user credentials (usr/pswd pair or token is required)
  • provider subaccount id (optional)
  • btp backend url (optional, defaults to https://cli.btp.cloud.sap/)
  • custom sap ias tenant's name (required)
  • sap ias domain (optional, defaults to accounts.ondemand.com)
  • kyma plan (required)
  • kyma region (required)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants