1 個回答
- 最新
- 最多得票
- 最多評論
0
Hello,
Looking at the error Unable to find a region via the region provider chain
it appears that your code/script is unable to retrieve the AWS region specification from the available configuration files or environment within the docker container.
As per this article , the below command is used while starting the docker container
docker run -it -v ~/.aws:/root/.aws:ro --name glue_jupyter amazon/aws-glue-libs:glue_libs_1.0.0_image_01 bash
This will mount the .aws folder from your local filesystem onto the docker container. Usually, this .aws folder has the region specification set in a .config file. A sample config file looks like below
cat ~/.aws/config
[default]
region = us-east-1
You can find more about the aws configuration files here
相關內容
- 已提問 4 個月前
- 已提問 3 個月前
- AWS 官方已更新 3 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 3 年前
I'm running into same error with profile passed and aws credentials passed. AWS credentials include:
[profile dev] region = us-east-1 output = json powershell script: $JUPYTER_WORKSPACE_LOCATION=$pwd -replace "\", "/" $AWS_PROFILE = "dev" docker run -it -v ~/.aws:/home/glue_user/.aws -v ${JUPYTER_WORKSPACE_LOCATION}:/home/glue_user/workspace/jupyter_workspace/ -e DISABLE_SSL=true -e AWS_PROFILE=$AWS_PROFILE --rm -p 4040:4040 -p 18080:18080 -p 8998:8998 -p 8888:8888 --name glue_jupyter_lab amazon/aws-glue-libs:glue_libs_4.0.0_image_01 /home/glue_user/jupyter/jupyter_start.sh