Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Terraform-Based IAM Role for Snowflake Integration
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[SNOWFLAKE_AWS_IAM_USER_ARN] - ✦
[SNOWFLAKE_AWS_EXTERNAL_ID] - ✦
[S3_BUCKET_ARN]
advanced-ai-prompt-snowflake-storage-integration.txt
Generate the Terraform code for an AWS IAM Role that allows Snowflake to access data in [S3_BUCKET_ARN]. The Trust Policy must use [SNOWFLAKE_AWS_IAM_USER_ARN] as the principal and require [SNOWFLAKE_AWS_EXTERNAL_ID]. The inline policy should grant 's3:Get*', 's3:List*', and 's3:Put*' only to the specified bucket and its objects. Follow the official Snowflake security integration best practices.
Example Output
"The AI provides HCL code for 'aws_iam_role' and 'aws_iam_policy' with a secure external ID trust relationship."