Git Product home page Git Product logo

btp-terraform-samples's Introduction

Samples for the 'Terraform provider for SAP BTP'

REUSE status

Description

This repository provides you with samples on how to use the Terraform provider for SAP BTP for various use cases.

Note: The application of the Terraform configurations we provide in this repository can create cost on your side depending on the sample and the contained resources. Please be aware of that and destroy the resources if no longer needed to avoid unnecessary costs on your side.

Get started

You have three options to get started. You find the details in the Get started section.

The Terraform Provider for SAP BTP

If you want to learn more about the Terraform provider for SAP BTP then the official documentation in the Terraform registry is a perfect place to start. In case you want to dive deeper into the provider, you can also check out the source code on GitHub.

Support, Feedback, Contributing

❓ - If you have a question you can ask it here in GitHub Discussions or in the SAP Community.

🐞 - If you find a bug, feel free to create a bug report.

πŸ’‘ - If you have an idea for improvement or a feature request, please open a feature request.

For more information about how to contribute, the project structure, and additional contribution information, see our Contribution Guidelines.

Code of Conduct

Members, contributors, and leaders pledge to make participation in our community a harassment-free experience. By participating in this project, you agree to always abide by its Code of Conduct.

Licensing

Copyright 2024 SAP SE or an SAP affiliate company and btp-terraform-samples contributors. See our LICENSE for copyright and license information. Detailed information, including third-party components and their licensing/copyright information, is available via the REUSE tool.

How to obtain support

Create an issue in this repository if you find a bug or have questions about the content.

For additional support, ask a question in SAP Community.

Contributing

If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.

License

Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

btp-terraform-samples's People

Contributors

abiskop avatar cherians avatar dependabot[bot] avatar fabianleh avatar jglander avatar lechnerc77 avatar mahesh0431 avatar marcelschork avatar maurice-3er avatar missra21 avatar navyakhurana avatar ospo-bot[bot] avatar prajin-op avatar rui1610 avatar rui8472 avatar v0lkc avatar wope4455 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

btp-terraform-samples's Issues

Link Checker Report

Summary

Status Count
πŸ” Total 175
βœ… Successful 173
⏳ Timeouts 0
πŸ”€ Redirected 0
πŸ‘» Excluded 0
❓ Unknown 0
🚫 Errors 2

Errors per input

Errors in released/discovery_center/mission_4024/README.md

Errors in in-development/uc_kyma_gitops_fluxcd/README.md

Link Checker Report

Summary

Status Count
πŸ” Total 175
βœ… Successful 172
⏳ Timeouts 0
πŸ”€ Redirected 0
πŸ‘» Excluded 0
❓ Unknown 0
🚫 Errors 3

Errors per input

Errors in released/discovery_center/mission_4024/README.md

Errors in released/dsag/betriebstag2024/README.md

Errors in released/usecases/kyma_devcontainer_runtime/README.md

[BUG] Missing closing quotes for -var-file option in use case documentation

Is there an existing issue for this?

  • I have searched the existing issues

What type of issue are you facing

documentation issue

Describe the bug

In the README for the use cases "subaccount setup" and "multi provider setup" there are closing quotes missing for the -var-file option being used in several places.

  terraform apply -var-file="users.tfvars

Expected Behavior

  terraform apply -var-file="users.tfvars"

Steps To Reproduce

No response

Add screenshots to help explain your problem

No response

Additional context

No response

Link Checker Report

Summary

Status Count
πŸ” Total 21
βœ… Successful 19
⏳ Timeouts 0
πŸ”€ Redirected 0
πŸ‘» Excluded 0
❓ Unknown 0
🚫 Errors 2

Errors per input

Errors in in_development/dev_test_prod_setup/README.md

  • [ERR] file:///home/runner/work/btp-terraform-samples/btp-terraform-samples/released/subaccount_dev_setup | Failed: Cannot find file

Errors in README.md

Link Checker Report

Summary

Status Count
πŸ” Total 26
βœ… Successful 25
⏳ Timeouts 0
πŸ”€ Redirected 0
πŸ‘» Excluded 0
❓ Unknown 0
🚫 Errors 1

Errors per input

Errors in in-development/uc_subaccount_setup/README.md

  • [ERR] file:///home/runner/work/btp-terraform-samples/btp-terraform-samples/in-development/uc_subaccount_setup/terraform.tfvars | Failed: Cannot find file
    Full Github Actions output

[FEATURE] use resource "random_id" instead of local variable to create random IDs in all sample code

What area do you want to see improved?

All samples in this repository.

Is your feature request related to a problem? Please describe.

When using a local variable to create a random id, this creates issues when running Β΄terraform planΒ΄ or Β΄terraform applyΒ΄. This happens as the new run also creates a new random id in the local variable.

Describe the solution you would like

All samples should use the generic terraform resource "random_id" instead of using a local variable that creates a random string/id.
This is documented here: https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id

Describe alternatives you have considered

No response

Additional context

No response

Mention Origin of Space Users

What area do you want to see improved?

terraform provider

Is your feature request related to a problem? Please describe.

We are trying to add Space users, but right now we sap Default Identity and Corporate Identity is being setup. Hence same user can exist in both Default and Corporate identity on a sub account.

While creating space users we get the below error
The user exists in multiple origins. Specify an origin for the requested user from: 'sap.ids', 'corporate-ids'

We don't have a way to mention the origin/identity provider for user.

Describe the solution you would like

We would like assign the right identity provider.

Describe alternatives you have considered

No response

Additional context

No response

[QUESTION] Couldn't find serviceplan_id to create a terraform resource for service instance

Is there an existing issue for this?

  • I have searched the existing issues

What type of issue are you facing

documentation issue

Describe the bug

I work for SAP and my email id is [email protected]
In the process of automation, I wanted to create a terraform resource of service instance and I have looked a the offical documentaion, https://registry.terraform.io/providers/SAP/btp/latest/docs/resources/subaccount_service_instance
I clouldn't find the required serviceplan_id string anywhere . I have used data source btp_subaccount_service_plan https://registry.terraform.io/providers/SAP/btp/latest/docs/data-sources/subaccount_service_plan
I have tried multiple ways to find and get serviceplan_id string but I could'nt find it.
I already have created a terraform resource for entitlement and assigned it to particular subaccount.
As per my knowledge, the serviceplan_id should be there in the terraform state file after assigning a entitlement to a subaccount. But its missing there and I just tried to use catalog_id and serviceoffering_id instead of serviceplan_id , that too didn't work

Expected Behavior

After assigning a entitlement to a subaccount, I expect the serviceplan_id will be clearly visible in the UI or atleast in the terraform statefile.

Steps To Reproduce

  1. Create a terraform "btp_subaccount_entitlement resource "alert_notification_free"
  2. Try to create a terraform "btp_subaccount_service_instance" "alert_notification_free" resource, but I could'nt create it as I didn't find serviceplan_id string which is required

Add screenshots to help explain your problem

No response

Additional context

https://registry.terraform.io/providers/SAP/btp/latest/docs/resources/subaccount_service_instance
https://registry.terraform.io/providers/SAP/btp/latest/docs/resources/subaccount_service_instance

[BUG] Cleanup tfvars

Is there an existing issue for this?

  • I have searched the existing issues

What type of issue are you facing

bug report

Describe the bug

  • Add *.tfvars to .gitignore to follow best practices. Otherwise customers might by accidentally committed
  • Adjust code of samples
  • Adjust documentation of samples

Expected Behavior

n/a

Steps To Reproduce

n/a

Add screenshots to help explain your problem

n/a

Additional context

n/a

Link Checker Report

Summary

Status Count
πŸ” Total 60
βœ… Successful 56
⏳ Timeouts 0
πŸ”€ Redirected 0
πŸ‘» Excluded 0
❓ Unknown 0
🚫 Errors 4

Errors per input

Errors in released/discovery_center/mission_4024/README.md

Errors in released/usecases/kyma_devcontainer_runtime/README.md

Errors in in-development/uc_kyma_gitops_fluxcd/README.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.