首页 > 解决方案 > 执行 aws s3 ls s3://[mybucketname:)] 时出现 InsecureRequestWarning --no-verify-ssl

问题描述

aws s3 ls s3://umd-stg-view --no-verify-ssl
/home1/aaaa/.local/lib/python3.5/site-packages/urllib3/connectionpool.py:1004:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is
strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,

我已经完成了获取 s3 存储桶的列表,但由于上面的错误消息而失败。起初,我也设置了 aws configure

$ aws configure list
  Name                    Value             Type    Location
  ----                    -----             ----    --------
profile                <not set>             None    None
access_key     ****************IRMK shared-credentials-file    
secret_key     ****************CGXM shared-credentials-file    
region                us-east-1      config-file    ~/.aws/config

我添加了“--no-verify-ssl”选项...

如何使用 aws cli 访问 aws s3 存储桶?

标签: amazon-web-services

解决方案


推荐阅读