Skip to content

[AS] Support System Disk Encryption for AS Configuration #3208

@uli-schneider

Description

@uli-schneider

Terraform provider version

Terraform v1.5.7
on darwin_arm64

  • provider registry.terraform.io/hashicorp/random v3.7.2
  • provider registry.terraform.io/opentelekomcloud/opentelekomcloud v1.36.52

Affected Resource(s)

opentelekomcloud_as_configuration_v1

Terraform Configuration Files

resource "opentelekomcloud_as_configuration_v1" "as_configuration_web" {
  scaling_configuration_name = "as-web-${local.dp_name}-${var.region}"

  instance_config {
    flavor = "s3.medium.1"
    image  = opentelekomcloud_ims_image_v2.ims_ecs_web.id
    key_name  = var.ssh_keypair_name
    security_groups = [opentelekomcloud_networking_secgroup_v2.sg_web.id]
    #
    disk {
      size        = 40
      volume_type = "GPSSD"
      disk_type   = "SYS"
      kms_id      = opentelekomcloud_kms_key_v1.kms_project_key.id
    }
  }
}

Debug Output/Panic Output


│ Error: error creating ASConfiguration: Bad request with: [POST https://as.eu-de.otc.t-systems.com/autoscaling-api/v1/4e9980bb829f42b4bb3f791b516de915/scaling_configuration], error message: {"error":{"code":"AS.1092","message":"The system disk is not support encrypted.","encoded_authorization_message":null,"details":null}}

│ with opentelekomcloud_as_configuration_v1.as_configuration_web,
│ on tf_B2220_AS_Webserver.tf line 18, in resource "opentelekomcloud_as_configuration_v1" "as_configuration_web":
│ 18: resource "opentelekomcloud_as_configuration_v1" "as_configuration_web" {

Steps to Reproduce

  1. terraform apply

Expected Behavior

Create a Encrypted System Disk.

API is available and also possible in console.
https://docs.otc.t-systems.com/auto-scaling/api-ref/apis/as_configurations/creating_an_as_configuration.html#as-06-0201

Actual Behavior

See terraform error message.

Important Factoids

None

References

See API documentation.

Metadata

Metadata

Assignees

Labels

otc-issueBlocked by OTC issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions