title: HTTPSConnectionPool(host='s3-us-west-1b.amazonaws.com', port=443): Max retries exceeded with url
body: <p>I am trying to copy a file from my aws ec2 instance to S3 bucket folder, but i am getting error</p>
  
  <p>Here is the command sample
  <strong>aws s3 cp /home/abc/icon.jpg s3://mybucket/myfolder</strong></p>
  
  <p>This the error i am getting</p>
  
  <p><strong>upload failed: ./icon.jpg to s3://mybucket/myfolder/icon.jpg HTTPSConnectionPool(host='s3-us-west-1b.amazonaws.com', port=443): Max retries exceeded with url: /mybucket/myfolder/icon.jpg (Caused by : [Errno -2] Name or service not known)</strong></p>
  
  <p>I have already configured the config file for aws cli command line</p>
  
  <p>Please suggest the solution to this problem</p>