Could not connect to the endpoint URL: "https://s3.local.amazonaws.com/"

0

I am trying to run the command "aws s3 ls" and I'm getting the following response:

Could not connect to the endpoint URL: "https://s3.local.amazonaws.com/"

I have verified that the credentials I have set up in my credentials file have programmatic access.
My config file is set up with the following values:
[default]
region = us-east-1
output = json

I have tried setting up a new user and creating new credentials.
I have tried uninstalling and reinstalling the cli.
Ping request could not find host s3.local.amazonaws.com.
I did get a response from ping s3.us-east-1.amazonaws.com.

Does anyone know what I am doing wrong or what else I can try?

mjh1975
질문됨 3년 전1088회 조회
1개 답변
0

Just after I posted this I noticed that I had an environment variable set up causing the region to be set as "local".
I removed the AWS_DEFAULT_REGION environment variable and it is now connecting to the correct endpoint URL using the region from my config file.

mjh1975
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠