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

Replace deprecated skip_provider_registration property #56

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

dawidstrozak
Copy link
Contributor

@dawidstrozak dawidstrozak commented Dec 11, 2024

Jira link

N/A

Change description

Replace skip_provider_registration deprecated property which was used to skip full 68 provider registration by Terraform.
Newer Terraform versions replaced this with resource_provider_registrations which has 5 different registration modes as recommended by Microsoft.
Statement resource_provider_registrations="none" is equivalent to previous skip_provider_registration="true" - it means no resource providers are registered.

For more details read: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide?product_intent=terraform#improved-resource-provider-registration

Testing done

I tested this change by implementing it in my lab Terraform which is based on this repo and running the pipeline successfully:
https://dev.azure.com/hmcts/PlatformOperations/_build/results?buildId=711337&view=results

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • (N/A) README and other documentation has been updated / added (if needed)
  • (N/A) tests have been updated / new tests has been added (if needed)
  • (NO) Does this PR introduce a breaking change

@dawidstrozak dawidstrozak merged commit c543d6b into master Dec 11, 2024
1 check passed
@dawidstrozak dawidstrozak deleted the fix/replace-deprecated-providers-reg-property branch December 11, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants