You create a VPC in two Availability Zones. Each zone has one public subnet, which is used only by the Application Load Balancer, and one private subnet, which is used by the EC2 instances and the RDS database. There is no NAT gateway: the private subnets have no route to the internet.
Open the Amazon VPC console and choose Create VPC.
In VPC settings:
wordpress. The console names all resources with this prefix, for example wordpress-vpc.10.0.0.0/16.
Scroll down and set the following:
2 and Number of public subnets = 2.2.
Wait until the workflow shows (1) Success. The details show that (2) the S3 endpoint was created and (3) associated with the private route tables.

A gateway endpoint for Amazon S3 has no hourly charge. The Amazon Linux 2023 package repositories are also hosted in Amazon S3, so the private instances can install packages with dnf through this endpoint.