feat(scf): Add STACKIT Cloud Foundry (#991)
* onboard STACKIT Cloud Foundry resources/datasource
This commit is contained in:
parent
fcc7a99488
commit
a8e874699f
32 changed files with 3700 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
data "stackit_scf_organization" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
org_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
data "stackit_scf_organization_manager" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
org_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
data "stackit_scf_platform" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
platform_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
18
examples/resources/stackit_scf_organization/resource.tf
Normal file
18
examples/resources/stackit_scf_organization/resource.tf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
resource "stackit_scf_organization" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example"
|
||||
}
|
||||
|
||||
resource "stackit_scf_organization" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example"
|
||||
platform_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
quota_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
suspended = false
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing scf organization
|
||||
import {
|
||||
to = stackit_scf_organization.import-example
|
||||
id = "${var.project_id},${var.region},${var.org_id}"
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
resource "stackit_scf_organization_manager" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
org_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
||||
# Only use the import statement, if you want to import an existing scf org user
|
||||
# The password field is still null after import and must be entered manually in the state.
|
||||
import {
|
||||
to = stackit_scf_organization_manager.import-example
|
||||
id = "${var.project_id},${var.region},${var.org_id},${var.user_id}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue