{"id":16163312,"url":"https://github.com/gregorwolf/terraform-trial","last_synced_at":"2025-04-07T04:27:39.532Z","repository":{"id":254803456,"uuid":"806763879","full_name":"gregorwolf/terraform-trial","owner":"gregorwolf","description":"Terraform setup for BTP Trial","archived":false,"fork":false,"pushed_at":"2025-04-04T15:34:43.000Z","size":93,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T15:36:09.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregorwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-27T21:15:48.000Z","updated_at":"2025-04-04T15:34:46.000Z","dependencies_parsed_at":"2025-02-13T08:46:49.202Z","dependency_job_id":"755f53f9-ad80-4a64-a5d9-7903cab20e93","html_url":"https://github.com/gregorwolf/terraform-trial","commit_stats":null,"previous_names":["gregorwolf/terraform-trial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fterraform-trial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fterraform-trial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fterraform-trial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2Fterraform-trial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregorwolf","download_url":"https://codeload.github.com/gregorwolf/terraform-trial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247591842,"owners_count":20963411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T02:35:14.900Z","updated_at":"2025-04-07T04:27:39.525Z","avatar_url":"https://github.com/gregorwolf.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Setup for BTP Trial\n\nRight now this terraform setup creates:\n\n- Import the subaccount named 'trial'\n- Add entitlements for\n  - Alert Notification\n  - SAP Build Work Zone, standard edition\n  - SAP Cloud Identity Services\n  - HANA Cloud tools\n  - HANA Cloud\n- Create an instance of\n  - SAP Build Work Zone, standard edition\n  - SAP Cloud Identity Services\n  - HANA Cloud tools\n  - HANA Cloud\n- Add trust to the SAP Cloud Identity Services instance\n\n## References\n\n- [Terraform Provider for SAP BTP](https://registry.terraform.io/providers/SAP/btp/latest/docs)\n- [btp-terraform-samples](https://github.com/SAP-samples/btp-terraform-samples/)\n\n## Prerequisites\n\n### BTP Trial account\n\nMust be created in region `us10`.\n\n### Terraform\n\nRegister at [Terraform Cloud](https://app.terraform.io/signup/account) and create a new organization. Navigate to this organization and open the settings. For the Default Execution Mode choose `Local`:\n\n![Screenshot of the section Default Execution Mode](./assets/default-execution-mode.png)\n\n### GitHub Codespace\n\nCreate a new GitHub Codespace by clicking on the green button in the repository, choose the tab Codespaces and click on create. This will create a new Codespace with the required tools. If you want to use the Codespace in your local VS Code you can configure this as a preference using https://github.com/settings/codespaces.\n\n### Setup inside the Codespace\n\nCreate a new branch with the name of your terraform organization.\n\nChange the file `terraform.tf` and replace the `organization` with your organization name.\n\nCreate .env file in the root directory with the following content:\n\n```bash\nTF_VAR_subdomain='\u003cYour-Subdomain\u003e'\nTF_VAR_admins='[\"\u003cYour-E-Mail-Address\u003e\"]'\nTF_VAR_hana_system_password='\u003cYour-HANA-System-Password\u003e'\nTF_VAR_cf_organization_guid=''\nTF_VAR_cf_space_guid=''\nBTP_ENABLE_SSO='true'\n```\n\nTo fill TF_VAR_cf_organization_guid and TF_VAR_cf_space_guid navigate to the dev space of your BTP Trial account and copy the URL. It contains the GUIDs of the organization and space. The URL looks like this:\n\n```\nhttps://account.hanatrial.ondemand.com/trial/#/globalaccount/\u003cGUID\u003e/subaccount/\u003cGUID\u003e/org/\u003cTF_VAR_cf_organization_guid\u003e/space/\u003cTF_VAR_cf_space_guid\u003e/applications\n```\n\nthen run\n\n```bash\nexport $(xargs \u003c.env)\n```\n\nto load the environment variables. Now you can run the terraform commands.\n\n## First time usage\n\n\u003e [!IMPORTANT]\n\u003e When you use this repository for the first time on a freshly created BTP Trial account then you need to uncomment the import lines in the `main.tf` file and insert your Subaccount ID.\n\n## Usage\n\nAuthenticate to Terraform Cloud:\n\n```bash\nterraform login\n```\n\nInstall the required providers:\n\n```bash\nterraform init\n```\n\nSee what will be created:\n\n```bash\nterraform plan\n```\n\nCreate the resources:\n\n```bash\nterraform apply\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorwolf%2Fterraform-trial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregorwolf%2Fterraform-trial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorwolf%2Fterraform-trial/lists"}