You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In azurerm_healthcare_service the argument access_policy_ids is no longer supported it gives error and prompts to use access_policy_object_ids which is a required field now
#7281
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
Debug Output
Error: Missing required argument
on module-azure-fhir-api\moduleazurefhirapi.tf line 27, in resource "azurerm_healthcare_service" "fhir_api_settings":
The argument "access_policy_object_ids" is required, but no definition was
found.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Jul 14, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
version = "=2.0.0"
Affected Resource(s)
azurerm_healthcare_service
Terraform Configuration Files
provider "azurerm"{
subscription_id=var.azure_subscription_id
version = "=2.0.0"
features{}
}
data "azurerm_client_config" "current" {}
data "azuread_application" "example" {
name = "example-app"
}
create a resource group
resource "azurerm_resource_group" "azure_terraform_resource_group" {
name = var.resource_group
location = var.location
tags = {
environment = var.tags_environment
team = var.tags_team
}
}
create a azure api for fhir resource
resource "azurerm_healthcare_service" "fhir_api_settings" {
name = var.azurerm_healthcare_service_name
resource_group_name = azurerm_resource_group.azure_terraform_resource_group.name
location = azurerm_resource_group.azure_terraform_resource_group.location
kind = var.azurerm_healthcare_service_kind
cosmosdb_throughput = "2000"
#access_policy_object_ids = [data.azuread_application.example.object_id]
tags = {
environment = var.tags_environment
team = var.tags_team
}
authentication_configuration {
authority = "https://login.microsoftonline.com/${data.azurerm_client_config.current.tenant_id}"
audience = "https://${var.azurerm_healthcare_service_name}.azurehealthcareapis.com"
smart_proxy_enabled = var.azurerm_healthcare_service_smart_proxy_enabled
}
cors_configuration {
allowed_headers = var.allow_headers
allowed_methods = var.allow_methods
allowed_origins = var.allow_origin
max_age_in_seconds = var.allow_max_age
allow_credentials = var.allow_credentials
}
}
Debug Output
Error: Missing required argument
on module-azure-fhir-api\moduleazurefhirapi.tf line 27, in resource "azurerm_healthcare_service" "fhir_api_settings":
The argument "access_policy_object_ids" is required, but no definition was
found.
Panic Output
Expected Behavior
It Should be optional as described in the documentation:
https://www.terraform.io/docs/providers/azurerm/r/healthcare_service.html
Actual Behavior
Error
Steps to Reproduce
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: