dry run
Sending a real request in a check-only mode, so the system reports whether it would succeed without actually making the change.
In more detail
A dry run tests permissions and the shape of a request against the real system, which a local check cannot. It changes nothing, reserves nothing and says nothing about cost. Tools such as the AWS CLI, kubectl and Terraform offer their own forms of it.
Examples
aws ec2 create-vpc --dry-run --cidr-block 10.0.0.0/16 returns DryRunOperation if allowed and UnauthorizedOperation if not.aws ec2 create-vpc --dry-run --cidr-block 10.0.0.0/16kubectl apply --dry-run=server -f hardened-pod.yamlkubectl apply --dry-run=server -f hardened-pod.yaml # passes authentication, authorization and admission without storingkubectl apply --dry-run=client -f pod.yaml # local check onlyRelated terms
- IAM policy simulator — A free IAM tool that tells you whether a policy, or an existing identity, would allow a given action on a given resource, without doing anything.
- AWS CLI — Amazon's command-line tool for calling AWS services from a terminal or script.
- kubectl apply — The kubectl command that creates or updates Kubernetes objects to match the manifests you give it.
- admission controller — A Kubernetes API server plugin that checks or changes each request after authentication and authorization, before the object is stored.
- Pod Security Admission — The built-in Kubernetes admission controller that applies Pod Security Standards to each namespace according to its labels.
- kubectl — The command-line tool for talking to a Kubernetes cluster's API server: creating, reading, changing and deleting objects.
Taught in
- Two Hours, Twenty Tasks: Exam Strategy — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Jobs And CronJobs That Behave — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Helm: Install, Upgrade And Roll Back — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Kustomize Bases, Overlays And Patches — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Requests, Limits And Quotas — Certified Kubernetes Application Developer (CKAD) Exam Prep
- ServiceAccounts And Tokens — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Services And Empty Endpoints — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- Troubleshooting: Forbidden Requests And Admission Rejections — Kubernetes: Production-Grade Container Orchestration
- Package The Service As A Helm Chart — Kubernetes: Production-Grade Container Orchestration
- Kustomize Base And Dev And Prod Overlays — Kubernetes: Production-Grade Container Orchestration
- Least Privilege In IAM And RBAC — Application Security & Threat Modeling for Engineers