CAPVEX

Amazon Q For Code to Deploy a User and Secret With Password | by Teri Radichel | Cloud Security | Jun, 2025

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Security Automation (Pre-AI). The Code.

⚙️ AI Automation. The Code.

🔒 Related Stories: Cybersecurity | Penetration Tests

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TLDR;

A lot when sideways creating this script. Although I find AI is generally helping me write code faster — you have to know what it’s doing, test it, and check it for unwanted additions or subtractions.

Do not blindly create IAM resources with AI.

Run this script to create:

  • A User
  • A secret with a randomly generated password that only the user and the person deploying the script can see that is encrypted with the specified KMS key.

cd ~
rm -rf ai-cfn
git clone https://github.com/2ndSightLab/ai-cfn.git
cd ai-cfn/iam-user
chmod 700 run.sh
./run.sh

run.sh

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button