Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Description
I have a requirement to first create an Elastic Cloud type resource in Azure. I then need to customize the deployment via another module and set the correct scaling and deployment type.
Unfortunately, Elastic Cloud has the limitation to set either the Elastic Version or the Scaling/Deployment Type. This means I would have to first create the deployment using this module and then customize this deployment twice.
It would be easier if I could set the version of Elastic when I create it in Azure, which I can also do through the UI. To achieve this I currently have to use a workaround:
resource "azapi_resource" "ec" {
type = "Microsoft.Elastic/monitors@2022-07-01-preview"
name = var.deployment_name
location = var.location
parent_id = data.azurerm_resource_group.main.id
tags = var.tags
body = jsonencode({
properties = {
userInfo = {
emailAddress = "max.muster@muster.invalid"
}
version = data.ec_stack.latest.version
}
sku = {
name = "ess-monthly-consumption_Monthly"
}
})
response_export_values = ["*"]
}
However, I would rather use the azurerm_elastic_cloud_elasticsearch module at this point.
Is there an existing issue for this?
Community Note
Description
I have a requirement to first create an Elastic Cloud type resource in Azure. I then need to customize the deployment via another module and set the correct scaling and deployment type.
Unfortunately, Elastic Cloud has the limitation to set either the Elastic Version or the Scaling/Deployment Type. This means I would have to first create the deployment using this module and then customize this deployment twice.
It would be easier if I could set the version of Elastic when I create it in Azure, which I can also do through the UI. To achieve this I currently have to use a workaround:
However, I would rather use the azurerm_elastic_cloud_elasticsearch module at this point.
New or Affected Resource(s)/Data Source(s)
azurerm_elastic_cloud_elasticsearch
Potential Terraform Configuration
References
No response