Getting started with StackIT cloud image 5

Getting started with StackIT cloud

Quick Take

STACKIT is a European cloud option worth evaluating when an organization wants stronger control over infrastructure and provider dependencies. This hands-on account describes customer accounts, projects, service identities, Terraform authentication and provisioning, including a PostgreSQL database. The experience shows that basic cloud infrastructure can be deployed with familiar tools, while its service catalog and operational features differ from those of large hyperscalers. Sovereignty should be assessed alongside application requirements, security responsibilities, available services and operating costs, rather than inferred from provider nationality alone.

What does European cloud sovereignty mean when you actually deploy infrastructure? After our first experiments with Oracle EU Sovereign Cloud, we wanted to try a provider with European ownership and infrastructure. STACKIT, part of Schwarz Group, was an interesting candidate. This article records what we learned about identities, Terraform, networking and managed databases during our January 2026 proof of concept.

STACKIT Cloud introductory banner

About STACKIT

STACKIT is the cloud provider of Schwarz Group, the European retail group behind Lidl and Kaufland. According to STACKIT, its infrastructure is based in Germany and Austria, and it develops cloud services with an emphasis on open-source technologies and interoperability. That does not tell us that the entire platform runs on OpenStack, so I would not infer its underlying architecture from the portal experience. During our January 2026 evaluation, new services appeared frequently. At that time, creating a customer account outside the German-speaking DACH region required assistance from STACKIT Sales. Onboarding and eligibility should be checked again when starting a new project.

Identity and project access

Our STACKIT account had a Customer Account for administration and billing, with projects underneath it for cloud resources. Administrators could assign access at customer-account or project level using roles appropriate to the work. For automation, we created a dedicated service account with permissions scoped to the project. A service account is a non-human identity; it should not be treated as a substitute for a person’s login. STACKIT describes the distinction and permission model in its service-account documentation.

Available services: January 2026 snapshot

This is the service catalogue we saw during our January 2026 experiment, not a continuously maintained product list. STACKIT regularly adds or changes services, so verify the current catalogue, supported regions, maturity and service levels before making an architecture decision:

  • IaaS VM (called compute engine)
  • Networking
  • Storage: Object storage (S3 compatible), NFS, Block storage
  • Databases (and search): PostgreSQL, Mariadb, MSSQL server, OpenSearch, Redis, MongoDB
  • App platforms: Kubernetes, Cloud Foundry, managed git, container registry
  • Logging + Monitoring: Observability + Logme: both based on open source solutions
  • AI model services
  • Workflows (based on Apache Airflow)
STACKIT Cloud service catalog, first panel
STACKIT Cloud service catalog, second panel
STACKIT Cloud service catalog, third panel
STACKIT Cloud service catalog, fourth panel

Getting started with the STACKIT Portal

Once STACKIT had created our Customer Account, we could create a project and grant the required administrative access. We used the STACKIT Portal to create a service account for Terraform and assign it a role within the project. When using a service-account key, store it securely and restrict access to the minimum required permissions. The key-based approach describes our PoC; for longer-lived automation, review STACKIT’s current authentication options and key-rotation procedures.

We could provision resources through the STACKIT Portal, Terraform and the STACKIT CLI. For our infrastructure-as-code experiment, Terraform was the most relevant choice because it made the configuration reviewable and repeatable. Before provisioning, confirm the selected region, expected charges and available service features in the portal or current pricing documentation.

Infrastructure as code and remote state

We started by creating a STACKIT Object Storage bucket for the Terraform state file. The S3-compatible backend can store Terraform state on STACKIT, as the official developer-tools FAQ confirms. In this PoC we created the bucket manually; the configuration below illustrates our approach rather than a production-ready security baseline.

terraform {
  backend "s3" {
    bucket = "amis-terraform-state"
    key    = "AMISProject2Public"
    endpoints = {
      s3 = "https://object.storage.eu01.onstackit.cloud"
    }
    region                      = "eu01"
    skip_credentials_validation = true
    skip_region_validation      = true
    skip_s3_checksum            = true
    skip_requesting_account_id  = true
    secret_key                  = "xxx"
    access_key                  = "yyy"
  }
}

provider "stackit" {
  default_region = "eu01"
  service_account_key_path = "/path/to/StackIT/stackit-service-account.json"
  enable_beta_resources = true
}

With this configuration, Terraform can use an S3-compatible object-storage backend on STACKIT. We enabled beta resources because some features in our experiment required them. Do not commit real access keys into Terraform files. The example uses placeholders, but a production pipeline should obtain credentials from an appropriate secure source, restrict access to the state bucket and protect the state file, which can contain sensitive values. STACKIT also documents temporary credentials via service-account mappings for supported workloads.

Networking and virtual machines

We created a network in the project and then attached a virtual machine. Networking and public IP allocation can affect the monthly bill; check the current pricing and configuration instead of assuming that every new network automatically requires a public IP address.

resource "stackit_network" "netwerk-app" {
  project_id       = var.stackit_project_id
  name              = "Netwerk-App"
  ipv4_nameservers  = ["1.1.1.1", "8.8.8.8"]
  ipv4_prefix       = "10.94.1.0/24"
  routed            = true
  labels            = {
    "status" = "POC"
  }
}

A project_id is a required argument on most resources. We can add nameservers, an IPv4 prefix and some labels to the network. 

Create a network security group to set some base access rules so we can access our VM:

resource "stackit_security_group" "app_sg" {
    project_id = var.stackit_project_id
    name = "Application_security_group"
}

resource "stackit_security_group_rule" "inbound_from_amis_office" {
  project_id = var.stackit_project_id
  security_group_id = stackit_security_group.app_sg.security_group_id
  direction = "ingress"
#  protocol = {
#    name = "tcp"
#  }
#  port_range = {
#    min = 22
#    max = 22
#  }
  ip_range = "192.168.32.6/32"
}

resource "stackit_security_group_rule" "inbound_from_martijns_home" {
  project_id = var.stackit_project_id
  security_group_id = stackit_security_group.app_sg.security_group_id
  direction = "ingress"
  ip_range = "127.0.0.1/32"
}

resource "stackit_security_group_rule" "inbound_from_internal" {
  project_id = var.stackit_project_id
  security_group_id = stackit_security_group.app_sg.security_group_id
  direction = "ingress"
  ip_range = "10.94.0.0/16"
}

Security note for this proof of concept: The example above contains private and loopback source addresses such as 192.168.32.6/32 and 127.0.0.1/32. Those are not public office or home IP addresses; they only make sense with the relevant private routing, and loopback does not represent a remote client. The sample also comments out its protocol and port restrictions. Before using it, configure security-group ingress rules for the exact network path and ports required, and test that unnecessary access is denied.

To create a VM, we first needed a network interface, an SSH public key and a suitable boot image. The following snippets describe the components we used during the PoC; review variable names, resource attributes and provider versions before combining them into a deployable configuration.

data "stackit_image_v2" "Rocky" {
    project_id = var.project_id
    name = "Rocky Linux 10"
}

# create a network interface:
resource "stackit_network_interface" "interface" {
    project_id = var.project_id
    network_id = var.network_id
    security_group_ids = var.security_groups_ids
}

# a ssh public key object:
resource "stackit_key_pair" "mykey" {
  name       = "martijns_key"
  public_key = chomp(file("path/to/my/pubkey.pub"))
}

Combining this all into a server resource

resource "stackit_server" "server" {
  project_id = var.project_id
  name       = var.server_name
  boot_volume = {
    size              = var.boot_disk_size
    source_type       = "image"
    source_id         = data.stackit_image_v2.Rocky.image_id
    performance_class = var.boot_disk_perf_class
  }
  availability_zone = var.availability_zone
  machine_type      = var.machine_type
  keypair_name      = stackit_key_pair.mykey.name
  network_interfaces = [stackit_network_interface.interface.network_interface_id]
  lifecycle {
    ignore_changes = [ 
      boot_volume.source_id 
    ]
  }
}

Finally, if we need a public ip address added for a server (to be able to reach it):

resource "stackit_public_ip" "publicip" {
  project_id = var.stackit_project_id
  network_interface_id = stackit_network_interface.interface.network_interface_id
}
output "public_ip_address" { value = stackit_public_ip.publicip.ip }

With these resources a complete VM with a public ip address is made available. StackIT provides documentation about the provided VM images, so read there how you can login to your VM.

Deploying PostgreSQL as a managed database

StackIT supports the creation of a database using Terraform. In the next example we create a PostgreSQL database instance, a database and a database user.  Lets go straight to the Terraform code:

resource "stackit_postgresflex_instance" "postgres1" {
    project_id = var.stackit_project_id
    name       = "postgres1"
    acl = [ "${module.my-compute-01.public_ip_address}/32" ]
    replicas = 1
    version = 17
    backup_schedule = "0 10 * * *"
    flavor = {
      cpu = 2
      ram = 4
    }
    storage = {
      class = "premium-perf2-stackit"
      size = 5
    }
}

resource "stackit_postgresflex_user" "mydb_user" {
    project_id = var.stackit_project_id
    instance_id = stackit_postgresflex_instance.postgres1.instance_id
    username = "myuser"
    roles = [ "login" ]
}

resource "stackit_postgresflex_database" "mydb" {
    project_id = var.stackit_project_id
    instance_id = stackit_postgresflex_instance.postgres1.instance_id
    owner = "myuser"
    name = "mydb"
    depends_on = [ stackit_postgresflex_user.mydb_user ]
}

output "db_user_pass" { 
    value = stackit_postgresflex_user.mydb_user.password
    sensitive = true
}

output "database_hostname" {
  value = stackit_postgresflex_user.mydb_user.host
}

The example creates a small PostgreSQL database environment and exposes connection details as Terraform outputs. Marking a password output as sensitive hides it from ordinary CLI output, but does not remove it from the Terraform state. Protect state storage and access accordingly, and avoid broad database access-control lists. For a production workload, confirm backups, availability, lifecycle operations and restore procedures rather than treating a successful deployment as proof that the service meets those requirements.

Unfortunately, unlike other clouds, there is no (as far as we could see) easy way to stop a PostgreSQL database and start it again when needed. 

What to check before a production deployment

Our PoC answered one important question: we could provision familiar infrastructure components on STACKIT using Terraform. Production readiness requires a different set of checks. I would evaluate four areas before moving a critical workload:

  • Identity and secrets: Use least-privilege service accounts, secure credential delivery and protected Terraform state; test key rotation and access revocation.
  • Networking: Validate actual source IP ranges, required ports, private connectivity and public exposure, including what happens if an operator or service loses access.
  • Resilience and operations: Confirm backup and restore, availability zones, monitoring, maintenance procedures and database lifecycle controls for the selected region and service tier.
  • Service fit and cost: Check current product availability, support arrangements, prices, Terraform-provider compatibility and the effort required to move away if requirements change.

These checks apply to more than STACKIT. Our Oracle EU Sovereign Cloud experiment shows a different way to organise EU data residency and operations. For the broader dependency question, see Sovereign cloud: for fear of the kill switch. Cloud sovereignty is about practical control, not a label on a product page.

Conclusion: what we learned

Our experiment showed that a European-owned cloud can support familiar infrastructure-as-code practices, including compute, networking and a managed PostgreSQL database. That makes STACKIT worth assessing where European control, open interfaces and a suitable service portfolio matter. It is not automatically the right choice for every workload: the available managed services, operational responsibilities, network design, resilience, costs and contractual requirements still determine the fit. The practical conclusion is to test the services you actually need, not to choose a provider on geography alone.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.