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/16
kubectl apply --dry-run=server -f hardened-pod.yaml
kubectl apply --dry-run=server -f hardened-pod.yaml   # passes authentication, authorization and admission without storing
kubectl apply --dry-run=client -f pod.yaml   # local check only

Related terms

Taught in

References

Certification courses