NexaSettlement Corp is modernizing its core clearing and settlement engine by migrating it from on-premises virtual machines to AWS. The settlement engine is memory-intensive and must run on AWS Fargate across three Availability Zones in a dedicated Workload account. The engine must query a real-time audit logger hosted in a Shared Services account.
The architecture must adhere to the following constraints:
1. All traffic between the settlement engine, the audit logger, and AWS services must remain within the AWS network to satisfy PCI-DSS compliance.
2. The settlement engine must pull container images from a private Amazon ECR repository located in the Shared Services account.
3. The settlement engine must resolve the audit logger's internal DNS name, which is managed in a Route 53 Private Hosted Zone (PHZ) in the Shared Services account.
4. The system must tolerate the failure of any single Availability Zone or NAT Gateway without service interruption.
Which design meets these requirements with the least operational overhead?
- Deploy the settlement engine tasks in the Workload VPC using the awsvpc network mode. Create VPC interface endpoints for Amazon ECR (ecr.api and ecr.dkr) and a VPC gateway endpoint for Amazon S3 in the Workload VPC. Configure the ECR repository policy in the Shared Services account to allow access from the Workload account's ECS task execution role. Create a Route 53 Private Hosted Zone association authorization in the Shared Services account, and associate the zone with the Workload VPC using the AWS CLI.Answer
- BDeploy the settlement engine tasks in the Workload VPC using the bridge network mode to simplify local port mapping. Set up an AWS Transit Gateway to route container traffic to Amazon ECR VPC endpoints located in the Shared Services VPC. Configure Route 53 Resolver outbound endpoints in the Workload VPC and inbound endpoints in the Shared Services VPC to forward DNS queries for the audit logger.
- CDeploy the settlement engine tasks in the Workload VPC using the awsvpc network mode. Deploy a single NAT Gateway in the public subnet of one Availability Zone to route ECR and S3 image pull requests to public endpoints. Authorize the Workload ECS tasks to assume a cross-account IAM role in the Shared Services account to perform DNS resolution against the Private Hosted Zone.
- DDeploy the settlement engine tasks in the Workload VPC using the awsvpc network mode. Create VPC interface endpoints for Amazon ECR and a VPC gateway endpoint for Amazon S3 in the Workload VPC, using AWS-managed KMS keys (aws/s3 and aws/ecr) for encryption. Create Route 53 Resolver outbound endpoints in the Workload VPC and inbound endpoints in the Shared Services VPC to resolve the audit logger DNS.