question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecate "provider.region" in favor of "provider.defaultRegion"

See original GitHub issue

Use case description

Many (and it was my case for long long time) assume that provider.region property represents final region to be used in deployment. While in reality it’s the value of last resort, which is used if region is not provided via other means (--region CLI param).

Technically this property represents a default region fallback (if it’s not specified from command line)

To clarify this confusion. I propose to rename provider.region to provider.defaultRegion

Proposed solution

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vinothmdevcommented, Jan 20, 2021

Hi @medikoo Thanks for checking. I did not start working on this. please let @WillHof take it, if possible #8684 as well. Sorry for the delay I was occupied with other priorities.

0reactions
medikoocommented, Dec 8, 2021

As this change will be breaking for many services, I’m downgrading it to needs feedback. It’s not in consideration at this point

Read more comments on GitHub >

github_iconTop Results From Across the Web

terraform tells me The argument "region" is required, but was ...
I'm running into the same issue whenever I execute terraform plan inside a new project. Terraform v0.12.12 + provider.aws v2.33.0.
Read more >
Provider Configuration | Terraform - HashiCorp Developer
Some providers require you to configure them with endpoint URLs, cloud regions, or other settings before Terraform can use them. This page documents...
Read more >
com.amazonaws.regions (AWS SDK for Java - 1.12.360)
Loads region information from the shared AWS config file. ... Default region provider chain used when no explicit region is supplied to a...
Read more >
Google Provider Configuration Reference - Terraform Registry
If another project is specified on a resource, it will take precedence. region - (Optional) The default region to manage resources in. If...
Read more >
Changing the default region or zone - Compute Engine
When you use the Google Cloud console to create regional or zonal resources like addresses and instances, Compute Engine sets the region and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found