Inter-Resource Encryption in Transit
Inter-resource encryption in transit means protecting data as it moves between AWS resources, such as EC2 instances, containers, load balancers, databases, and serverless functions, inside or across VPCs. Domain 5 of SCS-C03 expects you to secure this internal east-west traffic as well as client-to-edge traffic, so that data stays confidential and tamper-resistant along the whole path. Load balancing: Application and Network Load Balancers can terminate TLS using certificates from AWS Certificate Manager (ACM). They can then re-encrypt traffic to backend targets over HTTPS or TLS listeners. For end-to-end protection, give backend services their own certificates, often issued by AWS Private CA for internal names. Choose security policies that require TLS 1.2 or higher. Containers and microservices: Amazon ECS Service Connect can apply TLS using AWS Private CA. Amazon VPC Lattice supports HTTPS between services. On Amazon EKS, service meshes such as Istio can provide mutual TLS (mTLS), where both sides authenticate with certificates. Infrastructure-level encryption: Many Nitro-based EC2 instance types automatically encrypt traffic between supported instances in the same VPC or in peered VPCs, using hardware AES-256. Traffic over inter-Region VPC peering and between AWS Regions is also encrypted. For hybrid links, Site-to-Site VPN uses IPsec, and Direct Connect supports MACsec on dedicated connections. Data stores: For RDS, enforce encryption with parameters such as rds.force_ssl for PostgreSQL or require_secure_transport for MySQL. Enable in-transit encryption for ElastiCache and Amazon MSK. For S3, add a bucket policy that denies requests when aws:SecureTransport is false. AWS service APIs are reached through HTTPS endpoints, including VPC interface endpoints powered by AWS PrivateLink. Governance: Use AWS Config managed rules, such as s3-bucket-ssl-requests-only and elb-tls-https-listeners-only, to detect gaps. Aggregate findings in Security Hub. Automate certificate renewal with ACM to prevent outages. Exam tip: When a scenario demands encryption across every hop, choose TLS re-encryption or mTLS with Private CA rather than relying on TLS termination at the edge alone.
Inter-Resource Encryption in Transit: A Complete Guide for the AWS Certified Security - Specialty Exam
In AWS architectures, data moves constantly. It travels from users to load balancers, from load balancers to compute, from compute to databases, from microservice to microservice, and from on-premises data centers to VPCs. Inter-resource encryption in transit means protecting data as it travels between AWS resources and services, not only at the public edge. This is a core topic in the Data Protection domain of the AWS Certified Security - Specialty exam.
1. Why Inter-Resource Encryption in Transit Is Important
Zero trust and defense in depth: Do not assume a private network is safe just because it is private. If an attacker gains a foothold inside a VPC, a misconfigured route or a compromised host could expose plaintext traffic. Encrypting internal hops limits this risk.
Compliance requirements: Frameworks such as PCI DSS, HIPAA, FedRAMP and many internal policies require encryption of sensitive data over all network segments, including internal ones. Auditors often ask for end-to-end encryption, not just encryption at the edge.
Integrity and authenticity: TLS and IPsec provide more than confidentiality. They also detect tampering and authenticate endpoints, which protects against man-in-the-middle attacks and spoofing.
Shared responsibility: AWS encrypts some infrastructure links, but the customer decides how applications, databases and services talk to each other. Enforcing TLS between your resources is a customer responsibility.
Hybrid and multi-account traffic: Data crossing regions, accounts or on-premises links travels across more infrastructure and needs explicit protection.
2. What Inter-Resource Encryption in Transit Is
It is the practice of encrypting network traffic between components of a workload, for example:
- Application Load Balancer (ALB) to EC2, ECS or EKS targets
- CloudFront to origin (ALB, EC2, custom origin)
- Application servers to Amazon RDS, Aurora, Redshift, ElastiCache, DocumentDB or OpenSearch
- Microservice to microservice (service mesh, ECS Service Connect, VPC Lattice)
- Nodes within a cluster (OpenSearch node-to-node, MSK broker-to-broker, EMR, ElastiCache replication)
- EC2 to Amazon EFS file systems
- Applications to AWS service APIs (S3, SQS, SNS, DynamoDB, KMS) over HTTPS
- On-premises networks to AWS (Site-to-Site VPN, Direct Connect with MACsec, VPN over Direct Connect)
The primary protocols are TLS (application layer, the most common), IPsec (network layer, used by VPN), MACsec (layer 2, used on Direct Connect dedicated connections) and AWS Nitro hardware encryption (automatic encryption between supported instances).
3. How It Works: Key Services and Mechanisms
3.1 Certificates: AWS Certificate Manager (ACM) and AWS Private CA
- ACM public certificates are free and auto-renew, but they can only be deployed on integrated services such as ELB, CloudFront, API Gateway and App Runner. You cannot export the private key of a public ACM certificate onto an EC2 instance.
- AWS Private CA issues private certificates for internal endpoints. Private certificates issued through ACM can be exported, so they can be installed on EC2 instances, containers or on-premises servers. This is the typical answer for internal TLS between services and for mutual TLS (mTLS).
- For EC2 targets behind an ALB that need TLS, you can use a self-signed certificate or a private CA certificate on the instance, since the ALB does not validate target certificates.
3.2 Elastic Load Balancing
- ALB: Terminates TLS at the HTTPS listener. To keep traffic encrypted to targets, configure the target group protocol as HTTPS. The ALB re-encrypts traffic to the backend. This is end-to-end encryption with re-encryption.
- NLB with TLS listener: Terminates TLS at the NLB, and you can use a TLS target group to re-encrypt.
- NLB with TCP listener (TLS passthrough): The NLB forwards encrypted traffic, and the target terminates TLS. Use this when the requirement says the load balancer must never decrypt traffic or when the client certificate must reach the backend for mTLS.
- Security policies on listeners control TLS versions and ciphers (for example, TLS 1.2 or TLS 1.3 only policies, FIPS policies).
- ALB also supports mutual TLS on listeners in verify or passthrough mode, using a trust store.
3.3 Amazon CloudFront
- Viewer Protocol Policy: Redirect HTTP to HTTPS or HTTPS only (viewer to edge).
- Origin Protocol Policy: HTTPS only or Match Viewer (edge to origin). Set to HTTPS only for encrypted origin traffic.
- The origin must present a certificate that is valid and trusted, matching the origin domain name. Self-signed certificates are not accepted for custom origins.
- Minimum origin SSL protocol can be configured.
- Field-level encryption adds an extra layer by encrypting specific form fields with a public key, so only the backend application with the private key can read them.
3.4 Databases and Data Stores
- Amazon RDS and Aurora: Supports SSL/TLS using the AWS-provided RDS CA certificates. Enforce encryption via the parameter group: rds.force_ssl = 1 (PostgreSQL, SQL Server) or require_secure_transport = ON (MySQL, MariaDB). Clients should use the RDS CA bundle and verify the server certificate. Remember to rotate CA certificates when AWS announces CA changes.
- Amazon Redshift: Set the require_ssl parameter to true in the cluster parameter group.
- Amazon ElastiCache (Redis OSS / Valkey / Memcached): Enable in-transit encryption (TLS). For Redis, combine with AUTH tokens or RBAC. Historically, in-transit encryption needed to be chosen at creation time; newer versions allow enabling it on existing clusters with a migration mode (preferred then required).
- Amazon DynamoDB: All API traffic uses HTTPS. DynamoDB Accelerator (DAX) supports in-transit encryption that is configured at cluster creation.
- Amazon DocumentDB: TLS is enabled by default and controlled by the tls cluster parameter.
- Amazon OpenSearch Service: Enable node-to-node encryption and Require HTTPS for domain endpoints.
- Amazon MSK: Configure encryption in transit for client-broker (TLS, TLS_PLAINTEXT or PLAINTEXT) and within the cluster (broker-to-broker). Choose TLS for both to be fully encrypted.
- Amazon EMR: Use a security configuration to enable in-transit encryption with certificates (from S3 PEM files or a custom provider).
3.5 Storage
- Amazon S3: Enforce HTTPS using a bucket policy that denies requests where aws:SecureTransport is false. Use s3:TlsVersion to require a minimum TLS version.
- Amazon EFS: Mount with the amazon-efs-utils mount helper using the -o tls option, which uses stunnel for TLS. Enforce it with an EFS file system policy that denies access when aws:SecureTransport is false.
- Amazon FSx: FSx for Windows supports SMB encryption; FSx for Lustre and others offer encryption on supported instance types.
3.6 Messaging and Integration
- Amazon SQS and SNS: Enforce HTTPS-only access through resource policies that deny when aws:SecureTransport is false.
- Amazon API Gateway: Supports TLS with minimum version policies and mutual TLS for custom domains with a truststore in S3. Backend integrations can use client certificates so the backend can verify that requests come from API Gateway.
- AWS PrivateLink / VPC endpoints: Keep traffic on the AWS network; the traffic to AWS service APIs is still TLS-encrypted. Note that PrivateLink provides private connectivity, not encryption by itself.
3.7 Containers and Service-to-Service
- Amazon ECS Service Connect supports TLS between services using AWS Private CA.
- Amazon VPC Lattice supports HTTPS listeners and TLS passthrough.
- Service meshes (for example Istio or similar on EKS) provide mTLS between pods with certificates from AWS Private CA.
- Amazon EKS: Use mTLS via a service mesh or cert-manager with the AWS Private CA issuer.
3.8 Network-Level Encryption
- AWS Nitro encryption: Traffic between supported Nitro-based instance types (for example C5n, M5n, R5n, M6i and newer families) is automatically encrypted at the hardware level when both instances are in the same VPC or peered VPCs within the same region, using AEAD algorithms with 256-bit keys. No configuration is needed, but both instance types must support it.
- Inter-region VPC peering and inter-region Transit Gateway peering: Traffic is encrypted automatically by AWS.
- AWS Site-to-Site VPN: IPsec tunnels over the internet or over Direct Connect (public or transit VIF).
- AWS Direct Connect: Not encrypted by default. Options are MACsec (layer 2, on supported dedicated 10 Gbps, 100 Gbps and 400 Gbps connections) or IPsec VPN over Direct Connect.
- AWS Client VPN: TLS-based VPN for remote users.
3.9 Enforcement and Detection
- IAM and resource policies with aws:SecureTransport deny non-TLS calls.
- AWS Config rules such as s3-bucket-ssl-requests-only, elb-tls-https-listeners-only, alb-http-to-https-redirection-check, elasticsearch-node-to-node-encryption-check, redshift-require-tls-ssl and api-gw-ssl-enabled detect drift.
- AWS Security Hub controls flag listeners, distributions and clusters that lack TLS.
- Service Control Policies can enforce settings at the organization level.
4. Common Architecture Patterns
Pattern A - End-to-end web encryption: Client -> CloudFront (HTTPS viewer policy, ACM certificate in us-east-1) -> ALB (HTTPS listener, origin protocol HTTPS only) -> EC2 targets (HTTPS target group, private CA or self-signed certificate) -> RDS (force SSL).
Pattern B - Backend must decrypt, not the load balancer: NLB with TCP listener on port 443 (TLS passthrough) -> targets hold the certificate and private key (possibly protected by CloudHSM or Nitro Enclaves with ACM for Nitro Enclaves).
Pattern C - Microservices mTLS: AWS Private CA issues certificates; ECS Service Connect, VPC Lattice or a service mesh enforces mTLS.
Pattern D - Hybrid: On-premises -> Direct Connect with MACsec, or IPsec VPN over Direct Connect -> Transit Gateway -> VPCs.
5. Exam Tips: Answering Questions on Inter-Resource Encryption in Transit
Tip 1 - Read for the exact boundary. Identify which hop needs protection: client to edge, edge to origin, load balancer to target, application to database, node to node, or on-premises to AWS. Many wrong answers secure the wrong hop.
Tip 2 - End-to-end with an ALB means an HTTPS target group. If the question asks for encryption all the way to EC2 while the ALB still performs Layer 7 routing or WAF inspection, choose ALB HTTPS listener plus HTTPS target group.
Tip 3 - Load balancer must not decrypt = NLB TCP passthrough. If the scenario says only the backend may see plaintext or hold the private key, choose an NLB with a TCP listener on 443. An ALB always terminates TLS.
Tip 4 - Public ACM certificates cannot go on EC2. If certificates are needed on instances, look for AWS Private CA (exportable private certificates), a third-party certificate, or ACM for Nitro Enclaves. Any option exporting a public ACM certificate to EC2 is wrong.
Tip 5 - CloudFront origin certificates must be trusted. Self-signed certificates on a custom origin will fail. CloudFront viewer certificates for custom domains must be in us-east-1.
Tip 6 - Enforcement keywords. 'Ensure all requests use HTTPS' for S3, SQS, SNS or EFS points to a resource policy denying when aws:SecureTransport is false. For RDS, it points to rds.force_ssl or require_secure_transport; for Redshift, require_ssl.
Tip 7 - Encryption at rest is not encryption in transit. KMS keys, EBS encryption or S3 SSE are distractors when the question is about data moving across the network.
Tip 8 - Private connectivity is not encryption. VPC endpoints, PrivateLink and Direct Connect keep traffic off the public internet but do not, by themselves, add encryption. Direct Connect requires MACsec or IPsec VPN for encryption.
Tip 9 - Know automatic encryption. Nitro instance-to-instance traffic (supported types, same or peered VPC) and inter-region peering traffic are encrypted by AWS automatically. If the question asks for the lowest operational overhead between supported instance types, this may be the answer.
Tip 10 - Cluster-internal traffic has separate settings. OpenSearch node-to-node encryption, MSK within-cluster TLS, ElastiCache in-transit encryption and EMR security configurations are distinct from client-facing settings. Some must be chosen at creation time, so answers may require creating a new cluster and migrating.
Tip 11 - Mutual authentication means mTLS. When both sides must prove identity, look for mTLS on API Gateway, ALB, VPC Lattice, ECS Service Connect or a service mesh, typically backed by AWS Private CA.
Tip 12 - Prefer managed, low-overhead solutions. When multiple answers work, AWS exams favor managed options: ACM over manual certificates, AWS Private CA over self-managed CAs, Config rules plus Security Hub for detection, and automatic renewal.
Tip 13 - TLS version requirements. For minimum TLS 1.2 or 1.3, look at ELB security policies, CloudFront security policies, API Gateway minimum TLS settings and the s3:TlsVersion condition key.
Tip 14 - Watch for certificate rotation scenarios. RDS CA rotation, expiring imported certificates in ACM (which do not auto-renew) and EventBridge or Config alerts for expiring certificates are common question themes.
6. Quick Review Checklist
- ALB: HTTPS listener plus HTTPS target group for re-encryption
- NLB: TCP passthrough when only targets may decrypt
- CloudFront: viewer HTTPS plus origin HTTPS only, trusted origin certificate
- RDS: rds.force_ssl or require_secure_transport; Redshift: require_ssl
- S3, SQS, SNS, EFS: aws:SecureTransport deny condition
- EFS: mount helper with -o tls
- ElastiCache, MSK, OpenSearch, EMR: enable in-transit and node-to-node encryption
- Direct Connect: MACsec or IPsec VPN for encryption
- Nitro and inter-region peering: automatic encryption
- AWS Private CA: internal certificates and mTLS
- AWS Config and Security Hub: continuous compliance checks
Conclusion
Inter-resource encryption in transit closes the gaps that edge-only encryption leaves open. On the exam, carefully map the scenario to the specific network hop, choose the AWS-native control that encrypts and enforces that hop, separate encryption from mere private connectivity, and favor managed, scalable solutions with the least operational overhead.