Skip to content
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

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

Closed
swapnilbjadhav opened this issue Jun 10, 2020 · 2 comments · Fixed by #7296

Comments

@swapnilbjadhav
Copy link

Community Note

  • Please vote on this issue by adding a 👍 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

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
}
}

# 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.

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

  1. terraform plan

Important Factoids

References

  • #0000
@ghost
Copy link

ghost commented Jun 19, 2020

This has been released in version 2.15.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.15.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jul 14, 2020

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 ghost locked and limited conversation to collaborators Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants