alpha

Sets Terraform conventions for SAP Business Technology Platform: secure secrets handling, modular layout, maintainable HCL and CI-driven applies.
description: 'Terraform conventions and guidelines for SAP Business Technology Platform (SAP BTP).'
applyTo: '**/.tf, **/.tfvars, **/.tflint.hcl, **/.tf.json, **/*.tfvars.json'
Keep Terraform code minimal, modular, repeatable, secure, and auditable.
Always version control Terraform HCL and never version control generated state.
Mandatory:
sensitive = true.tfsec, trivy, checkov (pick at least one) in CI.Structure for clarity and speed:
outputs (mark sensitive when required).Aim for explicit > implicit.
locals for derived or repeated expressions to centralize logic.terraform fmt -recursive.Recommended structure:
my-sap-btp-app/
├── infra/ # Root module
│ ├── main.tf # Core resources (split by domain when large)
│ ├── variables.tf # Inputs
│ ├── outputs.tf # Outputs
│ ├── provider.tf # Provider config(s)
│ ├── locals.tf # Local/derived values
│ └── environments/ # Environment var files only
│ ├── dev.tfvars
│ ├── test.tfvars
│ └── prod.tfvars
├── .github/workflows/ # CI/CD (if GitHub)
└── README.md # Documentation
Rules:
main.tf / variables.tf into logically named fragments (e.g., main_services.tf, variables_services.tf).Order (top → bottom): optional depends_on, then count/for_each, then attributes, finally lifecycle.
depends_on ONLY when Terraform cannot infer dependency (e.g., data source needs entitlement).count for optional single resource; for_each for multiple instances keyed by a map for stable addresses.type, non‑empty description.object, map(string), etc.) over any.sensitive = true.description.terraform fmt -recursive (required in CI).tflint (and optionally terraform validate) in pre‑commit / CI.Mandatory:
description + type on all variables & outputs.README.md: purpose, prerequisites, auth model, usage (init/plan/apply), testing, rollback.terraform-docs (add to CI if possible).*.tfstate or backups.terraform validate (syntax & internal checks) before committing.terraform plan (requires auth & global account subdomain). Provide auth via env vars or tfvars; NEVER inline secrets in provider blocks.*.tftest.hcl) for module logic & invariants.Guidelines:
data "btp_subaccount_service_plan" and reference serviceplan_id from that data source.Example:
data "btp_subaccount_service_plan" "example" {
subaccount_id = var.subaccount_id
service_name = "your_service_name"
plan_name = "your_plan_name"
}
resource "btp_subaccount_service_instance" "example" {
subaccount_id = var.subaccount_id
serviceplan_id = data.btp_subaccount_service_plan.example.id
name = "my-example-instance"
}
Explicit dependencies (provider cannot infer):
resource "btp_subaccount_entitlement" "example" {
subaccount_id = var.subaccount_id
service_name = "your_service_name"
plan_name = "your_plan_name"
}
data "btp_subaccount_service_plan" "example" {
subaccount_id = var.subaccount_id
service_name = "your_service_name"
plan_name = "your_plan_name"
depends_on = [btp_subaccount_entitlement.example]
}
Subscriptions also depend on entitlements; add depends_on when the provider cannot infer linkage via attributes (match service_name/plan_name ↔ app_name).
Use the Terraform MCP Server for interactive schema lookup, resource block drafting, and validation.
apply.Reference the SAP BTP provider docs: https://registry.terraform.io/providers/SAP/btp/latest/docs for authoritative resource & data source fields. Cross‑check MCP responses with registry docs if uncertain.
Configuration:
terraform import (migration only).local-exec provisioners except for unavoidable integration gaps.Security:
Operational:
*.tfstate instead of outputs / data sources.All changes must flow through Terraform CLI + HCL – never mutate state manually.
© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com


Retro Christmas studio portrait in red knit and fur
Generates a retro 35mm-style Christmas studio portrait of a young woman in a red knit outfit and cream faux fur, lit by direct flash in front of a painted snowy backdrop.
image-prompt, gpt-image, portrait, woman, christmas, holiday, vintage, film-photography, film-grain, fashion, editorial, photorealistic, medium-shot, vertical-format, studio-lighting, winter, fashion-shoot, face-reference, negative-prompt, text-rendering, for-photographers, long-form

Doodle travel map of the United States
Draws a whimsical hand-inked doodle travel map shaped like any country, filled with tiny landmarks, food, animals and traditions, with its name hand-lettered into the art.
image-prompt, template, placeholders, gpt-image, doodle, ink-drawing, line-art, illustration, black-and-white, maps, landmarks, travel, geography, whimsical, vintage, cozy, typography, text-rendering, vertical-format, poster, for-artists

Wet close-up side profile with green-hazel eyes
Generates an extreme close-up, photorealistic side-profile portrait of a woman with wet hair, green-hazel eyes and visible skin pores, shot like an 85mm editorial beauty photo.
image-prompt, gpt-image, portrait, close-up, photorealistic, woman, beauty, editorial, soft-lighting, bokeh, cinematic, studio-lighting, natural-light, moody, rain, for-photographers, for-artists, macro, white-background, muted-colors, concise, advanced
Loading reviews…
Loading comments…