gruntwork-io / terratest

Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
https://terratest.gruntwork.io/
Apache License 2.0
7.46k stars 1.32k forks source link

Add support to Azure CI to skip provider registration. #622

Open rguthriemsft opened 4 years ago

rguthriemsft commented 4 years ago

Currently terraform provider will try to register resource managers it needs to operate against azure by default. If the user/service principal does not have owner rights to the subscription this will fail. Terraform supports adding a flag to provider block to skip registration to support contributor access. CI needs to add ARM_SKIP_PROVIDER_REGISTRATION to the env variables so a user can enable this for their CI to function correctly.

tsalright commented 4 years ago

That comment looks good Richard. Thank you for logging this and getting a PR in place for it it. It makes much more sense to use the Environment Variable for this than adding it to the provider on each of the scripts.

brikis98 commented 4 years ago

Was this resolved by #624?