Skip to Content
Asterrr's Handbook
5 · Data protection

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.

AES-256 in hardwareneeds TLSmonitor or enforceNitro instance ANitro instance BLoad balancerVPC EncryptionControls
Nitro instances encrypt directly between hosts. Traffic that passes through a load balancer or transit gateway loses that automatic protection, so VPC Encryption Controls audits or enforces 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-status field 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

ServiceHow to encrypt node-to-node traffic
Amazon EMRA 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 EKSKubernetes 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 AIEnableInterContainerTrafficEncryption 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 ServiceNode-to-node encryption plus "require HTTPS" on the domain endpoint
ElastiCache, MSK, Redshift, RDSEnable 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

Scenario · choose 2
A genomics company runs distributed SageMaker AI training across 16 instances in a private VPC. Its compliance team requires encryption of model weights exchanged between the training containers. Which TWO actions are required?

Further reading

On this page