Open
Description
I'm trying to use non-standard regions in my LocalStack, using ALLOW_NONSTANDARD_REGIONS as mentioned on the config page.
Originally I tried passing that to LocalStack like this:
ALLOW_NONSTANDARD_REGIONS=1 localstack start -d
...but it gave me a warning saying that I should prefix it with LOCALSTACK_ if I want it to be passed to the docker container.
I've tried that below, and can verify with docker inspect that it's being set in the environment, but when I try to create a queue in a non-existent region, it creates it in us-east-1 instead, and I'm not sure if that's the expected behavior that's not documented or if there's a bug.
~ $ LOCALSTACK_ALLOW_NONSTANDARD_REGIONS=1 localstack start -d
__ _______ __ __
/ / ____ _________ _/ / ___// /_____ ______/ /__
/ / / __ \/ ___/ __ `/ /\__ \/ __/ __ `/ ___/ //_/
/ /___/ /_/ / /__/ /_/ / /___/ / /_/ /_/ / /__/ ,<
/_____/\____/\___/\__,_/_//____/\__/\__,_/\___/_/|_|
- LocalStack CLI: 4.4.0
- Profile: default
- App: https://app.localstack.cloud
[11:03:06] starting LocalStack in Docker mode \U0001f433 localstack.py:512
preparing environment bootstrap.py:1322
configuring container bootstrap.py:1330
starting container bootstrap.py:1340
[11:03:07] detaching bootstrap.py:1344
~ $ docker inspect localstack-main | grep ALLOW
"LOCALSTACK_ALLOW_NONSTANDARD_REGIONS=1",
~ $ awslocal --region the-north-pole sqs create-queue --queue-name my-north-pole-queue
{
"QueueUrl": "http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/my-north-pole-queue"
}
~ $