我正在使用python通过AWS Simple Email Service发送电子邮件。AWS SES - 连接到boto集而不暴露代码中的访问密钥
为了尽可能提供最好的安全性,我想 做一个boto SES连接,而不会在代码中暴露我的访问密钥。
现在我建立这样
ses = boto.ses.connect_to_region(
'us-west-2',
aws_access_key_id='<ACCESS_KEY>',
aws_secret_access_key='<SECRET_ACCESS_KEY>'
)
连接有没有办法做到这一点不暴露在脚本中我的快捷键?
我会建议你使用boto3。你可以看到如何配置[这里](http://boto3.readthedocs.io/en/latest/guide/configuration.html)。 –
您是在EC2机器还是非EC2机器上执行python代码? – helloV