Obtain your credentials

Let's discover the steps to obtain the credentials

Amazon SES needs an access key, private key, and region.

Follow these steps to get your credentials:

Log in to the AWS Console

  1. Open your browser and navigate to the Amazon AWS Console.

  2. Log in with your credentials.

Access IAM (Identity and Access Management)

  1. From the services menu, select IAM under the Security, Identity, & Compliance section.

  2. In the IAM dashboard, click on Users in the left-hand navigation pane.

Create a New User

  1. Click the Add user button.

  2. Name the user (e.g., "SES-API-User") and check Programmatic access for the access type.

  3. Click on Permissions.

Attach Permissions

  1. Click Attach existing policies directly.

  2. Use the search bar and type "SES" to filter policies.

  3. Select the appropriate policy for your use, for instance AmazonSESFullAccess if you want to grant full access to this user.

  4. Click Next: Tags (you can add tags if you wish, but it's optional).

  5. Click Next: Review.

Create the User

  1. Review the information, and then click Create user.

  2. Once the user is created, you'll see a confirmation screen with the user's details. Make a note of the Access key ID (accessKey) and Secret access key (secretKey). Ensure you do this now as you won't be able to view the secret key again.

⚠️ Warning: Keep your accessKey and secretKey secure and never share them. These keys provide programmatic access to your AWS account. If compromised, someone could incur high costs on your account or access your resources.

Determine the Region

The region depends on where you've set up your SES service. To determine it:

  1. Go to the AWS console.

  2. In the top-right menu, next to your username, there's a dropdown indicating the current region, e.g., "EU (Paris) eu-west-3". Note down the region code, in this example, it's "eu-west-3".

Last updated