Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for AWS VPC Endpoint Policy for S3
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[VPC_ID] - ✦
[ALLOWED_ACCOUNT_ID] - ✦
[BUCKET_NAME]
advanced-ai-prompt-vpc-endpoint-s3-policy.txt
Draft a VPC Endpoint Policy for Amazon S3. The policy should only allow traffic originating from [VPC_ID] to access the bucket [BUCKET_NAME]. Furthermore, it must deny any requests that do not originate from [ALLOWED_ACCOUNT_ID]. This ensures that even if a user in the VPC has credentials for a different AWS account, they cannot exfiltrate data to an external S3 bucket through this endpoint.
Example Output
"The AI outputs a JSON endpoint policy using the 'aws:PrincipalAccount' and 'aws:SourceVpc' conditions."