Skip to content

[Feature Request] Add data source to list all available images #1781

Description

@Manisha15

Problem description

I'm implementing a STACKIT compute resource integration for Foreman via foreman_opentofu . Foreman needs to discover all available images and present them to the user before provisioning.

Currently, stackit_image_v2 selects a single matching image, but there is no data source that returns the complete list of available images.

Proposed solution

Add a stackit_images data source that returns all images available to a project/region.

data "stackit_images" "available" {
  project_id = var.project_id
}

output "images" {
  value = data.stackit_images.available.images
}

Alternative solutions (optional)

The image list could be retrieved externally via the STACKIT API/CLI, but this requires additional logic outside Terraform/OpenTofu.

Additional information

Other compute resources supported by Foreman provide image enumeration, so having this capability would make the STACKIT integration consistent with them.

Activity

  1. changed the title [-]Add data source to list all available images[/-] [+][Feature Request] Add data source to list all available images[/+] on Sep 25, 2026
  2. marceljk commented on Sep 25, 2026

    @marceljk
    Contributor

    Hello @Manisha15,

    Thanks for the feature request! I've added a ticket for this to our internal backlog.
    We're always open to community contributions, feel free to submit a PR if you'd like to implement this datasource yourself.

    Best regards,
    Marcel from the STACKIT Developer Tools Team

  3. cgoetz-inovex commented on Oct 7, 2026

    @cgoetz-inovex
    Contributor

    Hi @Manisha15,

    we've implemented this in #1797

    Have a nice day!

  4. sbernhard commented on Oct 9, 2026

    @sbernhard

    Thank you very much for your super-fast response.

    This would be good to finish, too #1623 as it would improve foreman_opentofu if its possible to read the networks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions