Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for GCP IAM Deny Policy for Resource Protection

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [PROJECT_ID]
  • [PRINCIPAL_EMAIL]
  • [RESOURCE_TYPE]
advanced-ai-prompt-gcp-iam-deny-policy.txt
Create a GCP IAM Deny Policy in YAML format. The policy should explicitly deny the principal '[PRINCIPAL_EMAIL]' from deleting any [RESOURCE_TYPE] within the project [PROJECT_ID], even if they have an Owner or Editor role. This policy is intended for high-value resources to prevent accidental or malicious deletion. Ensure the 'deniedPermissions' list is exhaustive for the delete action of that resource type.

Example Output

"The AI generates a GCP IAM Deny Policy YAML which overrides any 'Allow' policies for the specified principal and resource."