-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new resource for azurerm_function_app_host_keys #10902
Comments
This comment has been minimized.
This comment has been minimized.
@shep1987 Do you only need host keys/secrets or also/preferable function keys/secrets? We probably won't need a Like this: resource "azurerm_function_app_host_keys" "example" {
name = "example-host_key"
function_app_name = "example-function-app"
resource_group_name = azurerm_resource_group.example.name
value = "(secret)"
} resource "azurerm_function_app_slot_host_keys" "example" {
name = "example-function_slot_host_key"
function_name = "example-function"
function_app_slot_name = "slot"
function_app_name = "example-function-app"
resource_group_name = azurerm_resource_group.example.name
value = "(secret)"
} Or, for function keys: resource "azurerm_function_keys" "example" {
name = "example-function_key"
function_name = "example-function"
function_app_name = "example-function-app"
resource_group_name = azurerm_resource_group.example.name
value = "(secret)"
} and maybe this one as wel.. resource "azurerm_function_slot_keys" "example" {
name = "example-function_key"
function_name = "example-function"
function_app_slot_name = "slot"
function_app_name = "example-function-app"
resource_group_name = azurerm_resource_group.example.name
value = "(secret)"
} |
Hi @shep1987! Unfortunately my first attempt to create this resource ended in an issue on the Azure REST API specs repo. At the moment the Azure Go SDK (which we use to implement the Terraform resources) is generated based on these specs, and these specs are incorrect. |
@aristosvo I think we've finally gotten traction on getting the GoSDK fixed for making this resource possible |
Community Note
Description
Ability to manage host keys rather than just get them, this can be useful for swapping slots and needing to retain the same key across slots
Current workaround
New or Affected Resource(s)
NEW - azurerm_function_app_host_keys
NEW - azurerm_function_app_slot_host_keys
Potential Terraform Configuration
References
Link to Interface in go sdk
https://github.com/Azure/azure-sdk-for-go/blob/master/services/web/mgmt/2018-02-01/web/webapi/interfaces.go#L265
The text was updated successfully, but these errors were encountered: