-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Data source for azurerm_cdn_frontdoor_secret errors on plan since version 3.59.0 #22124
Comments
@DexterWatson Thank you for opening this issue. I was unable to reproduce this error in v3.59.0 nor v3.61.0 with the given configuration. Are you able to provide more of your configuration so that I may be able to reproduce the issue? |
Hey @rcskosir! Apologies for the late response, I can't send the actual values we are using, but I have extracted the problem code into a small module to simulate the issue. Please see below.
I have tested it with just this code, and still get the issue. │ Error: setting 'secret': Invalid address to set: []string{"secret", "0", "expiration_date"} We are using the latest azurerm provider, 3.61.0. I have tested this on various versions of terraform, including v1.3.5, v1.4.6 and v1.5.0. If I update I hope this is enough information to go off. Kind regards, |
Hi @WodansSon, have you been able to replicate the issue we are seeing in this ticket? Kind regards |
This comment was marked as duplicate.
This comment was marked as duplicate.
I have a simmilar issue after updating azurerm provider to version 3.59.0. As a workaround I just created frontdoor secret by concatenation:
If you don't want to do the concatenation or you need some other attributes, you can use the Azure REST API and wrap it into your own module: |
Any updates @WodansSon on this issue we are still experiencing this issue and look for a fix rather than a workaround? |
This comment was marked as duplicate.
This comment was marked as duplicate.
I've just hit this exact issue using data |
I'm facing same issue while trying to retrieve secret Id from existing AFD to pass it to new custom domain, using data block,, passed all information mentioned in TF documentation below but getting same error data "azurerm_cdn_frontdoor_secret" "example" { |
Seeing the same error using this data call - @WodansSon is there any update on a fix? |
Thanks for taking the time to submit this issue. It looks like this has been resolved as of #26982. As such, I am going to mark this issue as closed. If that is not the case, please provide additional information including the version in which you are still experiencing this issue, thanks! |
Is there an existing issue for this?
Community Note
Terraform Version
1.4.6
AzureRM Provider Version
Affected Resource(s)/Data Source(s)
azurerm_cdn_frontdoor_secret
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Plan generated successfully.
Actual Behaviour
Error is thrown for each azurerm_cdn_frontdoor_secret data source.
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: