Dieses Repository stellt eine provider-native Terraform-Referenz fuer Replatforming nach STACKIT Cloud Foundry bereit.
Der Stack umfasst:
- SCF-Organisation und technischer Org-Manager via STACKIT Provider
- Spring-Music-App auf Cloud Foundry
- Redis und RabbitMQ als STACKIT Managed Services plus Credentials
- Cloud Foundry Service Instances fuer App-Binding
- Observability-Instanz auf STACKIT
cp env.tfvars.example terraform.tfvars- Werte in
terraform.tfvarsanpassen terraform initterraform planterraform apply
- Terraform >= 1.5
- Zugriff auf ein STACKIT Projekt mit SCF/Redis/RabbitMQ/Observability Berechtigung
- Provider-Authentifizierung fuer
stackitcloud/stackitueber Umgebungsvariablen oder Service Account Key - Erreichbarkeit der Cloud Foundry API fuer das Zielprojekt
- SCF-Bootstrap folgt dem offiziellen Pattern:
stackit_scf_organizationdata.stackit_scf_platformstackit_scf_organization_managerprovider "cloudfoundry"wird mit diesen Outputs konfiguriert
- Redis/RabbitMQ werden als STACKIT Instanzen mit separaten Credentials erzeugt.
- Fuer Cloud Foundry werden dedizierte Service Instances erstellt und in die App gebunden.
- Die Route wird ueber die gemeinsame Domain
cf_domainerstellt.
setup_observability: Observability-Instanz erstellensetup_database: Redis und RabbitMQ inkl. Credentials und CF-Service-Instanzen erstellensetup_workload: Spring-Music-App und Route deployen
spring_music_route: Oeffentliche App-URLscf_org_id: SCF-Organisationcf_space_id: Cloud Foundry Spaceredis_instance_idundrabbitmq_instance_idobservability_instance_id
terraform destroy
Hinweis: Beim Destroy werden zuerst App und CF-Ressourcen entfernt, danach die zugrundeliegenden Managed Services.