[Bug] support for REGION_NAME env variable should be more resilient to user friendly region names
See original GitHub issuemsal 4.35.1
REGION_NAME env variable does not seem reliable. Azure Functions sometimes populate it with the long region name (which is unusable).
The solution is:
string region = Environment.GetEnvironmentVariable("REGION_NAME")?.Replace(" ", string.Empty).?ToLower();
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >AWS_REGION environment variable doesn't work #3947
Here is my serverless.yml and a config without default region. service: aws-nodejs-testestes provider: name: ...
Read more >Main.tf not detecting TF_VARs I setup - Terraform
I have terraform code that follows the following structure. → main dir main.tf state.tf versions.tf → modules/eks dir eks.tf variables.tf
Read more >Environment variables and app settings in Azure App Service
Describes the commonly used environment variables, and which ones can be modified with app settings.
Read more >The Fly Runtime Environment · Fly Docs
When a Fly application is running, various information about the runtime environment is made available to it. Environment variables carry information that ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dannybtsai
“RegionName”: “East US 2”, “RegionShortName”: “eastus2”
@jmprieur, do you have an example of the REGION_NAME?