Skip to content

Commit

Permalink
cleanup provider (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus authored Nov 26, 2024
1 parent ebfccb2 commit dc28d33
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 26 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Terraform module that creates kyma runtime in SAP BTP platform.

Terraform module for Kyma uses the following terraform [providers](provider.tf), which must be ensured by the root module:
- `SAP/btp`
- `massdriver-cloud/jq`
- `hashicorp/http`
- `salrashid123/http-full`

Expand Down Expand Up @@ -77,9 +76,22 @@ BTP_KYMA_REGION = "westeurope"
3. In the `main.tf`, ensure the [required providers](#required-providers) and include the Kyma module as a child module.

```tf
terraform {
required_providers {
btp = {
source = "SAP/btp"
}
http = {
source = "hashicorp/http"
}
http-full = {
source = "salrashid123/http-full"
}
}
}
provider "jq" {}
provider "http" {}
provider "http-full" {}
provider "btp" {
globalaccount = var.BTP_GLOBAL_ACCOUNT
cli_server_url = var.BTP_BACKEND_URL
Expand All @@ -89,7 +101,7 @@ provider "btp" {
}
module "kyma" {
source = "git::https://github.com/kyma-project/terraform-module.git?ref=v0.2.0"
source = "git::https://github.com/kyma-project/terraform-module.git?ref=v0.3.0"
BTP_KYMA_PLAN = var.BTP_KYMA_PLAN
BTP_KYMA_REGION = var.BTP_KYMA_REGION
BTP_NEW_SUBACCOUNT_NAME = var.BTP_NEW_SUBACCOUNT_NAME
Expand All @@ -114,13 +126,6 @@ output "domain" {
value = module.kyma.domain
}
//Use the kubeconfig output if you want to create/read k8s resources via [kubernetes terraform provider](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs)
<!-- provider "kubernetes" {
cluster_ca_certificate = base64decode(local.kubeconfig.clusters.0.cluster.certificate-authority-data)
host = local.kubeconfig.clusters.0.cluster.server
token = local.kubeconfig.users.0.user.token
} -->
```

Expand Down
4 changes: 0 additions & 4 deletions examples/kyma-on-btp-new-sa/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ terraform {
btp = {
source = "SAP/btp"
}
jq = {
source = "massdriver-cloud/jq"
}
http = {
source = "hashicorp/http"
}
Expand All @@ -20,7 +17,6 @@ terraform {
}


provider "jq" {}
provider "http" {}
provider "http-full" {}

Expand Down
4 changes: 0 additions & 4 deletions examples/kyma-on-btp-reuse-sa/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ terraform {
btp = {
source = "SAP/btp"
}
jq = {
source = "massdriver-cloud/jq"
}
http = {
source = "hashicorp/http"
}
Expand All @@ -16,7 +13,6 @@ terraform {
}


provider "jq" {}
provider "http" {}
provider "http-full" {}

Expand Down
5 changes: 0 additions & 5 deletions examples/kyma-on-btp-with-custom-oidc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ terraform {
btp = {
source = "SAP/btp"
}
jq = {
source = "massdriver-cloud/jq"
}
http = {
source = "hashicorp/http"
}
Expand All @@ -19,8 +16,6 @@ terraform {
}
}


provider "jq" {}
provider "http" {}
provider "http-full" {}

Expand Down
3 changes: 0 additions & 3 deletions provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ terraform {
source = "SAP/btp"
version = ">= 1.6.0"
}
jq = {
source = "massdriver-cloud/jq"
}
http = {
source = "hashicorp/http"
version = ">= 3.4.5"
Expand Down

0 comments on commit dc28d33

Please sign in to comment.