terraform-azurerm-caf icon indicating copy to clipboard operation
terraform-azurerm-caf copied to clipboard

Bug report - Invalid data resource in application_gateway_application/http_listener.tf

Open joselcaguilar opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Community Note

  • 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

Version of the module you are using

5.6.1

Rover Version

No response

Terraform Version

1.3.1

AzureRM Provider Version

2.99.0

Affected Resource(s)/Data Source(s)

application_gateway_application

Terraform Configuration Files

https://github.com/joselcaguilar/aks-baseline-automation/tree/dece46a0a7f9b3488564024c5b14f6a6f2503f95

Expected Behaviour

Deploy the http_listener successfully, in IaC\terraform\.terraform\modules\caf\modules\networking\application_gateway_application\http_listener.tf the data resource: data.azurerm_key_vault_certificate.http_listener_manual_certs[each.key].id cannot be passed as SSL_CERT environment variable.

Actual Behaviour

(InvalidRequestFormat) Cannot parse the request.
Code: InvalidRequestFormat
Message: Cannot parse the request.
Exception Details:      (InvalidJsonReferenceFormat) Reference Id /subscriptions/***/resourceGroups/rg-bu0001a0008/providers/Microsoft.Network/applicationGateways/appgateway-re1-001/sslCertificates/https://secretsvault***.vault.azure.net/certificates/appgateway/*** is not formatted correctly. The Id is expected to reference resources of type applicationGateways/sslCertificates. Path properties.httpListeners[1].properties.sslCertificate.
        Code: InvalidJsonReferenceFormat
        Message: Reference Id /subscriptions/***/resourceGroups/rg-bu0001a0008/providers/Microsoft.Network/applicationGateways/appgateway-re1-001/sslCertificates/https://secretsvaultre1.vault.azure.net/certificates/appgateway/*** is not formatted correctly. The Id is expected to reference resources of type applicationGateways/sslCertificates. Path properties.httpListeners[1].properties.sslCertificate.

Steps to Reproduce

Just a terraform apply

Important Factoids

No response

References

No response

joselcaguilar avatar Oct 03 '22 23:10 joselcaguilar