IAM Roles on Amazon EC2
To use WP Offload SES with Amazon SES you need to define an AWS access key and secret key. This can be stored in the database or defined in your wp-config.php
file like this:
define( 'WPOSES_AWS_ACCESS_KEY_ID', '********************' );
define( 'WPOSES_AWS_SECRET_ACCESS_KEY', '**************************************' );
or preferably with
define( 'WPOSES_SETTINGS', serialize( array(
'access-key-id' => '********************',
'secret-access-key' => '**************************************',
) ) );
However, if you host your WordPress site on an EC2 instance you won’t necessarily want to distribute your access credentials onto the instance, and will want to make use of IAM Roles.
After creating an IAM role you can use the WPOSES_AWS_USE_EC2_IAM_ROLE
constant to tell WP Offload SES not to ask for or require the access keys:
define( 'WPOSES_AWS_USE_EC2_IAM_ROLE', true );