GithubHelp home page GithubHelp logo

Comments (6)

mikhailshilkov avatar mikhailshilkov commented on August 11, 2024

Hi @GloverChris Thank you for reporting this.

To be clear, the idea of Explicit Providers still applies to Azure, it's just that the Azure providers don't have anything like region configuration at the moment.

Do I understand correctly that you are suggesting picking up another configuration property for this example? It might be tricky to find one that would apply consistently across many providers... Or do you have other suggestions?

from pulumi-hugo.

GloverChris avatar GloverChris commented on August 11, 2024

What I'm saying is that the region Args don't exist in the azure provider however you specify region of resources when you declare them. If you look at Virtual Network under Azure Native, you will see that you declare which region you want the Vnet there rather than having declaring the region separately as part of the provider class. This means that the azure provider has access to all regions regardless of the default region which technically makes default region declaration moot for azure projects. I hope I explained this well. 😅

Anyway I'm just saying we should call this out under explicit provider configuration in the link below as that example for declaring region for aws only applies to AWS and GCP. So best to have an "information" banner stating this doesn't apply to azure in order to avoid confusion.

https://www.pulumi.com/docs/intro/concepts/resources/#explicit-provider-configuration

Hi @GloverChris Thank you for reporting this.

To be clear, the idea of Explicit Providers still applies to Azure, it's just that the Azure providers don't have anything like region configuration at the moment.

Do I understand correctly that you are suggesting picking up another configuration property for this example? It might be tricky to find one that would apply consistently across many providers... Or do you have other suggestions?

from pulumi-hugo.

mikhailshilkov avatar mikhailshilkov commented on August 11, 2024

Yes, I understand all of that. Moreover, you can't set a region as a property of an explicit Azure provider.

I guess I'm failing to link this to a potential improvement in the docs. FWIW, the doc clearly uses the AWS provider and doesn't claim this example generalizes to other providers. How would you change the doc to make this more clear?

from pulumi-hugo.

GloverChris avatar GloverChris commented on August 11, 2024

Well it's in the general information section of how to use pulumi which is supposed to be agnostic to any specific language and Cloud Provider. This instead would then probably be better living in the AWS provider docs.

Yes, I understand all of that. Moreover, you can't set a region as a property of an explicit Azure provider.

I guess I'm failing to link this to a potential improvement in the docs. FWIW, the doc clearly uses the AWS provider and doesn't claim this example generalizes to other providers. How would you change the doc to make this more clear?

from pulumi-hugo.

interurban avatar interurban commented on August 11, 2024

Adding to the list for triage this week

from pulumi-hugo.

interurban avatar interurban commented on August 11, 2024

Thanks @GloverChris I know it's a long time coming but we've added more clarity to this example to help avoid the confusion you and the community noted, #3213

from pulumi-hugo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.