How do I send an email through SES with temporary SES-specific credentials?

前端 未结 2 1807
谎友^
谎友^ 2021-01-25 13:25

This page shows how to send an email using SES. The example works by reading the credentials from ~/.aws/credentials, which are the root (yet \"shared\"??) credenti

2条回答
  •  鱼传尺愫
    2021-01-25 14:26

    Two options...

    You could create IAM User credentials with the appropriate permissions and put them in the ~./aws/credentials file. Then your application will find them and use them to connect with Amazon SES.

    Or, your application could use a set of IAM User credentials to call assume_role() (which is an IAM command). This will return a set of temporary credentials that could be used with Amazon SES. However, if you are going to provide a set of credentials that will be used to call assume_role(), then you may as well just use those credentials directly with Amazon SES.

    An IAM User can be used for people OR applications.

提交回复
热议问题