hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.65k forks source link

Support for Java_21 for azurerm_spring_cloud_java_deployment #26061

Open justinp-kr opened 5 months ago

justinp-kr commented 5 months ago

Is there an existing issue for this?

Community Note

Description

Add Java 21 support for Azure Spring Cloud deployment

New or Affected Resource(s)/Data Source(s)

azurerm_spring_cloud_java_deployment

Potential Terraform Configuration

resource "azurerm_spring_cloud_java_deployment" "my_service_deployment" {
  name                = "my-service-deployment"
  spring_cloud_app_id = azurerm_spring_cloud_app.my_service.id
  instance_count      = 1
  jvm_options         = "-XX:+PrintGC"

  quota {
    cpu    = "1"
    memory = "1Gi"
  }

  runtime_version = "Java_21"

  environment_variables = {}
}

References

https://github.com/hashicorp/terraform-provider-azurerm/issues/15814

https://learn.microsoft.com/en-us/cli/azure/spring/app/deployment?view=azure-cli-latest

Chambras commented 5 months ago

Hi @justinp-kr great suggestion. I can work on that!!!

Tom-Van-Asch commented 2 months ago

@Chambras when will this be available?

Chambras commented 1 month ago

@Tom-Van-Asch turned out to be more work than I expected :) I submitted an internal PR that would allow us to add support for java_21 and future versions easily. The current implementation was not using the right sdk :(

Tom-Van-Asch commented 1 week ago

@Chambras do you have a status update?