Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for AWS Secrets Manager Access with Tag Constraints
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[SECRET_ARN] - ✦
[REQUIRED_TAG_VALUE] - ✦
[USER_NAME]
advanced-ai-prompt-secrets-manager-abac.txt
Design an IAM policy for [USER_NAME] to access Secrets Manager. The user should only be allowed to call 'GetSecretValue' for the secret [SECRET_ARN] if the secret itself has a tag 'AccessLevel' set to '[REQUIRED_TAG_VALUE]'. Also, include a requirement that the user's source IP must be within the corporate CIDR. Output the policy in JSON.
Example Output
"The AI creates a policy using 'aws:ResourceTag/AccessLevel' to gate access to sensitive secrets based on metadata."