Inter-resource encryption in transit
Nitro hardware encryption, VPC Encryption Controls, EMR TLS, EKS pod traffic and SageMaker distributed training.
Exam tasks: 5.1.3 (inter-resource encryption: EMR, EKS, SageMaker AI, Nitro)
The decision: how is node-to-node traffic encrypted when no load balancer terminates TLS for you, and how do you prove nothing travels in cleartext?
Traffic between your own resources is often plaintext inside a VPC. This page covers the controls that encrypt it.
Nitro encryption and VPC Encryption Controls
- Modern Nitro instance types encrypt traffic between each other automatically with AES-256, at no cost to performance, when both are in the same VPC or peered VPCs.
- That automatic encryption doesn't cover traffic through a load balancer, transit gateway or other intermediary, or traffic to older instance types.
- VPC Encryption Controls give proof and enforcement. Monitor mode adds an
encryption-statusfield to new VPC flow logs and lists resources that allow cleartext. Enforce mode blocks resources that can't encrypt (older instances, internet gateways) unless you create an exclusion. Transit gateways need encryption support turned on to carry encrypted traffic between enforced VPCs. - Nitro automatic encryption works only on certain instance types and needs no configuration or key management.
- Enforce mode also turns on hardware-based encryption for traffic between supported VPC resources, including Fargate, NLB and ALB. Turn it on centrally from the security team.
Exam signal
"Encrypt traffic between EC2 instances with no application change" means Nitro instance types in the same VPC. "Prove no plaintext flows in the VPC" means VPC Encryption Controls in monitor mode first, then enforce.
Exam trap
Nitro automatic encryption is bypassed when traffic crosses a transit gateway or load balancer. Do not rely on it between VPCs joined by Transit Gateway.
Service by service
| Service | How to encrypt node-to-node traffic |
|---|---|
| Amazon EMR | A security configuration with in-transit encryption: EMR-managed certificates, a PEM zip in S3, or a custom certificate provider. It turns on TLS and SASL for the open-source frameworks. At-rest settings (EMRFS SSE-KMS or CSE-KMS, local disk and EBS encryption) sit in the same security configuration |
| Amazon EKS | Kubernetes has no native pod-to-pod encryption. Use Nitro instances that encrypt automatically, a service mesh with mTLS, a network plugin with WireGuard, or VPC Lattice with TLS. Kubernetes API data (including Secrets) is envelope-encrypted with KMS by default on 1.28+, optionally with your own key |
| SageMaker AI | EnableInterContainerTrafficEncryption on training and tuning jobs. It uses IPsec, so the security group must allow UDP 500 and protocol 50 (ESP) to itself. May slow distributed deep learning. Built-in algorithms such as XGBoost are usually unaffected |
| Amazon OpenSearch Service | Node-to-node encryption plus "require HTTPS" on the domain endpoint |
| ElastiCache, MSK, Redshift, RDS | Enable in-transit encryption (ElastiCache, MSK), set require_ssl (Redshift), or rds.force_ssl / require_secure_transport (RDS engines) |
EMR at-rest options sit in the same security configuration. S3 data with SSE-S3, SSE-KMS or client-side encryption (SSE-C is not available), and local disks with EBS encryption or LUKS. EMRFS traffic to S3 always uses TLS.
Scenarios
Inter-container traffic encryption uses IPsec, so the job flag and the IKE and ESP security group rules are both needed. The volume KMS key encrypts storage, not network traffic. Network isolation blocks outbound calls but doesn't encrypt traffic between nodes. A VPC endpoint secures API calls to SageMaker, not container-to-container traffic.