1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
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