Oane

亚马逊 aws s3 Python 连接

  •  
  •   Oane · Feb 14, 2019 · 3291 views
    This topic created in 2670 days ago, the information mentioned may be changed or developed.

    python3 连接 aws s3 必须先配置 aws cli 吗? 能不能只导入 boto3 包 在代码里写 access_key 和 secret_key,region name? 可以的话 能不能给个 demo

    2 replies    2019-03-13 13:10:30 +08:00
    Oane
        1
    Oane  
    OP
       Feb 14, 2019
    成功了 但是官方是不是不推荐这样写啊
    infra
        2
    infra  
       Mar 13, 2019
    也能从配置文件或者环境变量中读 key 吧?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6118 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:12 · PVG 11:12 · LAX 20:12 · JFK 23:12
    ♥ Do have faith in what you're doing.