Home

Cloud

This page lists the safe and destructive patterns in the AWS, Azure, Google Cloud, and Infrastructure as Code shell guard packs. See Shell Tool for how these patterns are evaluated.

AWS

Pack ID: cloud.aws

Guards against destructive AWS operations

Destructive patterns

Rule IDReasonSuggestionConfidence
cloud.aws.terminate_instancesPermanently destroys EC2 instancesUse aws ec2 stop-instances to stop without terminatingHigh
cloud.aws.delete_dbPermanently deletes database instancesCreate a final snapshot first with --final-db-snapshot-identifierHigh
cloud.aws.s3_recursive_deleteRecursively deletes S3 objects or force-removes bucketsUse aws s3 ls to inspect first; delete specific prefixesHigh
cloud.aws.iam_deleteRemoves IAM identities and their permissionsUse aws iam list-* to review before deletionMedium

Azure

Pack ID: cloud.azure

Guards against destructive Azure operations

Destructive patterns

Rule IDReasonSuggestionConfidence
cloud.azure.vm_deletePermanently destroys virtual machinesUse az vm deallocate to stop without deletingHigh
cloud.azure.group_deleteDeletes a resource group and all resources within itUse az group show to review contents firstHigh
cloud.azure.storage_deleteDeletes storage blobs or containersUse az storage blob list to review contents firstMedium

Google Cloud

Pack ID: cloud.gcp

Guards against destructive GCP operations

Destructive patterns

Rule IDReasonSuggestionConfidence
cloud.gcp.compute_deletePermanently destroys Compute Engine instancesUse gcloud compute instances stop to stop without deletingHigh
cloud.gcp.storage_deleteRecursively deletes Cloud Storage objects or force-removes bucketsUse gsutil ls to inspect first; delete specific objectsHigh
cloud.gcp.sql_deletePermanently deletes Cloud SQL instancesCreate a backup first with gcloud sql backups createHigh

Infrastructure as Code

Pack ID: cloud.iac

Guards against destructive IaC operations

Destructive patterns

Rule IDReasonSuggestionConfidence
cloud.iac.terraform_destroyDestroys all managed infrastructure resourcesUse terraform plan -destroy to preview what will be destroyedHigh
cloud.iac.pulumi_destroyDestroys all managed infrastructure resourcesUse pulumi preview --diff to review changes firstHigh

This documentation was generated from rust/agents/src/tool_guard/shell/packs/cloud.rs.

© 2026 Stencila