Cluster and workload preflight
Verify AWS account, region, cluster context, namespace, release artifact, access rights, and cost boundaries before EKS deployment. Then inspect node readiness and add-on prerequisites. A kubeconfig entry can point at the wrong environment, so labels and directory names are insufficient safeguards. For example, aws sts get-caller-identity checks the AWS caller, while kubectl config current-context checks the Kubernetes target; both matter.
aws sts get-caller-identity checks the AWS caller, while kubectl config current-context checks the Kubernetes target; both matter.
Before a deployment, verify AWS caller identity, region, EKS cluster, kubectl context, namespace, and immutable release artifact. Then inspect nodes and required add-ons. A shell in the correct repository can still hold credentials or a context for another account. Preflight prevents that mismatch from becoming a live change.
Caller identity identifies the AWS session. Context selects Kubernetes connection settings. Preflight is an explicit set of checks before mutation. AWS permission to describe the cluster and Kubernetes permission to deploy are separate requirements. Compare observed identifiers with the intended dedicated learning environment. Confirm cost limits and cleanup ownership before starting rather than after resources appear. A prepared configuration is not proof of authorization, capacity, or compatibility. Stop on a mismatched target and correct the execution context; do not use broader credentials merely to make every possible command succeed.
aws sts get-caller-identity checks the AWS caller, while kubectl config current-context checks the Kubernetes target; both matter.
Do not overlook this operational distinction: A kubeconfig entry can point at the wrong environment, so labels and directory names are insufficient safeguards.