AWS Script to Retrieve SMTP Credentials

Замовник: AI | Опубліковано: 09.12.2025
Бюджет: 250 $

I already have an AWS access-key/secret-key pair and region string bundled like this: AKIATIPH2VUYR7EITX74:2PvqOYCEvCN0xo7klurvkERtxTNggFAJLmyCelzy:us-east-1 AKIA2UC263LSRJGQZA5D:tV8j+259xikOXut35Oi3VxEMCMc8ewc4QbBxvwBR:eu-central-1:50000.0 AKIA2UC263LSRJGQZA5D:tV8j+259xikOXut35Oi3VxEMCMc8ewc4QbBxvwBR:eu-west-1:50000.0 AKIA2UC263LSRJGQZA5D:tV8j+259xikOXut35Oi3VxEMCMc8ewc4QbBxvwBR:eu-west-2:50000.0 AKIA2UC263LSRJGQZA5D:tV8j+259xikOXut35Oi3VxEMCMc8ewc4QbBxvwBR:us-east-1:50000.0 AKIA2UC263LSRJGQZA5D:tV8j+259xikOXut35Oi3VxEMCMc8ewc4QbBxvwBR:us-east-2:50000.0 AKIA2UC263LSRJGQZA5D:tV8j+259xikOXut35Oi3VxEMCMc8ewc4QbBxvwBR:us-west-1:50000.0 AKIA2UC263LSRJGQZA5D:tV8j+259xikOXut35Oi3VxEMCMc8ewc4QbBxvwBR:us-west-2:50000.0 What I still need is a compact script that turns any such trio into the corresponding Amazon SES SMTP username and password automatically. Core objective • Take the key, secret and region as input (hard-coded or via CLI V2 flags/environment variables—your choice). • Generate the SES-compatible SMTP credentials by following Amazon’s documented HMAC-SHA256 conversion. • Print or return the SMTP username and password in plain text so they can be dropped straight into an email client or server config. Important notes – The script will be interacting with AWS only; no third-party clouds are involved. – It is strictly a fetch operation; we are not updating or validating existing SMTP credentials. – Language preference is Python, but Bash, Go or Node are also fine if you can keep dependencies minimal (boto3 or aws-sdk-go/npm packages are acceptable). – Please make the code readable and include brief inline comments plus a one-paragraph usage note. Deliverable 1. Source file of the script. 2. Quick README or example command showing input and resulting SMTP creds. I can test the output against my AWS account immediately, so as soon as the script echoes valid credentials the job is done.