Skip to content

stackit_dns_record_set name not optional #1092

@MrZep

Description

@MrZep

Description

STACKIT DNS Record set sets name as required, although its optional in portal.

Steps to reproduce

resource "stackit_dns_record_set" "this" {
  project_id = var.project_id
  zone_id    = stackit_dns_zone.this.zone_id
  name       = "test" #here
  type       = "A"
  ttl        = 60 #seconds
  records    = [data.kubernetes_service.traefik_lb.status[0].load_balancer[0].ingress[0].ip]
}
  1. Run terraform ...
  2. Get an error when deliting the name or give an empty string

Actual behavior

│ Error: Missing required argument

│ on resources.test.tf line 128, in resource "stackit_dns_record_set" "this":
│ 128: resource "stackit_dns_record_set" "this" {

│ The argument "name" is required, but no definition was found.

Expected behavior

Create a stackit_dns_record_set without a name.

Environment

OpenTofu v1.9.0
on linux_amd64

  • provider registry.opentofu.org/hashicorp/helm v3.1.1
  • provider registry.opentofu.org/hashicorp/kubernetes v2.38.0
  • provider registry.opentofu.org/stackitcloud/stackit v0.71.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions