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

lock.hcl together with used versions in required providers throw errors #1

Closed
cafecrema opened this issue Dec 5, 2022 · 1 comment · Fixed by #3
Closed

lock.hcl together with used versions in required providers throw errors #1

cafecrema opened this issue Dec 5, 2022 · 1 comment · Fixed by #3
Assignees
Labels
bug Something isn't working

Comments

@cafecrema
Copy link

Hi,

thanks for your code! It helps me to implement workload identities.

One thing I have to mention is, that with the hardcoded versions in azure -> in required providers and the terraform.lock.hcl in azure it stops after the terraform plan:

│ Error: expected "object_id" to be a valid UUID, got │ │ with azurerm_key_vault_access_policy.superadmin, │ on main.tf line 112, in resource "azurerm_key_vault_access_policy" "superadmin": │ 112: object_id = data.azurerm_client_config.current.object_id

After removing the versions out of the providers block and removing of the .lock.hcl, it works without errors with the hashicorp/azuread v2.31.0 and hashicorp/azurerm v3.34.0 versions.

So the solution is to remove the lock files here.

Cheers,
Michael

@cafecrema cafecrema changed the title Versions in required providers throws errors lock.hcl together with used versions in required providers throw errors Dec 5, 2022
@epomatti epomatti added the bug Something isn't working label Dec 5, 2022
@epomatti epomatti self-assigned this Dec 5, 2022
@epomatti epomatti mentioned this issue Dec 5, 2022
Merged
@epomatti epomatti linked a pull request Dec 5, 2022 that will close this issue
Merged
@epomatti
Copy link
Owner

epomatti commented Dec 5, 2022

@cafecrema appreciate you putting some of my code to use and also for reporting the issues.

It looks like Terraform evolved and the code stopped working. I bumped to newer versions it is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants